USBD_IF_AltAdd

Description

Adds an alternate setting to a specific interface.

Files

usbd_core.h/usbd_core.c

Prototype

CPU_INT08U  USBD_IF_AltAdd (       CPU_INT08U   dev_nbr,
                                   CPU_INT08U   cfg_nbr,
                                   CPU_INT08U   if_nbr,
                            const  CPU_CHAR    *p_name,
                                   USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

cfg_nbr

Configuration number.

if_nbr

Interface number.

p_name

Pointer to alternate setting name.

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_ALT_ALLOC

Returned Value

Interface alternate setting number, if no errors.

USBD_IF_ALT_NBR_NONE, otherwise.

Callers

Classes.

Notes / Warnings

None.