ST STM32F31xx User Manual page 557

Table of Contents

Advertisement

UM1581
23.2.17.5 USART_ClearFlag
Function Name
Function Description
Parameters
Return values
Notes
Universal synchronous asynchronous receiver
void USART_ClearFlag (
USART_FLAG)
Clears the USARTx's pending flags.
USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
USART_FLAG : specifies the flag to clear. This parameter
can be any combination of the following values:
USART_FLAG_WUF :
USART_FLAG_CMF :
USART_FLAG_EOBF :
USART_FLAG_RTOF :
USART_FLAG_CTS :
USART_FLAG_LBD :
USART_FLAG_TC :
USART_FLAG_IDLE :
USART_FLAG_ORE :
USART_FLAG_NE :
USART_FLAG_FE :
USART_FLAG_PE :
None.
RXNE pending bit is cleared by a read to the USART_RDR
register (USART_ReceiveData()) or by writing 1 to the
RXFRQ in the register USART_RQR
(USART_RequestCmd()).TC flag can be also cleared by
software sequence: a read operation to USART_SR register
(USART_GetFlagStatus()) followed by a write operation to
USART_TDR register (USART_SendData()).TXE flag is
cleared by a write to the USART_TDR register
(USART_SendData()) or by writing 1 to the TXFRQ in the
register USART_RQR (USART_RequestCmd()).SBKF flag is
cleared by 1 to the SBKRQ in the register USART_RQR
(USART_RequestCmd()).
DocID023800 Rev 1
transmitter (USART)
USART_TypeDef *
USARTx, uint32_t
Wake up flag.
Character match flag.
End of block flag.
Receive time out flag.
CTS Change flag.
LIN Break detection flag.
Transmission Complete flag.
IDLE line detected flag.
OverRun Error flag.
Noise Error flag.
Framing Error flag.
Parity Errorflag.
557/584

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F31xx and is the answer not in the manual?

This manual is also suitable for:

Stm32f30xx

Table of Contents