SPI Flags

group SPI_Flags

Defines

SPI_FLAG_BUSY

SPI Busy flag. Set if it is actively transferring data. Reset if it is idle or disabled.

SPI_FLAG_TFNF

Transmit FIFO not full flag. Set if transmit FIFO is not full.

SPI_FLAG_TFE

Transmit FIFO empty flag. Set if transmit FIFO is empty.

SPI_FLAG_RFNE

Receive FIFO not empty flag. Set if receive FIFO is not empty.

SPI_FLAG_RFF

Receive FIFO full flag. Set if the receive FIFO is completely full.

SPI_FLAG_TXE

Transmission error flag. Set if the transmit FIFO is empty when a transfer is started in slave mode.

SPI_FLAG_DCOL

Data collision error flag. Set if it is actively transmitting in master mode when another master selects this device as a slave.

IS_SPI_GET_FLAG(FLAG)

Check if the input parameter is valid.