Class UsbBulkEndpoint
Definition
- Assembly:
- Tizen.System.Usb.dll
The USB Bulk Endpoint class.
public class UsbBulkEndpoint : UsbEndpoint
- Inheritance
Methods
View SourceTransfer(byte[], int, uint)
Performs a USB transfer on a given endpoint. The direction of transfer is determined by the endpoint.
Declaration
public int Transfer(byte[] buffer, int length, uint timeout)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | Suitably-sized data buffer for either an input or output (depending on the endpoint). |
int | length | For writes, the number of bytes from the data to be sent. For reads, the maximum number of bytes to receive into the data buffer. |
uint | timeout | The time (in milliseconds) that this function should wait for, before giving up due to no response being received (for an unlimited timeout, 0 value should be used). |
Returns
Type | Description |
---|---|
int | The number of bytes actually transferred. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Throws an exception if the device is disconnected or not opened for an operation. |
System.TimeoutException | Throws an exception if the transfer is timed out. |