www.beck-ipc.com

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


usbHostClearQueue

This function clears the send and token queue of a given endpoint. It can be used to reset an endpoint when an error occured.
Buffers associated with send requests cleared by this function will later be handed back to the user driver via an event with the status USB_EVENT_RELEASE .
Note that queue entries already passed to the USB controller cannot be removed.

int usbHostClearQueue( unsigned char address,

unsigned char epNumber,
UsbBool in );

Parameters

address

Address of the resp. device

epNumber

Number of the endpoint whose queues are to be cleared

in

States that the IN direction of the endpoint is to be cleared; set to FALSE for OUT or CONTROL endpints

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_CLEAR_QUEUE offered by RTOS USB Software Interrupt.

Related Topics

C-library function usbSend()
C-library function usbHostIssueToken()

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