Skip to Content

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.



USB CDC Transmit block

Table of Contents

Inputs

This block has no inputs.

Outputs

Output NameTypeDescription
Send bytesuint32The total count of raw bytes successfully transmitted out of the hardware transmit buffer.

Block Parameters

ParameterDescription
USB_TYPEThe target USB peripheral module type:
USB_FS – Full Speed
USB_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.


Block parameters for USB CDC Transmit

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