Functions
USBD_REQ_Private_Functions
Collaboration diagram for USBD_REQ_Private_Functions:

Functions

static void USBD_ClrFeature (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_ClrFeature Handle clear device feature request. More...
 
void USBD_CtlError (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_CtlError Handle USB low level Error. 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_GetDescriptor (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_GetDescriptor Handle Get Descriptor requests. More...
 
static uint8_t USBD_GetLen (uint8_t *buf)
 USBD_GetLen return the string length. More...
 
static void USBD_GetStatus (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_GetStatus Handle Get Status request. More...
 
void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len)
 USBD_GetString Convert Ascii string into unicode one. More...
 
void USBD_ParseSetupRequest (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_ParseSetupRequest Copy buffer into setup structure. 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_SetFeature (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_SetFeature Handle Set device feature request. More...
 
USBD_Status USBD_StdDevReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdDevReq Handle standard usb device requests. More...
 
USBD_Status USBD_StdEPReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdEPReq Handle standard usb endpoint requests. More...
 
USBD_Status USBD_StdItfReq (USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
 USBD_StdItfReq Handle standard usb interface requests. More...
 

Detailed Description

Function Documentation

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 763 of file usbd_req.c.

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 813 of file usbd_req.c.

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 619 of file usbd_req.c.

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 373 of file usbd_req.c.

static uint8_t USBD_GetLen ( uint8_t *  buf)
static

USBD_GetLen return the string length.

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

Definition at line 855 of file usbd_req.c.

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 659 of file usbd_req.c.

void USBD_GetString ( 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 831 of file usbd_req.c.

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 792 of file usbd_req.c.

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 508 of file usbd_req.c.

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 550 of file usbd_req.c.

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 699 of file usbd_req.c.

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 143 of file usbd_req.c.

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 231 of file usbd_req.c.

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 194 of file usbd_req.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28