HAL
SPI_CHECK_IT_SOURCE is only used within HAL.
 
Symbols
loading...
Files
loading...

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.

References

LocationText
stm32f4xx_hal_spi.h:519
#define SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == \
stm32f4xx_hal_spi.c:2422
(SPI_CHECK_FLAG(itflag, SPI_FLAG_RXNE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_RXNE) != RESET))
stm32f4xx_hal_spi.c:2429
if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_TXE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_TXE) != RESET))
stm32f4xx_hal_spi.c:2437
|| (SPI_CHECK_FLAG(itflag, SPI_FLAG_FRE) != RESET)) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_ERR) != RESET))