USBD_DevAdd
Description
Adds a device to the stack.
Files
usbd_core.h/usbd_core.c
Prototype
CPU_INT08U USBD_DevAdd (USBD_DEV_CFG *p_dev_cfg, USBD_BUS_FNCTS *p_bus_fnct, USBD_DRV_API *p_drv_api, USBD_DRV_CFG *p_drv_cfg, USBD_DRV_BSP_API *p_bsp_api, USBD_ERR *p_err);
Arguments
p_dev_cfg
Pointer to specific USB device configuration
p_bus_fnct
Pointer to application specific structure that contains callback functions called on bus state changes.
p_drv_api
Pointer to specific USB device driver API.
p_drv_cfg
Pointer to specific USB device driver configuration.
p_bsp_api
Pointer to specific USB device board-specific API.
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_NULL_PTR
USBD_ERR_DEV_ALLOC
USBD_ERR_EP_NONE_AVAIL
Returned Value
Device number, i
f no error(s).
USBD_DEV_NBR_NONE,
otherwise.
Callers
Application.
Notes / Warnings
None.