USB endpoint-related API.
Overview
Data structures and operations described here are related to USB endpoint. Endpoints are used to perform USB transfers.
Related Features
This API is related with the following features:
It is recommended to design feature related codes in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature List.
Typedef Documentation
Enumeration Type Documentation
Enumeration of an endpoint's direction.
- Since :
- 3.0
- Enumerator:
USB_HOST_DIRECTION_IN |
IN direction
|
USB_HOST_DIRECTION_OUT |
OUT direction
|
Enumeration of isochronous endpoint's synchronization type.
- Since :
- 3.0
- Enumerator:
USB_HOST_ISO_SYNC_TYPE_NONE |
No synchronization
|
USB_HOST_ISO_SYNC_TYPE_ASYNC |
Asynchronous
|
USB_HOST_ISO_SYNC_TYPE_ADAPTIVE |
Adaptive
|
USB_HOST_ISO_SYNC_TYPE_SYNC |
Synchronous
|
Enumeration of transfer type.
- Since :
- 3.0
- Enumerator:
USB_HOST_TRANSFER_TYPE_CONTROL |
Control transfer
|
USB_HOST_TRANSFER_TYPE_ISOCHRONOUS |
Isochronous transfer
|
USB_HOST_TRANSFER_TYPE_BULK |
Bulk transfer
|
USB_HOST_TRANSFER_TYPE_INTERRUPT |
Interrupt transfer
|
Enumeration of an endpoint's usage type.
- Since :
- 3.0
- Enumerator:
USB_HOST_USAGE_TYPE_DATA |
Data endpoint
|
USB_HOST_USAGE_TYPE_FEEDBACK |
Feedback endpoint
|
USB_HOST_USAGE_TYPE_IMPLICIT |
Implicit feedback Data endpoint
|
Function Documentation
Gets direction of an endpoint.
- Since :
- 3.0
- Parameters:
-
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets interval for polling endpoint for data transfers.
- Since :
- 3.0
- Parameters:
-
[in] | ep | An endpoint |
[out] | interval | Interval for polling, in frame counts (refer to USB protocol specification) |
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets max packet size of given endpoint.
- Since :
- 3.0
- Parameters:
-
[in] | ep | An endpoint |
[out] | max_packet_size | Max packet size, in bytes |
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets number of given endpoint.
- Since :
- 3.0
- Parameters:
-
[in] | ep | An endpoint |
[out] | number | Number of given endpoint |
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets synchronization type of given endpoint.
- Since :
- 3.0
- Parameters:
-
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets transfer type of given endpoint.
- Since :
- 3.0
- Parameters:
-
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
Gets usage type of given endpoint.
- Since :
- 3.0
- Parameters:
-
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-