![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
M480 USBD driver source file. More...
Go to the source code of this file.
Functions | |
void | USBD_Open (const S_USBD_INFO_T *param, CLASS_REQ pfnClassReq, SET_INTERFACE_REQ pfnSetInterface) |
This function makes USBD module to be ready to use. More... | |
void | USBD_Start (void) |
This function makes USB host to recognize the device. More... | |
void | USBD_GetSetupPacket (uint8_t *buf) |
Get the received SETUP packet. More... | |
void | USBD_ProcessSetupPacket (void) |
Process SETUP packet. More... | |
void | USBD_GetDescriptor (void) |
Process GetDescriptor request. More... | |
void | USBD_StandardRequest (void) |
Process standard request. More... | |
void | USBD_PrepareCtrlIn (uint8_t pu8Buf[], uint32_t u32Size) |
Prepare the first Control IN pipe. More... | |
void | USBD_CtrlIn (void) |
Repeat Control IN pipe. More... | |
void | USBD_PrepareCtrlOut (uint8_t *pu8Buf, uint32_t u32Size) |
Prepare the first Control OUT pipe. More... | |
void | USBD_CtrlOut (void) |
Repeat Control OUT pipe. More... | |
void | USBD_SwReset (void) |
Reset software flags. More... | |
void | USBD_SetVendorRequest (VENDOR_REQ pfnVendorReq) |
USBD Set Vendor Request. More... | |
void | USBD_SetConfigCallback (SET_CONFIG_CB pfnSetConfigCallback) |
The callback function which called when get SET CONFIGURATION request. More... | |
void | USBD_LockEpStall (uint32_t u32EpBitmap) |
EP stall lock function to avoid stall clear by USB SET FEATURE request. More... | |
Variables | |
uint8_t | g_usbd_SetupPacket [8] = {0ul} |
volatile uint8_t | g_usbd_RemoteWakeupEn = 0ul |
const S_USBD_INFO_T * | g_usbd_sInfo |
VENDOR_REQ | g_usbd_pfnVendorRequest = NULL |
CLASS_REQ | g_usbd_pfnClassRequest = NULL |
SET_INTERFACE_REQ | g_usbd_pfnSetInterface = NULL |
SET_CONFIG_CB | g_usbd_pfnSetConfigCallback = NULL |
uint32_t | g_u32EpStallLock = 0ul |
M480 USBD driver source file.
SPDX-License-Identifier: Apache-2.0
Definition in file usbd.c.