USBD_CfgOtherSpeed
Description
Associates a configuration with its other-speed counterpart.
Files
usbd_core.h/usbd_core.c
Prototype
void USBD_CfgOtherSpeed (CPU_INT08U dev_nbr, CPU_INT08U cfg_nbr, CPU_INT08U cfg_other, USBD_ERR *p_err);
Arguments
dev_nbr
Device number.
cfg_nbr
Configuration number.
cfg_other
Other-speed configuration number.
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_DEV_INVALID_STATE
USBD_ERR_CFG_INVALID_NBR
Returned Value
None,
Callers
Application.
Notes / Warnings
Configurations from high- and full-speed can be associated with each other to provide comparable functionality regardless of speed.
- Configuration can only be added when the device is in either the
USBD_DEV_STATE_NONE
orUSB_DEV_STATE_INIT
states.