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 1. Parameters
Data direction Parameter name Description

[in]

module

Pointer to the software instance struct

Returns

Indication of whether any writes are ongoing.

Table 2. Return Values
Return value Description

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