APM:Libraries
|
Functions | |
void | USBD_Init (USB_OTG_CORE_HANDLE *pdev, const USB_OTG_CORE_ID_TypeDef coreID, const USBD_DEVICE *pDevice, const USBD_Class_cb_TypeDef *class_cb, const USBD_Usr_cb_TypeDef *usr_cb) |
USBD_Init Initailizes the device stack and load the class driver. More... | |
USBD_Status | USBD_DeInit (USB_OTG_CORE_HANDLE *pdev) |
USBD_DeInit Re-Initialize th device library. More... | |
USBD_Status | USBD_SetCfg (USB_OTG_CORE_HANDLE *pdev, uint8_t cfgidx) |
USBD_SetCfg Configure device and start the interface. More... | |
USBD_Status | USBD_ClrCfg (USB_OTG_CORE_HANDLE *pdev, uint8_t cfgidx) |
USBD_ClrCfg Clear current configuration. More... | |
static uint8_t | USBD_SetupStage (USB_OTG_CORE_HANDLE *pdev) |
USBD_SetupStage Handle the setup stage. More... | |
static uint8_t | USBD_DataOutStage (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum) |
USBD_DataOutStage Handle data out stage. More... | |
static uint8_t | USBD_DataInStage (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum) |
USBD_DataInStage Handle data in stage. More... | |
static uint8_t | USBD_RunTestMode (USB_OTG_CORE_HANDLE *pdev) |
USBD_RunTestMode Launch test mode process. More... | |
static uint8_t | USBD_Reset (USB_OTG_CORE_HANDLE *pdev) |
USBD_Reset Handle Reset event. More... | |
static uint8_t | USBD_Resume (USB_OTG_CORE_HANDLE *pdev) |
USBD_Resume Handle Resume event. More... | |
static uint8_t | USBD_Suspend (USB_OTG_CORE_HANDLE *pdev) |
USBD_Suspend Handle Suspend event. More... | |
static uint8_t | USBD_SOF (USB_OTG_CORE_HANDLE *pdev) |
USBD_SOF Handle SOF event. More... | |
static uint8_t | USBD_IsoINIncomplete (USB_OTG_CORE_HANDLE *pdev) |
USBD_IsoINIncomplete Handle iso in incomplete event. More... | |
static uint8_t | USBD_IsoOUTIncomplete (USB_OTG_CORE_HANDLE *pdev) |
USBD_IsoOUTIncomplete Handle iso out incomplete event. More... | |
USBD_Status USBD_ClrCfg | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | cfgidx | ||
) |
USBD_ClrCfg Clear current configuration.
pdev | device instance |
cfgidx | configuration index |
status | USBD_Status |
Definition at line 433 of file usbd_core.c.
Referenced by USBD_SetConfig().
|
static |
USBD_DataInStage Handle data in stage.
pdev | device instance |
epnum | endpoint index |
status |
Definition at line 261 of file usbd_core.c.
|
static |
USBD_DataOutStage Handle data out stage.
pdev | device instance |
epnum | endpoint index |
status |
Definition at line 213 of file usbd_core.c.
USBD_Status USBD_DeInit | ( | USB_OTG_CORE_HANDLE * | pdev | ) |
USBD_DeInit Re-Initialize th device library.
pdev | device instance |
status | status |
Definition at line 166 of file usbd_core.c.
Referenced by usb_close(), and USBD_Init().
void USBD_Init | ( | USB_OTG_CORE_HANDLE * | pdev, |
const USB_OTG_CORE_ID_TypeDef | coreID, | ||
const USBD_DEVICE * | pDevice, | ||
const USBD_Class_cb_TypeDef * | class_cb, | ||
const USBD_Usr_cb_TypeDef * | usr_cb | ||
) |
USBD_Init Initailizes the device stack and load the class driver.
pdev | device instance |
core_address | USB OTG core ID |
class_cb | Class callback structure address |
usr_cb | User callback structure address |
None |
Definition at line 134 of file usbd_core.c.
Referenced by usb_configure().
|
static |
USBD_IsoINIncomplete Handle iso in incomplete event.
pdev | device instance |
status |
Definition at line 445 of file usbd_core.c.
|
static |
USBD_IsoOUTIncomplete Handle iso out incomplete event.
pdev | device instance |
status |
Definition at line 457 of file usbd_core.c.
|
static |
USBD_Reset Handle Reset event.
pdev | device instance |
status |
Definition at line 339 of file usbd_core.c.
|
static |
USBD_Resume Handle Resume event.
pdev | device instance |
status |
Definition at line 367 of file usbd_core.c.
|
static |
USBD_RunTestMode Launch test mode process.
pdev | device instance |
status |
Definition at line 326 of file usbd_core.c.
Referenced by USBD_DataInStage().
USBD_Status USBD_SetCfg | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | cfgidx | ||
) |
USBD_SetCfg Configure device and start the interface.
pdev | device instance |
cfgidx | configuration index |
status |
Definition at line 417 of file usbd_core.c.
Referenced by USBD_SetConfig().
|
static |
USBD_SetupStage Handle the setup stage.
pdev | device instance |
status |
Definition at line 179 of file usbd_core.c.
|
static |
USBD_SOF Handle SOF event.
pdev | device instance |
status |
Definition at line 401 of file usbd_core.c.
|
static |
USBD_Suspend Handle Suspend event.
pdev | device instance |
status |
Definition at line 384 of file usbd_core.c.