www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - USB API


usbDeviceGetEps

This function gets the numbers of the endpoints that have been associated with an interface. The numbers are returned in a bitmap field. Each bit that is set to "1" marks an assigned endpoint. If e.g. Bit 1 is set, endpoint 1 is assigned to the interface.
By default both the IN and OUT endpoint at the resp. endpoint number are reserved to the interface. You decide which direction actually to assign to the interface when configuring the endpoints. You may even use both directions if both have the same transfer type.

int usbDeviceGetEps( unsigned char interfaceId,

unsigned far *epBitmap );

Parameters

interfaceId

ID of the interface whose endpoints are to be gotten

epBitmap

Result parameter: Bitmap indicating which ndpoints belong to the given interface.

Return Value

Error code

Comments

Endpoint 0 never can be assigned to an interface but every interface can use it.

RTOS API

This library function uses a dynamic link to reach the function USB_SERVICE_DEVICE_GET_EPS offered by RTOS USB Software Interrupt.

Related Topics

C-library function usbDeviceRegisterInterface()
C-library function usbDeviceConfigEp()

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    n/an/an/aV0.90

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.01

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document