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

__HAL_I2S_GET_FLAG macro

Checks whether the specified I2S flag is set or not.

Syntax

#define __HAL_I2S_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))

Arguments

__HANDLE__

specifies the I2S Handle.

__FLAG__

specifies the flag to check. This parameter can be one of the following values: @arg I2S_FLAG_RXNE: Receive buffer not empty flag @arg I2S_FLAG_TXE: Transmit buffer empty flag @arg I2S_FLAG_UDR: Underrun flag @arg I2S_FLAG_OVR: Overrun flag @arg I2S_FLAG_FRE: Frame error flag @arg I2S_FLAG_CHSIDE: Channel Side flag @arg I2S_FLAG_BSY: Busy flag

Return value

The new state of __FLAG__ (TRUE or FALSE).

References

LocationText
stm32f4xx_hal_i2s.h:403
#define __HAL_I2S_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))
stm32f4xx_hal_i2s.c:914
if (__HAL_I2S_GET_FLAG(hi2s, I2S_FLAG_UDR) == SET)
stm32f4xx_hal_i2s.c:1030
if (__HAL_I2S_GET_FLAG(hi2s, I2S_FLAG_OVR) == SET)
stm32f4xx_hal_i2s.c:2062
while (((__HAL_I2S_GET_FLAG(hi2s, Flag)) ? SET : RESET) != State)
stm32f4xx_hal_i2s_ex.c:292
if ((__HAL_I2S_GET_FLAG(hi2s, I2S_FLAG_UDR) == SET) && (tmp1 == I2S_MODE_SLAVE_TX))
stm32f4xx_hal_i2s_ex.c:389
if (__HAL_I2S_GET_FLAG(hi2s, I2S_FLAG_OVR) == SET)
stm32f4xx_hal_i2s_ex.c:1082
while (((__HAL_I2S_GET_FLAG(hi2s, Flag)) ? SET : RESET) != State)