USB CDC Transmit Block Description
This block enables transmitting the data accumulated inside the USB transmit buffer in CDC (Communication Device Class) mode within STM microcontrollers. In order to populate data into the transmit buffer first, use the USB CDC Add To Tx block.

Table of Contents
- Inputs
- Outputs
- Block Parameters
- CubeMX Configuration for a Given MCU Model
- Comments and Troubleshooting
- See Also
Inputs
This block has no inputs.
Outputs
| Output Name | Type | Description |
|---|---|---|
| Send bytes | uint32 | The total count of raw bytes successfully transmitted out of the hardware transmit buffer. |
Block Parameters
| Parameter | Description |
|---|---|
| USB_TYPE | The target USB peripheral module type:USB_FS – Full SpeedUSB_HS – High Speed |
| Timeout [ms] | The maximum duration the system allows for the network transfer operation to complete before aborting, measured in milliseconds. |
| Sample time [ms] | The cyclic execution time interval of the block evaluated in milliseconds. |

CubeMX Configuration for a Given MCU Model
The required hardware peripheral setup is detailed in the dedicated CubeMX Configuration for a Given MCU Model subpage.
See Also
Last updated on