UART receive buffer status

Block to obtain information about the receive buffer.

Description

The block can be used to determine the number of bytes currently stored in the reception buffer. The UART receive block can be used to read the bytes from the buffer one-by-one.

Parameters
Channel
Select the UART channel
Sampl time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.
Output

This block outputs the number of bytes currently stored in the reception buffer.
The used datatype is 16-bit unsigned.