|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
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_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) |
| USBD_CtlError Handle USB low level Error. | |
| void | USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata) |
| USBD_ParseSetupRequest Copy buffer into setup structure. | |
| void | USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len) |
| USBD_GetString Convert Ascii string into unicode one. | |
| void USBD_CtlError | ( | USBD_HandleTypeDef * | pdev, |
| USBD_SetupReqTypedef * | req ) |
USBD_CtlError Handle USB low level Error.
| pdev | device instance |
| req | usb request |
| 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().
| void USBD_GetString | ( | uint8_t * | desc, |
| uint8_t * | unicode, | ||
| uint16_t * | len ) |
USBD_GetString Convert Ascii string into unicode one.
| desc | : descriptor buffer |
| unicode | : Formatted string buffer (unicode) |
| len | : descriptor length |
| 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().
| void USBD_ParseSetupRequest | ( | USBD_SetupReqTypedef * | req, |
| uint8_t * | pdata ) |
USBD_ParseSetupRequest Copy buffer into setup structure.
| req | usb request |
| pdata | setup data pointer |
| None |
Definition at line 950 of file usbd_ctlreq.c.
References SWAPBYTE().
Referenced by USBD_LL_SetupStage().
| USBD_StatusTypeDef USBD_StdDevReq | ( | USBD_HandleTypeDef * | pdev, |
| USBD_SetupReqTypedef * | req ) |
USBD_StdDevReq Handle standard usb device requests.
| pdev | device instance |
| req | usb request |
| status |
Definition at line 104 of file usbd_ctlreq.c.
References _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::pClass, _Device_cb::Setup, USB_REQ_CLEAR_FEATURE, USB_REQ_GET_CONFIGURATION, USB_REQ_GET_DESCRIPTOR, USB_REQ_GET_STATUS, USB_REQ_SET_ADDRESS, USB_REQ_SET_CONFIGURATION, USB_REQ_SET_FEATURE, USB_REQ_TYPE_CLASS, USB_REQ_TYPE_MASK, USB_REQ_TYPE_STANDARD, USB_REQ_TYPE_VENDOR, USBD_ClrFeature(), USBD_CtlError(), USBD_GetConfig(), USBD_GetDescriptor(), USBD_GetStatus(), USBD_OK, USBD_SetAddress(), USBD_SetConfig(), and USBD_SetFeature().
Referenced by USBD_LL_SetupStage().
| USBD_StatusTypeDef USBD_StdEPReq | ( | USBD_HandleTypeDef * | pdev, |
| USBD_SetupReqTypedef * | req ) |
USBD_StdEPReq Handle standard usb endpoint requests.
| pdev | device instance |
| req | usb request |
| status |
Definition at line 239 of file usbd_ctlreq.c.
References _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::dev_state, _USBD_HandleTypeDef::ep_in, _USBD_HandleTypeDef::ep_out, USBD_EndpointTypeDef::is_used, LOBYTE, NULL, _USBD_HandleTypeDef::pClass, _Device_cb::Setup, USBD_EndpointTypeDef::status, USB_FEATURE_EP_HALT, USB_REQ_CLEAR_FEATURE, USB_REQ_GET_STATUS, USB_REQ_SET_FEATURE, USB_REQ_TYPE_CLASS, USB_REQ_TYPE_MASK, USB_REQ_TYPE_STANDARD, USB_REQ_TYPE_VENDOR, USBD_CoreFindEP(), USBD_CtlError(), USBD_CtlSendData(), USBD_CtlSendStatus(), USBD_LL_ClearStallEP(), USBD_LL_IsStallEP(), USBD_LL_StallEP(), USBD_MAX_SUPPORTED_CLASS, USBD_OK, USBD_STATE_ADDRESSED, and USBD_STATE_CONFIGURED.
Referenced by USBD_LL_SetupStage().
| USBD_StatusTypeDef USBD_StdItfReq | ( | USBD_HandleTypeDef * | pdev, |
| USBD_SetupReqTypedef * | req ) |
USBD_StdItfReq Handle standard usb interface requests.
| pdev | device instance |
| req | usb request |
| status |
Definition at line 167 of file usbd_ctlreq.c.
References _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::dev_state, LOBYTE, NULL, _USBD_HandleTypeDef::pClass, _Device_cb::Setup, USB_REQ_TYPE_CLASS, USB_REQ_TYPE_MASK, USB_REQ_TYPE_STANDARD, USB_REQ_TYPE_VENDOR, USBD_CoreFindIF(), USBD_CtlError(), USBD_CtlSendStatus(), USBD_FAIL, USBD_MAX_NUM_INTERFACES, USBD_MAX_SUPPORTED_CLASS, USBD_OK, USBD_STATE_ADDRESSED, USBD_STATE_CONFIGURED, and USBD_STATE_DEFAULT.
Referenced by USBD_LL_SetupStage().