Prusa MINI Firmware overview
usbd_ctlreq.c File Reference
#include "usbd_ctlreq.h"
#include "usbd_ioreq.h"

Functions

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