19.6.4.4.1 Function spi_is_write_complete()

Checks if the SPI in master mode has shifted out last data, or if the master has ended the transfer in slave mode.

bool spi_is_write_complete( struct spi_module *const module)

This function will check if the SPI master module has shifted out last data, or if the slave select pin has been drawn high by the master for the SPI slave module.

Table 19-21. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to the software instance struct

Returns

Indication of whether any writes are ongoing.

Table 19-22. Return Values
Return valueDescription

true

If the SPI master module has shifted out data, or slave select has been drawn high for SPI slave

false

If the SPI master module has not shifted out data