www.beck-ipc.com

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


usbDeviceRegisterInterface

This function registers a new interface.

int usbDeviceRegisterInterface( unsigned char nEp,

unsigned char classCode,
unsigned char subClassCode,
unsigned char protocolCode,
char far *interfaceString );

Parameters

nEp

Number of endpoints to associate with the interface

classCode

Class code of this interface

subClassCode

Subclass code of this interface

protocolCode

Protocol code of this interface

interfaceString

Human readable string describing this interface, must be static for the USB-driver will not copy it. The string can have a maximum length of USB_SPEC_MAX_STRING_LENGTH characters. If no string is needed, set this to NULL.

Return Value

ID of the newly registered interface or Error code

Comments

For further information on Class, Subclass and Protocol code see the description of usbDeviceInit().
Use the function usbDeviceGetEps() to get the numbers of the endpoints that are assigned to the interface.

RTOS API

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

Related Topics

C-library function usbDeviceInit()
C-library function usbDeviceRegisterAltSetting()
C-library function usbDeviceGetEps()
C-library function usbDeviceAddSpecificDesc()

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