SPI_CHECK_FLAG macro
Check whether the specified SPI flag is set or not.
Arguments
__SR__
copy of SPI SR register.
__FLAG__
specifies the flag to check. This parameter can be one of the following values: @arg SPI_FLAG_RXNE: Receive buffer not empty flag @arg SPI_FLAG_TXE: Transmit buffer empty flag @arg SPI_FLAG_CRCERR: CRC error flag @arg SPI_FLAG_MODF: Mode fault flag @arg SPI_FLAG_OVR: Overrun flag @arg SPI_FLAG_BSY: Busy flag @arg SPI_FLAG_FRE: Frame format error flag
Return value
SET or RESET.