APM:Libraries
Functions
USBD_CORE_Private_Functions
Collaboration diagram for USBD_CORE_Private_Functions:

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...
 

Detailed Description

Function Documentation

◆ USBD_ClrCfg()

USBD_Status USBD_ClrCfg ( USB_OTG_CORE_HANDLE pdev,
uint8_t  cfgidx 
)

USBD_ClrCfg Clear current configuration.

Parameters
pdevdevice instance
cfgidxconfiguration index
Return values
statusUSBD_Status

Definition at line 433 of file usbd_core.c.

Referenced by USBD_SetConfig().

Here is the caller graph for this function:

◆ USBD_DataInStage()

static uint8_t USBD_DataInStage ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)
static

USBD_DataInStage Handle data in stage.

Parameters
pdevdevice instance
epnumendpoint index
Return values
status

Definition at line 261 of file usbd_core.c.

Here is the call graph for this function:

◆ USBD_DataOutStage()

static uint8_t USBD_DataOutStage ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)
static

USBD_DataOutStage Handle data out stage.

Parameters
pdevdevice instance
epnumendpoint index
Return values
status

Definition at line 213 of file usbd_core.c.

Here is the call graph for this function:

◆ USBD_DeInit()

USBD_Status USBD_DeInit ( USB_OTG_CORE_HANDLE pdev)

USBD_DeInit Re-Initialize th device library.

Parameters
pdevdevice instance
Return values
statusstatus

Definition at line 166 of file usbd_core.c.

Referenced by usb_close(), and USBD_Init().

Here is the caller graph for this function:

◆ 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.

Parameters
pdevdevice instance
core_addressUSB OTG core ID
class_cbClass callback structure address
usr_cbUser callback structure address
Return values
None

Definition at line 134 of file usbd_core.c.

Referenced by usb_configure().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_IsoINIncomplete()

static uint8_t USBD_IsoINIncomplete ( USB_OTG_CORE_HANDLE pdev)
static

USBD_IsoINIncomplete Handle iso in incomplete event.

Parameters
pdevdevice instance
Return values
status

Definition at line 445 of file usbd_core.c.

◆ USBD_IsoOUTIncomplete()

static uint8_t USBD_IsoOUTIncomplete ( USB_OTG_CORE_HANDLE pdev)
static

USBD_IsoOUTIncomplete Handle iso out incomplete event.

Parameters
pdevdevice instance
Return values
status

Definition at line 457 of file usbd_core.c.

◆ USBD_Reset()

static uint8_t USBD_Reset ( USB_OTG_CORE_HANDLE pdev)
static

USBD_Reset Handle Reset event.

Parameters
pdevdevice instance
Return values
status

Definition at line 339 of file usbd_core.c.

Here is the call graph for this function:

◆ USBD_Resume()

static uint8_t USBD_Resume ( USB_OTG_CORE_HANDLE pdev)
static

USBD_Resume Handle Resume event.

Parameters
pdevdevice instance
Return values
status

Definition at line 367 of file usbd_core.c.

◆ USBD_RunTestMode()

static uint8_t USBD_RunTestMode ( USB_OTG_CORE_HANDLE pdev)
static

USBD_RunTestMode Launch test mode process.

Parameters
pdevdevice instance
Return values
status

Definition at line 326 of file usbd_core.c.

Referenced by USBD_DataInStage().

Here is the caller graph for this function:

◆ USBD_SetCfg()

USBD_Status USBD_SetCfg ( USB_OTG_CORE_HANDLE pdev,
uint8_t  cfgidx 
)

USBD_SetCfg Configure device and start the interface.

Parameters
pdevdevice instance
cfgidxconfiguration index
Return values
status

Definition at line 417 of file usbd_core.c.

Referenced by USBD_SetConfig().

Here is the caller graph for this function:

◆ USBD_SetupStage()

static uint8_t USBD_SetupStage ( USB_OTG_CORE_HANDLE pdev)
static

USBD_SetupStage Handle the setup stage.

Parameters
pdevdevice instance
Return values
status

Definition at line 179 of file usbd_core.c.

Here is the call graph for this function:

◆ USBD_SOF()

static uint8_t USBD_SOF ( USB_OTG_CORE_HANDLE pdev)
static

USBD_SOF Handle SOF event.

Parameters
pdevdevice instance
Return values
status

Definition at line 401 of file usbd_core.c.

◆ USBD_Suspend()

static uint8_t USBD_Suspend ( USB_OTG_CORE_HANDLE pdev)
static

USBD_Suspend Handle Suspend event.

Parameters
pdevdevice instance
Return values
status

Definition at line 384 of file usbd_core.c.