www.beck-ipc.com

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


usbHostReserveEp0

Reserves endpoint 0 of a device for a user driver. Since it might happen that several user drivers share one device, access to endpoint 0 of the device has to be synchronised. A user driver must not use (i.e. send or issue tokens) endpoint 0 before reserving it.
The endpoint has to be released again using the usbHostReleaseEp0().

int usbHostReserveEp0( unsigned char driverId,

unsigned char address );

Parameters

driverId

ID of the user driver

address

Address of the resp. device

Return Value

Error code

Comments

This function must not be called from within the callback-function.

RTOS API

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

Related Topics

C-library function usbHostReleaseEp()

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    n/an/an/aV1.06

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.05

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


End of document