USBD_DevStart
Description
Starts device stack. This function connects the device to the USB host.
Files
usbd_core.h/usbd_core.c
Prototype
void USBD_DevStart (CPU_INT08U dev_nbr, USBD_ERR *p_err);
Arguments
dev_nbr
Device 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
Returned Value
None.
Callers
Application.
Notes / Warnings
- Device can be started only if state is either
USBD_DEV_STATE_NONE
orUSB_DEV_STATE_INIT
.