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

__HAL_I2S_GET_IT_SOURCE macro

Checks if the specified I2S interrupt source is enabled or disabled.

Syntax

#define __HAL_I2S_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2\

Arguments

__HANDLE__

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

__INTERRUPT__

specifies the I2S interrupt source to check. This parameter can be one of the following values: @arg I2S_IT_TXE: Tx buffer empty interrupt enable @arg I2S_IT_RXNE: RX buffer not empty interrupt enable @arg I2S_IT_ERR: Error interrupt enable

Return value

The new state of __IT__ (TRUE or FALSE).

References

LocationText
stm32f4xx_hal_i2s.h:387
#define __HAL_I2S_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2\
stm32f4xx_hal_i2s.c:1983
if (((i2ssr & I2S_FLAG_RXNE) == I2S_FLAG_RXNE) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_RXNE) != RESET))
stm32f4xx_hal_i2s.c:1989
if (((i2ssr & I2S_FLAG_OVR) == I2S_FLAG_OVR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET))
stm32f4xx_hal_i2s.c:2015
if (((i2ssr & I2S_FLAG_TXE) == I2S_FLAG_TXE) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_TXE) != RESET))
stm32f4xx_hal_i2s.c:2021
if (((i2ssr & I2S_FLAG_UDR) == I2S_FLAG_UDR) && (__HAL_I2S_GET_IT_SOURCE(hi2s, I2S_IT_ERR) != RESET))