USBD_IF_Grp

Description

Creates an interface group.

Files

usbd_core.h/usbd_core.c

Prototype

CPU_INT08U  USBD_IF_Grp (       CPU_INT08U   dev_nbr,
                                CPU_INT08U   cfg_nbr,
                                CPU_INT08U   class_code,
                                CPU_INT08U   class_sub_code,
                                CPU_INT08U   class_protocol_code,
                                CPU_INT08U   if_start,
                                CPU_INT08U   if_cnt,
                         const  CPU_CHAR    *p_name,
                                USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

cfg_nbr

Configuration index to add the interface.

p_class_drv

Pointer to interface driver.

p_class_arg

Pointer to interface driver argument.

class_code

Class code assigned by the USB-IF.

class_sub_code

Subclass code assigned by the USB-IF.

class_protocol_code

Protocol code assigned by the USB-IF.

if_start

Interface number of the first interface that is associated with this group

if_cnt

Number of consecutive interfaces that are associated with this group.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_CFG_INVALID_NBR
USBD_ERR_IF_INVALID_NBR
USBD_ERR_IF_GRP_NBR_IN_USE
USBD_ERR_IF_GRP_ALLOC

Returned Value

Interface group number, if no errors.

USBD_IF_GRP_NBR_NONE, otherwise.

Callers

Classes.

Notes / Warnings

None.