__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