www.beck-ipc.com

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


usbHostIssueToken

Issues an IN, OUT or SETUP token on a given endpoint. This is needed in Host mode to initiate a data transfer. To receive a packet from a device, an IN token has to be issued to tell the device to start sending. To send a packet to a device an OUT or SETUP token has to be issued after callingb usbSend() to tell the RTOS USB-driver to start transmission.

int usbHostIssueToken( unsigned char address,

unsigned char epNumber,
unsigned char token );

Parameters

address

Address of the device that is to receive the token

epNumber

Number of the endpoint that is to receive the token

token

Token that is to be sent; must be one of the following:
  • USB_SPEC_PID_IN
  • USB_SPEC_PID_OUT
  • USB_SPEC_PID_SETUP
The symbolic names are defined in USB_SPEC.H.

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

Related Topics

C-library function usbSend()

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