1.20.18.7 SPIx_ReadBufferSizeGet Function

C

/* x = SPI instance number */

/* SPI slave mode */
size_t SPIx_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 = SPI1_ReadBufferSizeGet();

Remarks

None