__HAL_SMARTCARD_CLEAR_FLAG macro
Clear the specified Smartcard pending flags.
Syntax
#define __HAL_SMARTCARD_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__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 any combination of the following values: @arg SMARTCARD_FLAG_TC: Transmission Complete flag. @arg SMARTCARD_FLAG_RXNE: Receive data register not empty flag.
Return value
None
Notes
PE (Parity error), FE (Framing error), NE (Noise error) and ORE (Overrun error) flags are cleared by software sequence: a read operation to USART_SR register followed by a read operation to USART_DR register. RXNE flag can be also cleared by a read to the USART_DR register. TC flag can be also cleared by software sequence: a read operation to USART_SR register followed by a write operation to USART_DR register. TXE flag is cleared only by a write to the USART_DR register.