STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Collaboration diagram for USBD_REQ_Private_Functions:

Functions

USBD_StatusTypeDef USBD_StdDevReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_StdDevReq Handle standard usb device requests.
USBD_StatusTypeDef USBD_StdItfReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_StdItfReq Handle standard usb interface requests.
USBD_StatusTypeDef USBD_StdEPReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_StdEPReq Handle standard usb endpoint requests.
void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata)
 USBD_ParseSetupRequest Copy buffer into setup structure.
void USBD_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_CtlError Handle USB low level Error.
void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len)
 USBD_GetString Convert Ascii string into unicode one.

Detailed Description

Function Documentation

◆ USBD_CtlError()

void USBD_CtlError ( USBD_HandleTypeDef * pdev,
USBD_SetupReqTypedef * req )

USBD_CtlError Handle USB low level Error.

Parameters
pdevdevice instance
requsb request
Return values
None

Definition at line 979 of file usbd_ctlreq.c.

References UNUSED, and USBD_LL_StallEP().

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

◆ USBD_GetString()

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 996 of file usbd_ctlreq.c.

References MIN, NULL, USB_DESC_TYPE_STRING, USBD_GetLen(), and USBD_MAX_STR_DESC_SIZ.

Referenced by USBD_HS_ConfigStrDescriptor(), USBD_HS_InterfaceStrDescriptor(), USBD_HS_ManufacturerStrDescriptor(), and USBD_HS_ProductStrDescriptor().

◆ USBD_ParseSetupRequest()

void USBD_ParseSetupRequest ( USBD_SetupReqTypedef * req,
uint8_t * pdata )

USBD_ParseSetupRequest Copy buffer into setup structure.

Parameters
requsb request
pdatasetup data pointer
Return values
None

Definition at line 950 of file usbd_ctlreq.c.

References SWAPBYTE().

Referenced by USBD_LL_SetupStage().

◆ USBD_StdDevReq()

◆ USBD_StdEPReq()

◆ USBD_StdItfReq()