USART ReceiveALL Block Description
This block is used to receive data via the UART, USART, or LPUART interface in STM microcontrollers. It enables receiving all data along with headers and/or terminators and returns them at the output. To receive data with a specific header and/or terminator, use the USART Receive block.

Table of Contents
Inputs
This block has no inputs.
Outputs
| Output Name | Type | Description |
|---|---|---|
| Status | uint8 | Block operating status. Returns:1 operation successful0 operation failed |
| Num rx bytes | uint32 | Number of received data bytes. |
| Data | Depends on Output data type parameter | Data from received frames. It is returned excluding headers and/or terminators. |
Block Parameters
| Parameter | Description |
|---|---|
| USART/UART module number | Number of the USART/UART module. |
| Type | Peripheral interface type:UART/USART - UART or USART interfaceLPUART - LPUART interface |
| Hex format | Determines how the header is interpreted. When enabled, the header is treated as a sequence of hexadecimal (hex) values; when disabled, it is treated as an ASCII character string. |
| Output data type | Data type of the block output. |
| Max data length (bytes) | Maximum length of received data in bytes. |
| Non blocking mode | Enables the non-blocking operating mode. |
| Conditional Parameter Blocking timeout [ms] | How long the block will wait for data in the buffer. If this option is disabled, the block will check for data availability during each refresh period. This parameter is only available when the Non blocking mode option is disabled. |
| Sample time [s] | Function refresh period. |

CubeMX Configuration for a Given MCU Model
The interface configuration instructions are located on the subpage CubeMX Configuration for a Given MCU Model.
See Also
Last updated on