Class UsbControlEndpoint
Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
- API Level:
- 4
The USB Control Endpoint class.
C#Copypublic class UsbControlEndpoint : UsbEndpoint
- Inheritance
Properties
Declaration
C#Copypublic EndpointDirection Direction { get; }
Property Value
Type | Description |
---|---|
EndpointDirection |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic int Id { 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
Declaration
C#Copypublic int MaxPacketSize { 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, Byte, UInt16, UInt16, Byte[], UInt16, UInt32)
Performs a control transaction on the endpoint, zero for this device.
Declaration
C#Copypublic int Transfer(byte requestType, byte request, ushort value, ushort index, byte[] data, ushort length, uint timeout)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | requestType | bmRequestType type field for the setup packet. |
System.Byte | request | bRequest field for the setup packet. |
System.UInt16 | value | wValue field for the setup packet. |
System.UInt16 | index | wIndex field for the setup packet. |
System.Byte[] | data | Suitably-sized data buffer for either an input or output (depending on the direction bits within a bmRequestType). |
System.UInt16 | length | wLength field for the setup packet. The data buffer should be at least this size. |
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 | Transferred number of the transferred bytes. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws an exception if the device is disconnected or not opened for an operation. |
TimeoutException | Throws an exception if the transfer is timed out. |