1.1.13.22 1.8.24.20 1.10.23.22 1.11.23.22 1.12.24.22 1.13.22.22 1.14.17.22 1.15.18.22 1.16.25.22 1.17.20.22 1.18.21.22 1.19.21.22 1.20.25.22 1.21.26.22 1.22.28.22 1.23.27.22 1.24.23.22 1.27.26.20 1.34.26.20 1.35.20.20 UARTx_ReadBufferSizeGet Function

C

/* x = UART instance number */

/* Ring buffer mode */

size_t UARTx_ReadBufferSizeGet(void)

Summary

Returns the size of the receive ring buffer

Description

This function returns the size of the receive ring buffer, which is same as the size of the receive ring buffer configured in MHC.

Precondition

UARTx_Initialize must have been called for the associated UART instance.

Parameters

None

Returns

The API returns the size of the receive ring buffer. If 9-bit mode is enabled, then the return value indicates the number of 9-bit data that can be copied to the internal receive ring buffer.

Example

size_t rxBufferSize;

rxBufferSize = UART1_ReadBufferSizeGet();

Remarks

None