Class UsbControlEndpoint

Definition

Namespace:
Tizen.System.Usb
Assembly:
Tizen.System.Usb.dll
API Level:
4

The USB Control Endpoint class.

C#
Copy
public class UsbControlEndpoint : UsbEndpoint
Inheritance
System.Object
UsbControlEndpoint

Properties

View Source

Direction

Gets the direction of this endpoint.

Declaration
C#
Copy
public 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
View Source

Id

Gets the number of this endpoint.

Declaration
C#
Copy
public int Id { get; }
Property Value
Type Description
Int32
Exceptions
Type Condition
System.NotSupportedException

The required feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/usb.host
View Source

MaxPacketSize

Gets the maximum packet size of a given endpoint.

Declaration
C#
Copy
public int MaxPacketSize { get; }
Property Value
Type Description
Int32
Exceptions
Type Condition
System.NotSupportedException

The required feature is not supported.

API Level: 4
Feature: http://tizen.org/feature/usb.host

Methods

View Source

Transfer(Byte, Byte, UInt16, UInt16, Byte[], UInt16, UInt32)

Performs a control transaction on the endpoint, zero for this device.

Declaration
C#
Copy
public 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
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.

System.TimeoutException

Throws an exception if the transfer is timed out.

API Level: 4
Feature: http://tizen.org/feature/usb.host