Description
Adds a device to the stack.
Files
usbd_core.h/usbd_core.c
Prototype
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.