EasyManua.ls Logo

ST STM32F31xx - Page 557

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Universal synchronous asynchronous receiver
transmitter (USART)
DocID023800 Rev 1
557/584
23.2.17.5 USART_ClearFlag
Function Name
void USART_ClearFlag ( USART_TypeDef * USARTx, uint32_t
USART_FLAG)
Function Description
Clears the USARTx's pending flags.
Parameters
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 : Wake up flag.
USART_FLAG_CMF : Character match flag.
USART_FLAG_EOBF : End of block flag.
USART_FLAG_RTOF : Receive time out flag.
USART_FLAG_CTS : CTS Change flag.
USART_FLAG_LBD : LIN Break detection flag.
USART_FLAG_TC : Transmission Complete flag.
USART_FLAG_IDLE : IDLE line detected flag.
USART_FLAG_ORE : OverRun Error flag.
USART_FLAG_NE : Noise Error flag.
USART_FLAG_FE : Framing Error flag.
USART_FLAG_PE : Parity Errorflag.
Return values
None.
Notes
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()).

Table of Contents

Related product manuals