1.8.7.16 1.25.6.16 1.26.5.16 1.27.5.16 1.28.6.16 1.36.7.16 1.41.5.16 1.42.3.16 FLEXCOMx_USART_ReadFreeBufferCountGet Function
C
/* x = FLEXCOM instance number */
/* Ring buffer mode */
size_t FLEXCOMx_USART_ReadFreeBufferCountGet(void)
Summary
Returns the number of bytes of free space available in the internal receive buffer
Description
This API returns the number of bytes of free space available in the internal receive buffer. This API can be used to determine how many bytes can be received before the receive buffer becomes full.
Precondition
FLEXCOMx_USART_Initialize must have been called for the associated FLEXCOM_USART instance.
Parameters
None
Returns
The API returns the number of bytes of free space in the receive buffer. If 9-bit mode is enabled, then the return value indicates number of 9-bit data that can be copied into the internal receive buffer.
Example
size_t nRxFreeSpace; nRxFreeSpace = FLEXCOM0_USART_ReadFreeBufferCountGet();
Remarks
None