EasyManuals Logo

ST STM32F31xx User Manual

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
Page #557 background imageLoading...
Page #557 background image
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

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals