__HAL_SMARTCARD_GET_FLAG macro
Check whether the specified Smartcard flag is set or not.
Syntax
#define __HAL_SMARTCARD_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) Arguments
__HANDLE__
specifies the SMARTCARD Handle. SMARTCARD Handle selects the USARTx peripheral (USART availability and x value depending on device).
__FLAG__
specifies the flag to check. This parameter can be one of the following values: @arg SMARTCARD_FLAG_TXE: Transmit data register empty flag @arg SMARTCARD_FLAG_TC: Transmission Complete flag @arg SMARTCARD_FLAG_RXNE: Receive data register not empty flag @arg SMARTCARD_FLAG_IDLE: Idle Line detection flag @arg SMARTCARD_FLAG_ORE: Overrun Error flag @arg SMARTCARD_FLAG_NE: Noise Error flag @arg SMARTCARD_FLAG_FE: Framing Error flag @arg SMARTCARD_FLAG_PE: Parity Error flag
Return value
The new state of __FLAG__ (TRUE or FALSE).