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