SPI_CHECK_IT_SOURCE macro
Check whether the specified SPI Interrupt is set or not.
Syntax
#define SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == \
(__INTERRUPT__)) ? SET : RESET)
Arguments
__CR2__
copy of SPI CR2 register.
__INTERRUPT__
specifies the SPI interrupt source to check. This parameter can be one of the following values: @arg SPI_IT_TXE: Tx buffer empty interrupt enable @arg SPI_IT_RXNE: RX buffer not empty interrupt enable @arg SPI_IT_ERR: Error interrupt enable
Return value
SET or RESET.