__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).