Prusa MINI Firmware overview

Usb VCP device module. More...

Collaboration diagram for USBD_CDC_IF:

Modules

 USBD_CDC_IF_Exported_Defines
 Defines.
 
 USBD_CDC_IF_Exported_Types
 Types.
 
 USBD_CDC_IF_Exported_Macros
 Aliases.
 
 USBD_CDC_IF_Exported_Variables
 Public variables.
 
 USBD_CDC_IF_Exported_FunctionsPrototype
 Public functions declaration.
 
 USBD_CDC_IF_Private_TypesDefinitions
 Private types.
 
 USBD_CDC_IF_Private_Defines
 Private defines.
 
 USBD_CDC_IF_Private_Macros
 Private macros.
 
 USBD_CDC_IF_Private_Variables
 Private variables.
 
 USBD_CDC_IF_Private_FunctionPrototypes
 Private functions declaration.
 

Functions

uint8_t CDC_Transmit_FS (uint8_t *Buf, uint16_t Len)
 CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function. More...
 

Variables

USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
 

Detailed Description

Usb VCP device module.

Function Documentation

◆ CDC_Transmit_FS()

uint8_t CDC_Transmit_FS ( uint8_t Buf,
uint16_t  Len 
)

CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function.

Note
Parameters
BufBuffer of data to be sent
LenNumber of data to be sent (in bytes)
Return values
USBD_OKif all operations are OK else USBD_FAIL or USBD_BUSY
317  {
318  uint8_t result = USBD_OK;
319  /* USER CODE BEGIN 7 */
321  if (hcdc->TxState != 0) {
322  return USBD_BUSY;
323  }
326  /* USER CODE END 7 */
327  return result;
328 }
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ USBD_Interface_fops_FS

USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
Initial value:

CDC Interface callback.

USBD_CDC_SetTxBuffer
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
Definition: usbd_cdc.c:810
CDC_DeInit_FS
static int8_t CDC_DeInit_FS(void)
DeInitializes the CDC media low layer.
Definition: usbd_cdc_if.c:200
CDC_Receive_FS
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
_USBD_HandleTypeDef::pClassData
void * pClassData
Definition: usbd_def.h:246
USBD_CDC_HandleTypeDef::TxState
__IO uint32_t TxState
Definition: usbd_cdc.h:121
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
USBD_BUSY
Definition: usbd_def.h:196
USBD_CDC_HandleTypeDef
Definition: usbd_cdc.h:111
uint8_t
const uint8_t[]
Definition: 404_html.c:3
USBD_CDC_TransmitPacket
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev)
USBD_CDC_DataOut Data received on non-control Out endpoint.
Definition: usbd_cdc.c:846
Len
#define Len
Definition: deflate.h:82
CDC_Init_FS
static int8_t CDC_Init_FS(void)
Initializes the CDC media low layer over the FS USB IP.
Definition: usbd_cdc_if.c:186
hUsbDeviceFS
USBD_HandleTypeDef hUsbDeviceFS
Definition: usb_device.c:73
CDC_Control_FS
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
USBD_OK
Definition: usbd_def.h:195