USBD_CDC_EEM_CfgAdd

Description

Adds CDC EEM subclass instance into USB device configuration.

Files

usbd_cdc_eem.h/usbd_cdc_eem.c

Prototype

CPU_BOOLEAN  USBD_CDC_EEM_CfgAdd (       CPU_INT08U   class_nbr,
                                         CPU_INT08U   dev_nbr,
                                         CPU_INT08U   cfg_nbr,
                                  const  CPU_CHAR    *p_if_name,
                                         USBD_ERR    *p_err);


Arguments

class_nbr

Class instance number.

dev_nbr

Device number.

cfg_nbr

Configuration index to add class instance to.

p_if_name

Pointer to string that contains name of the CDC EEM interface. Can be DEF_NULL.

p_err

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

USBD_ERR_NONE
USBD_ERR_ALLOC                  
USBD_ERR_INVALID_ARG

Returned Value

None.

Callers

Application.

Notes / Warnings

This API may be called several times. This allows to create multiple instances of the CDC EEM subclass into different USB device configurations.