APM:Libraries
Functions
USBD_REQ_Private_Functions
Collaboration diagram for USBD_REQ_Private_Functions:

Functions

USBD_Status USBD_StdDevReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdDevReq Handle standard usb device requests. More...
 
USBD_Status USBD_StdItfReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdItfReq Handle standard usb interface requests. More...
 
USBD_Status USBD_StdEPReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdEPReq Handle standard usb endpoint requests. More...
 
void USBD_ParseSetupRequest (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_ParseSetupRequest Copy buffer into setup structure. More...
 
void USBD_CtlError (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_CtlError Handle USB low level Error. More...
 
void USBD_GetString (const uint8_t *desc, uint8_t *unicode, uint16_t *len)
 USBD_GetString Convert Ascii string into unicode one. More...
 
static void USBD_GetDescriptor (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_GetDescriptor Handle Get Descriptor requests. More...
 
static void USBD_SetAddress (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_SetAddress Set device address. More...
 
static void USBD_SetConfig (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_SetConfig Handle Set device configuration request. More...
 
static void USBD_GetConfig (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_GetConfig Handle Get device configuration request. More...
 
static void USBD_GetStatus (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_GetStatus Handle Get Status request. More...
 
static void USBD_SetFeature (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_SetFeature Handle Set device feature request. More...
 
static void USBD_ClrFeature (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_ClrFeature Handle clear device feature request. More...
 
static uint8_t USBD_GetLen (const uint8_t *buf)
 USBD_GetLen return the string length. More...
 

Detailed Description

Function Documentation

◆ USBD_ClrFeature()

static void USBD_ClrFeature ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_ClrFeature Handle clear device feature request.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 751 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_CtlError()

void USBD_CtlError ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)

USBD_CtlError Handle USB low level Error.

Parameters
pdevdevice instance
requsb request
Return values
None

Definition at line 801 of file usbd_req.c.

Referenced by usbd_cdc_Setup(), USBD_ClrFeature(), USBD_GetConfig(), USBD_GetDescriptor(), USBD_GetStatus(), USBD_MSC_Setup(), USBD_SetAddress(), USBD_SetConfig(), USBD_StdDevReq(), USBD_StdEPReq(), and USBD_StdItfReq().

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

◆ USBD_GetConfig()

static void USBD_GetConfig ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_GetConfig Handle Get device configuration request.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 614 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_GetDescriptor()

static void USBD_GetDescriptor ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_GetDescriptor Handle Get Descriptor requests.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 367 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_GetLen()

static uint8_t USBD_GetLen ( const uint8_t *  buf)
static

USBD_GetLen return the string length.

Parameters
buf: pointer to the ascii string buffer
Return values
stringlength

Definition at line 841 of file usbd_req.c.

Referenced by USBD_GetString().

Here is the caller graph for this function:

◆ USBD_GetStatus()

static void USBD_GetStatus ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_GetStatus Handle Get Status request.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 654 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_GetString()

void USBD_GetString ( const uint8_t *  desc,
uint8_t *  unicode,
uint16_t *  len 
)

USBD_GetString Convert Ascii string into unicode one.

Parameters
desc: descriptor buffer
unicode: Formatted string buffer (unicode)
len: descriptor length
Return values
None

Definition at line 819 of file usbd_req.c.

Referenced by USBD_MSC_ConfigStrDescriptor(), USBD_MSC_InterfaceStrDescriptor(), USBD_MSC_ManufacturerStrDescriptor(), USBD_MSC_ProductStrDescriptor(), USBD_MSC_SerialStrDescriptor(), USBD_USR_ConfigStrDescriptor(), USBD_USR_InterfaceStrDescriptor(), USBD_USR_ManufacturerStrDescriptor(), USBD_USR_ProductStrDescriptor(), and USBD_USR_SerialStrDescriptor().

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

◆ USBD_ParseSetupRequest()

void USBD_ParseSetupRequest ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)

USBD_ParseSetupRequest Copy buffer into setup structure.

Parameters
pdevdevice instance
requsb request
Return values
None

Definition at line 780 of file usbd_req.c.

Referenced by USBD_SetupStage().

Here is the caller graph for this function:

◆ USBD_SetAddress()

static void USBD_SetAddress ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_SetAddress Set device address.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 503 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_SetConfig()

static void USBD_SetConfig ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_SetConfig Handle Set device configuration request.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 545 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_SetFeature()

static void USBD_SetFeature ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)
static

USBD_SetFeature Handle Set device feature request.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 694 of file usbd_req.c.

Referenced by USBD_StdDevReq().

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

◆ USBD_StdDevReq()

USBD_Status USBD_StdDevReq ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)

USBD_StdDevReq Handle standard usb device requests.

Parameters
pdevdevice instance
requsb request
Return values
status

Definition at line 149 of file usbd_req.c.

Referenced by USBD_SetupStage().

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

◆ USBD_StdEPReq()

USBD_Status USBD_StdEPReq ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)

USBD_StdEPReq Handle standard usb endpoint requests.

Parameters
pdevUSB OTG device instance
requsb request
Return values
status

Definition at line 237 of file usbd_req.c.

Referenced by USBD_SetupStage().

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

◆ USBD_StdItfReq()

USBD_Status USBD_StdItfReq ( USB_OTG_CORE_HANDLE pdev,
USB_SETUP_REQ req 
)

USBD_StdItfReq Handle standard usb interface requests.

Parameters
pdevUSB OTG device instance
requsb request
Return values
status

Definition at line 200 of file usbd_req.c.

Referenced by USBD_SetupStage().

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