/
USBD_Init
USBD_Init
Description
Initialize USB device stack. This function is called by the application exactly once. This function initializes all the internal variables and modules used by the USB device stack.
Files
usbd_core.h/usbd_core.c
Prototype
void USBD_Init (USBD_ERR *p_err);
Arguments
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_OS_INIT_FAIL
Returned Value
None.
Callers
Application.
Notes / Warnings
USBD_Init()
must be called:- Only once from a product’s application.
- After product’s OS has been initialized
- Before product’s application calls any USB device stack function(s).
- Initialize USB device stack. This function is called by the application exactly once. This function initializes all the internal variables and modules used by the USB device stack.
Related content
USBD_DevStart
USBD_DevStart
More like this
USBD_DrvInit
USBD_DrvInit
More like this
USBD_DevAdd
USBD_DevAdd
More like this
USBD_Vendor_Init
USBD_Vendor_Init
More like this
USBD_OS_Init
USBD_OS_Init
More like this
USBD_BSP_Init
USBD_BSP_Init
More like this