Prusa MINI Firmware overview
|
|
USBD_StatusTypeDef | USBD_Init (USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id) |
| USBD_Init Initializes the device stack and load the class driver. More...
|
|
USBD_StatusTypeDef | USBD_DeInit (USBD_HandleTypeDef *pdev) |
| USBD_DeInit Re-Initialize th device library. More...
|
|
USBD_StatusTypeDef | USBD_RegisterClass (USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass) |
| USBD_RegisterClass Link class driver to Device Core. More...
|
|
USBD_StatusTypeDef | USBD_Start (USBD_HandleTypeDef *pdev) |
| USBD_Start Start the USB Device Core. More...
|
|
USBD_StatusTypeDef | USBD_Stop (USBD_HandleTypeDef *pdev) |
| USBD_Stop Stop the USB Device Core. More...
|
|
USBD_StatusTypeDef | USBD_RunTestMode (USBD_HandleTypeDef *pdev) |
| USBD_RunTestMode Launch test mode process. More...
|
|
USBD_StatusTypeDef | USBD_SetClassConfig (USBD_HandleTypeDef *pdev, uint8_t cfgidx) |
| USBD_SetClassConfig Configure device and start the interface. More...
|
|
USBD_StatusTypeDef | USBD_ClrClassConfig (USBD_HandleTypeDef *pdev, uint8_t cfgidx) |
| USBD_ClrClassConfig Clear current configuration. More...
|
|
USBD_StatusTypeDef | USBD_LL_SetupStage (USBD_HandleTypeDef *pdev, uint8_t *psetup) |
| USBD_SetupStage Handle the setup stage. More...
|
|
USBD_StatusTypeDef | USBD_LL_DataOutStage (USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) |
| USBD_DataOutStage Handle data OUT stage. More...
|
|
USBD_StatusTypeDef | USBD_LL_DataInStage (USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) |
| USBD_DataInStage Handle data in stage. More...
|
|
USBD_StatusTypeDef | USBD_LL_Reset (USBD_HandleTypeDef *pdev) |
| USBD_LL_Reset Handle Reset event. More...
|
|
USBD_StatusTypeDef | USBD_LL_SetSpeed (USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed) |
| USBD_LL_Reset Handle Reset event. More...
|
|
USBD_StatusTypeDef | USBD_LL_Suspend (USBD_HandleTypeDef *pdev) |
| USBD_Suspend Handle Suspend event. More...
|
|
USBD_StatusTypeDef | USBD_LL_Resume (USBD_HandleTypeDef *pdev) |
| USBD_Resume Handle Resume event. More...
|
|
USBD_StatusTypeDef | USBD_LL_SOF (USBD_HandleTypeDef *pdev) |
| USBD_SOF Handle SOF event. More...
|
|
USBD_StatusTypeDef | USBD_LL_IsoINIncomplete (USBD_HandleTypeDef *pdev, uint8_t epnum) |
| USBD_IsoINIncomplete Handle iso in incomplete event. More...
|
|
USBD_StatusTypeDef | USBD_LL_IsoOUTIncomplete (USBD_HandleTypeDef *pdev, uint8_t epnum) |
| USBD_IsoOUTIncomplete Handle iso out incomplete event. More...
|
|
USBD_StatusTypeDef | USBD_LL_DevConnected (USBD_HandleTypeDef *pdev) |
| USBD_DevConnected Handle device connection event. More...
|
|
USBD_StatusTypeDef | USBD_LL_DevDisconnected (USBD_HandleTypeDef *pdev) |
| USBD_DevDisconnected Handle device disconnection event. More...
|
|
◆ USBD_Init()
USBD_Init Initializes the device stack and load the class driver.
- Parameters
-
pdev | device instance |
pdesc | Descriptor structure address |
id | Low level core index |
- Return values
-
◆ USBD_DeInit()
USBD_DeInit Re-Initialize th device library.
- Parameters
-
- Return values
-
◆ USBD_RegisterClass()
USBD_RegisterClass Link class driver to Device Core.
- Parameters
-
pDevice | : Device Handle |
pclass | Class handle |
- Return values
-
◆ USBD_Start()
USBD_Start Start the USB Device Core.
- Parameters
-
- Return values
-
◆ USBD_Stop()
USBD_Stop Stop the USB Device Core.
- Parameters
-
- Return values
-
◆ USBD_RunTestMode()
USBD_RunTestMode Launch test mode process.
- Parameters
-
- Return values
-
◆ USBD_SetClassConfig()
USBD_SetClassConfig Configure device and start the interface.
- Parameters
-
pdev | device instance |
cfgidx | configuration index |
- Return values
-
◆ USBD_ClrClassConfig()
USBD_ClrClassConfig Clear current configuration.
- Parameters
-
pdev | device instance |
cfgidx | configuration index |
- Return values
-
◆ USBD_LL_SetupStage()
USBD_SetupStage Handle the setup stage.
- Parameters
-
- Return values
-
◆ USBD_LL_DataOutStage()
USBD_DataOutStage Handle data OUT stage.
- Parameters
-
pdev | device instance |
epnum | endpoint index |
- Return values
-
◆ USBD_LL_DataInStage()
USBD_DataInStage Handle data in stage.
- Parameters
-
pdev | device instance |
epnum | endpoint index |
- Return values
-
349 pep = &pdev->
ep_in[0];
◆ USBD_LL_Reset()
USBD_LL_Reset Handle Reset event.
- Parameters
-
- Return values
-
◆ USBD_LL_SetSpeed()
USBD_LL_Reset Handle Reset event.
- Parameters
-
- Return values
-
◆ USBD_LL_Suspend()
USBD_Suspend Handle Suspend event.
- Parameters
-
- Return values
-
◆ USBD_LL_Resume()
USBD_Resume Handle Resume event.
- Parameters
-
- Return values
-
◆ USBD_LL_SOF()
USBD_SOF Handle SOF event.
- Parameters
-
- Return values
-
◆ USBD_LL_IsoINIncomplete()
USBD_IsoINIncomplete Handle iso in incomplete event.
- Parameters
-
- Return values
-
◆ USBD_LL_IsoOUTIncomplete()
USBD_IsoOUTIncomplete Handle iso out incomplete event.
- Parameters
-
- Return values
-
◆ USBD_LL_DevConnected()
USBD_DevConnected Handle device connection event.
- Parameters
-
- Return values
-
◆ USBD_LL_DevDisconnected()
USBD_DevDisconnected Handle device disconnection event.
- Parameters
-
- Return values
-
uint8_t(* DeInit)(struct _USBD_HandleTypeDef *pdev, uint8_t cfgidx)
Definition: usbd_def.h:163
uint8_t dev_old_state
Definition: usbd_def.h:237
#define USBD_ErrLog(...)
Definition: usbd_conf.h:157
uint8_t(* SOF)(struct _USBD_HandleTypeDef *pdev)
Definition: usbd_def.h:171
USBD_StatusTypeDef USBD_RunTestMode(USBD_HandleTypeDef *pdev)
USBD_RunTestMode Launch test mode process.
Definition: usbd_core.c:213
USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len)
USBD_CtlContinueRx continue receive data on the ctl pipe.
Definition: usbd_ioreq.c:160
uint16_t wLength
Definition: usbd_def.h:155
USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev)
Starts the low level portion of the device driver.
Definition: usbd_conf.c:355
USBD_SetupReqTypedef request
Definition: usbd_def.h:243
#define USBD_STATE_CONFIGURED
Definition: usbd_def.h:120
USBD_ClassTypeDef * pClass
Definition: usbd_def.h:245
#define MIN(a, b)
Definition: usbd_def.h:265
Definition: usbd_def.h:197
uint8_t(* DataOut)(struct _USBD_HandleTypeDef *pdev, uint8_t epnum)
Definition: usbd_def.h:170
uint8_t dev_state
Definition: usbd_def.h:236
uint32_t ep0_state
Definition: usbd_def.h:234
USBD_EndpointTypeDef ep_in[15]
Definition: usbd_def.h:232
USBD_DescriptorsTypeDef * pDesc
Definition: usbd_def.h:244
#define USBD_EP0_DATA_OUT
Definition: usbd_def.h:128
uint8_t bmRequest
Definition: usbd_def.h:151
#define USBD_EP0_SETUP
Definition: usbd_def.h:126
uint32_t ep0_data_len
Definition: usbd_def.h:235
void * pClassData
Definition: usbd_def.h:246
#define NULL
Definition: usbd_def.h:53
#define USB_MAX_EP0_SIZE
Definition: usbd_def.h:115
uint32_t dev_config
Definition: usbd_def.h:228
#define USB_REQ_RECIPIENT_DEVICE
Definition: usbd_def.h:78
#define USB_REQ_RECIPIENT_INTERFACE
Definition: usbd_def.h:79
USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
USBD_StdEPReq Handle standard usb endpoint requests.
Definition: usbd_ctlreq.c:207
USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps)
Opens an endpoint of the low level driver.
Definition: usbd_conf.c:420
USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
USBD_StdDevReq Handle standard usb device requests.
Definition: usbd_ctlreq.c:119
USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
Initializes the low level portion of the device driver.
Definition: usbd_conf.c:290
void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata)
USBD_ParseSetupRequest Copy buffer into setup structure.
Definition: usbd_ctlreq.c:698
USBD_StatusTypeDef USBD_LL_Stop(USBD_HandleTypeDef *pdev)
Stops the low level portion of the device driver.
Definition: usbd_conf.c:386
USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Sets a Stall condition on an endpoint of the Low Level Driver.
Definition: usbd_conf.c:516
Definition: usbd_def.h:216
uint8_t(* EP0_RxReady)(struct _USBD_HandleTypeDef *pdev)
Definition: usbd_def.h:167
uint32_t rem_length
Definition: usbd_def.h:220
uint8_t(* DataIn)(struct _USBD_HandleTypeDef *pdev, uint8_t epnum)
Definition: usbd_def.h:169
uint8_t(* Init)(struct _USBD_HandleTypeDef *pdev, uint8_t cfgidx)
Definition: usbd_def.h:162
USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len)
USBD_CtlContinueSendData continue sending data on the ctl pipe.
Definition: usbd_ioreq.c:117
uint8_t id
Definition: usbd_def.h:227
USBD_SpeedTypeDef dev_speed
Definition: usbd_def.h:231
USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Prepares an endpoint for reception.
Definition: usbd_conf.c:664
USBD_EndpointTypeDef ep_out[15]
Definition: usbd_def.h:233
USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev)
USBD_CtlSendStatus send zero lzngth packet on the ctl pipe.
Definition: usbd_ioreq.c:177
#define USBD_STATE_DEFAULT
Definition: usbd_def.h:118
uint8_t dev_test_mode
Definition: usbd_def.h:240
USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev)
USBD_CtlReceiveStatus receive zero lzngth packet on the ctl pipe.
Definition: usbd_ioreq.c:195
static status_t status
Definition: filament_sensor.c:37
USBD_StatusTypeDef
Definition: usbd_def.h:194
USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
USBD_StdItfReq Handle standard usb interface requests.
Definition: usbd_ctlreq.c:170
#define USB_REQ_RECIPIENT_ENDPOINT
Definition: usbd_def.h:80
#define USBD_EP_TYPE_CTRL
Definition: usbd_def.h:133
#define USBD_STATE_SUSPENDED
Definition: usbd_def.h:121
#define USBD_EP0_DATA_IN
Definition: usbd_def.h:127
uint8_t(* EP0_TxSent)(struct _USBD_HandleTypeDef *pdev)
Definition: usbd_def.h:166
Definition: usbd_def.h:195
uint32_t maxpacket
Definition: usbd_def.h:221
uint32_t total_length
Definition: usbd_def.h:219
USBD_StatusTypeDef USBD_LL_DeInit(USBD_HandleTypeDef *pdev)
De-Initializes the low level portion of the device driver.
Definition: usbd_conf.c:324