1.4.21.43 SERCOMx_SPI_ReadBufferSizeGet Function

C

/* x = SERCOM instance number */

/* SPI slave mode */

size_t SERCOMx_SPI_ReadBufferSizeGet(void)

Summary

Returns the size of the PLIB's internal receive buffer

Description

This function returns the size of the SPI PLIB's internal receive buffer. The receive buffer size will be the same as configured in MHC

Precondition

None

Parameters

None

Returns

size_t - Size of the PLIB's internal receive buffer

Example

size_t rxBufferSize;

rxBufferSize = SERCOM0_SPI_ReadBufferSizeGet();

Remarks

None