Prusa MINI Firmware overview
|
◆ USBD_CDC_RegisterInterface()
USBD_CDC_RegisterInterface.
- Parameters
-
pdev | device instance |
fops | CD Interface callback |
- Return values
-
◆ USBD_CDC_SetTxBuffer()
USBD_CDC_SetTxBuffer.
- Parameters
-
pdev | device instance |
pbuff | Tx Buffer |
- Return values
-
◆ USBD_CDC_SetRxBuffer()
USBD_CDC_SetRxBuffer.
- Parameters
-
pdev | device instance |
pbuff | Rx Buffer |
- Return values
-
◆ USBD_CDC_TransmitPacket()
USBD_CDC_DataOut Data received on non-control Out endpoint.
- Parameters
-
pdev | device instance |
epnum | endpoint number |
- Return values
-
◆ USBD_CDC_ReceivePacket()
USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.
- Parameters
-
- Return values
-
◆ USBD_CDC_Init()
USBD_CDC_Init Initialize the CDC interface.
- Parameters
-
pdev | device instance |
cfgidx | Configuration index |
- Return values
-
◆ USBD_CDC_DeInit()
USBD_CDC_Init DeInitialize the CDC layer.
- Parameters
-
pdev | device instance |
cfgidx | Configuration index |
- Return values
-
◆ USBD_CDC_Setup()
USBD_CDC_Setup Handle the CDC specific requests.
- Parameters
-
pdev | instance |
req | usb requests |
- Return values
-
◆ USBD_CDC_DataIn()
USBD_CDC_DataIn Data sent on non-control IN endpoint.
- Parameters
-
pdev | device instance |
epnum | endpoint number |
- Return values
-
◆ USBD_CDC_DataOut()
USBD_CDC_DataOut Data received on non-control Out endpoint.
- Parameters
-
pdev | device instance |
epnum | endpoint number |
- Return values
-
◆ USBD_CDC_EP0_RxReady()
USBD_CDC_DataOut Data received on non-control Out endpoint.
- Parameters
-
pdev | device instance |
epnum | endpoint number |
- Return values
-
◆ USBD_CDC_GetFSCfgDesc()
static uint8_t * USBD_CDC_GetFSCfgDesc |
( |
uint16_t * |
length | ) |
|
|
static |
USBD_CDC_GetFSCfgDesc Return configuration descriptor.
- Parameters
-
speed | : current device speed |
length | : pointer data length |
- Return values
-
pointer | to descriptor buffer |
742 *
length =
sizeof (USBD_CDC_CfgFSDesc);
743 return USBD_CDC_CfgFSDesc;
◆ USBD_CDC_GetHSCfgDesc()
static uint8_t * USBD_CDC_GetHSCfgDesc |
( |
uint16_t * |
length | ) |
|
|
static |
USBD_CDC_GetHSCfgDesc Return configuration descriptor.
- Parameters
-
speed | : current device speed |
length | : pointer data length |
- Return values
-
pointer | to descriptor buffer |
755 *
length =
sizeof (USBD_CDC_CfgHSDesc);
756 return USBD_CDC_CfgHSDesc;
◆ USBD_CDC_GetOtherSpeedCfgDesc()
static uint8_t * USBD_CDC_GetOtherSpeedCfgDesc |
( |
uint16_t * |
length | ) |
|
|
static |
USBD_CDC_GetCfgDesc Return configuration descriptor.
- Parameters
-
speed | : current device speed |
length | : pointer data length |
- Return values
-
pointer | to descriptor buffer |
768 *
length =
sizeof (USBD_CDC_OtherSpeedCfgDesc);
769 return USBD_CDC_OtherSpeedCfgDesc;
◆ USBD_CDC_GetDeviceQualifierDescriptor()
uint8_t * USBD_CDC_GetDeviceQualifierDescriptor |
( |
uint16_t * |
length | ) |
|
DeviceQualifierDescriptor return Device Qualifier descriptor.
- Parameters
-
length | : pointer data length |
- Return values
-
pointer | to descriptor buffer |
780 *
length =
sizeof (USBD_CDC_DeviceQualifierDesc);
781 return USBD_CDC_DeviceQualifierDesc;
#define CDC_DATA_HS_IN_PACKET_SIZE
Definition: usbd_cdc.h:62
uint16_t wLength
Definition: usbd_def.h:155
__IO uint32_t RxState
Definition: usbd_cdc.h:122
uint32_t USBD_LL_GetRxDataSize(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Returns the last transfered packet size.
Definition: usbd_conf.c:696
#define USBD_EP_TYPE_INTR
Definition: usbd_def.h:136
uint8_t * RxBuffer
Definition: usbd_cdc.h:116
#define USB_REQ_GET_INTERFACE
Definition: usbd_def.h:91
uint32_t data[CDC_DATA_HS_MAX_PACKET_SIZE/4]
Definition: usbd_cdc.h:113
Definition: usbd_def.h:197
uint8_t bmRequest
Definition: usbd_def.h:151
USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Closes an endpoint of the low level driver.
Definition: usbd_conf.c:452
void * pClassData
Definition: usbd_def.h:246
#define USB_REQ_SET_INTERFACE
Definition: usbd_def.h:92
#define NULL
Definition: usbd_def.h:53
uint8_t CmdLength
Definition: usbd_cdc.h:115
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
#define USB_REQ_TYPE_MASK
Definition: usbd_def.h:76
USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len)
USBD_CtlSendData send data on the ctl pipe.
Definition: usbd_ioreq.c:95
#define CDC_IN_EP
Definition: usbd_cdc.h:52
__IO uint32_t TxState
Definition: usbd_cdc.h:121
USBD_StatusTypeDef USBD_CtlPrepareRx(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len)
USBD_CtlPrepareRx receive data on the ctl pipe.
Definition: usbd_ioreq.c:135
#define USB_REQ_TYPE_CLASS
Definition: usbd_def.h:74
#define USBD_EP_TYPE_BULK
Definition: usbd_def.h:135
Definition: usbd_cdc.h:101
USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Transmits data over an endpoint.
Definition: usbd_conf.c:630
Definition: usbd_def.h:196
Definition: usbd_def.h:188
Definition: usbd_cdc.h:111
#define USBD_malloc
Definition: usbd_conf.h:126
const uint8_t[]
Definition: 404_html.c:3
#define CDC_DATA_FS_OUT_PACKET_SIZE
Definition: usbd_cdc.h:66
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
uint8_t * TxBuffer
Definition: usbd_cdc.h:117
uint32_t RxLength
Definition: usbd_cdc.h:118
uint8_t bRequest
Definition: usbd_def.h:152
void * pUserData
Definition: usbd_def.h:247
#define CDC_DATA_FS_IN_PACKET_SIZE
Definition: usbd_cdc.h:65
uint8_t CmdOpCode
Definition: usbd_cdc.h:114
#define CDC_OUT_EP
Definition: usbd_cdc.h:53
#define USB_REQ_TYPE_STANDARD
Definition: usbd_def.h:73
png_uint_32 length
Definition: png.c:2247
#define CDC_CMD_PACKET_SIZE
Definition: usbd_cdc.h:59
uint32_t TxLength
Definition: usbd_cdc.h:119
Definition: usbd_def.h:195
#define CDC_CMD_EP
Definition: usbd_cdc.h:54
#define CDC_DATA_HS_OUT_PACKET_SIZE
Definition: usbd_cdc.h:63
#define USBD_free
Definition: usbd_conf.h:129