Class UsbInterruptEndpoint
Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
- API Level:
- 4
The USB Interrupt Endpoint class.
C#Copypublic class UsbInterruptEndpoint : UsbEndpoint
- Inheritance
Properties
PollingInterval
Gets an interval for polling the endpoint for data transfers, in frame counts (refer to the USB protocol specification).
Declaration
C#Copypublic int PollingInterval { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Methods
Transfer(Byte[], Int32, UInt32)
Performs a USB transfer on a given endpoint. The direction of transfer is determined by the endpoint.
Declaration
C#Copypublic int Transfer(byte[] buffer, int length, uint timeout)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Suitably-sized data buffer for either an input or output (depending on the endpoint). |
System.Int32 | 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. |
System.UInt32 | 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 |
---|---|
System.Int32 | Number of bytes actually transferred. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if device is disconnected or not opened for operation. |
System.TimeoutException | Throws exception if transfer timed-out. |