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

__HAL_SPI_ENABLE_IT macro

Enable the specified SPI interrupts.

Syntax

#define __HAL_SPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))

Arguments

__HANDLE__

specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral.

__INTERRUPT__

specifies the interrupt source to enable. 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

None

References

LocationText
stm32f4xx_hal_spi.h:361
#define __HAL_SPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))
stm32f4xx_hal_spi.c:1465
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_ERR));
stm32f4xx_hal_spi.c:1560
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR));
stm32f4xx_hal_spi.c:1650
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR));
stm32f4xx_hal_spi.c:1750
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR));
stm32f4xx_hal_spi.c:1864
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR));
stm32f4xx_hal_spi.c:2005
__HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR));