Prusa MINI Firmware overview
|
Usb VCP device module.
More...
Usb VCP device module.
◆ CDC_Transmit_FS()
CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function.
- Note
- Parameters
-
Buf | Buffer of data to be sent |
Len | Number of data to be sent (in bytes) |
- Return values
-
USBD_OK | if all operations are OK else USBD_FAIL or USBD_BUSY |
◆ USBD_Interface_fops_FS
Initial value:CDC Interface callback.
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
Definition: usbd_cdc.c:810
static int8_t CDC_DeInit_FS(void)
DeInitializes the CDC media low layer.
Definition: usbd_cdc_if.c:200
static int8_t CDC_Receive_FS(uint8_t *pbuf, uint32_t *Len)
Data received over USB OUT endpoint are sent over CDC interface through this function.
Definition: usbd_cdc_if.c:297
void * pClassData
Definition: usbd_def.h:246
__IO uint32_t TxState
Definition: usbd_cdc.h:121
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
Definition: usbd_def.h:196
Definition: usbd_cdc.h:111
const uint8_t[]
Definition: 404_html.c:3
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev)
USBD_CDC_DataOut Data received on non-control Out endpoint.
Definition: usbd_cdc.c:846
#define Len
Definition: deflate.h:82
static int8_t CDC_Init_FS(void)
Initializes the CDC media low layer over the FS USB IP.
Definition: usbd_cdc_if.c:186
USBD_HandleTypeDef hUsbDeviceFS
Definition: usb_device.c:73
static int8_t CDC_Control_FS(uint8_t cmd, uint8_t *pbuf, uint16_t length)
Manage the CDC class requests.
Definition: usbd_cdc_if.c:214
Definition: usbd_def.h:195