1.2.21.21 1.3.25.21 1.4.21.21 1.5.25.21 1.6.22.21 1.7.23.21 1.9.19.21 1.29.23.21 1.30.18.21 1.31.18.21 1.32.26.21 1.33.16.21 1.37.18.21 1.38.21.21 1.39.18.21 1.40.20.21 SERCOMx_USART_ReadBufferSizeGet Function

C

/* x = SERCOM instance number */

/* Ring buffer mode */

size_t SERCOMx_USART_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

SERCOMx_USART_Initialize must have been called for the associated SERCOM_USART 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 = SERCOM0_USART_ReadBufferSizeGet();

Remarks

None