SPI Flags
- group SPI_Flags
-
Defines
-
SPI_FLAG_BUSY BIT0
-
SPI Busy flag. Set if it is actively transferring data. Reset if it is idle or disabled.
-
SPI_FLAG_TFNF BIT1
-
Transmit FIFO not full flag. Set if transmit FIFO is not full.
-
SPI_FLAG_TFE BIT2
-
Transmit FIFO empty flag. Set if transmit FIFO is empty.
-
SPI_FLAG_RFNE BIT3
-
Receive FIFO not empty flag. Set if receive FIFO is not empty.
-
SPI_FLAG_RFF BIT4
-
Receive FIFO full flag. Set if the receive FIFO is completely full.
-
SPI_FLAG_TXE BIT5
-
Transmission error flag. Set if the transmit FIFO is empty when a transfer is started in slave mode.
-
SPI_FLAG_DCOL BIT6
-
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) (((FLAG) == SPI_FLAG_DCOL
) || \
((FLAG) ==
SPI_FLAG_TXE) || \
((FLAG) ==
SPI_FLAG_RFF) || \
((FLAG) ==
SPI_FLAG_RFNE) || \
((FLAG) ==
SPI_FLAG_TFE) || \
((FLAG) ==
SPI_FLAG_TFNF) || \
((FLAG) ==
SPI_FLAG_BUSY))
-
Check if the input parameter is valid.
-
SPI_FLAG_BUSY BIT0