www.beck-ipc.com

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


usbHostSetInterface

Sets one of the alternate settings of a given interface as the current one by sending a SetInterface Standard Device Request

int usbHostSetInterface( unsigned char driverId,

unsigned char address,
unsigned char interfaceId,
unsigned char altSettingId );

Parameters

driverId

ID of the user driver

address

Address of the resp. device

interfaceId

ID of the resp. interface

altSettingId

ID of the alternate setting that is to be activated

Return Value

Error code

Comments

This function reserves endpoint 0 of the resp. device for the user driver that calls it before using the endpoint and it releases it again afterwards.
Note that this function may take up to 2000 ms to complete, because it waits that long for data to arrive from the device.
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_SET_INTERFACE offered by RTOS USB Software Interrupt.

Related Topics

C-library function usbHostGetConfigInfo()
C-library function usbHostGetInterfaceInfo()

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