STM32F439xx HAL User Manual
Functions
FLAG_Management
USART Exported Functions

Functions

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_PE (USART_TypeDef *USARTx)
 Check if the USART Parity Error Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_FE (USART_TypeDef *USARTx)
 Check if the USART Framing Error Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_NE (USART_TypeDef *USARTx)
 Check if the USART Noise error detected Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ORE (USART_TypeDef *USARTx)
 Check if the USART OverRun Error Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_IDLE (USART_TypeDef *USARTx)
 Check if the USART IDLE line detected Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXNE (USART_TypeDef *USARTx)
 Check if the USART Read Data Register Not Empty Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TC (USART_TypeDef *USARTx)
 Check if the USART Transmission Complete Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXE (USART_TypeDef *USARTx)
 Check if the USART Transmit Data Register Empty Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_LBD (USART_TypeDef *USARTx)
 Check if the USART LIN Break Detection Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_nCTS (USART_TypeDef *USARTx)
 Check if the USART CTS Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_SBK (USART_TypeDef *USARTx)
 Check if the USART Send Break Flag is set or not.
__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RWU (USART_TypeDef *USARTx)
 Check if the USART Receive Wake Up from mute mode Flag is set or not.
__STATIC_INLINE void LL_USART_ClearFlag_PE (USART_TypeDef *USARTx)
 Clear Parity Error Flag.
__STATIC_INLINE void LL_USART_ClearFlag_FE (USART_TypeDef *USARTx)
 Clear Framing Error Flag.
__STATIC_INLINE void LL_USART_ClearFlag_NE (USART_TypeDef *USARTx)
 Clear Noise detected Flag.
__STATIC_INLINE void LL_USART_ClearFlag_ORE (USART_TypeDef *USARTx)
 Clear OverRun Error Flag.
__STATIC_INLINE void LL_USART_ClearFlag_IDLE (USART_TypeDef *USARTx)
 Clear IDLE line detected Flag.
__STATIC_INLINE void LL_USART_ClearFlag_TC (USART_TypeDef *USARTx)
 Clear Transmission Complete Flag.
__STATIC_INLINE void LL_USART_ClearFlag_RXNE (USART_TypeDef *USARTx)
 Clear RX Not Empty Flag.
__STATIC_INLINE void LL_USART_ClearFlag_LBD (USART_TypeDef *USARTx)
 Clear LIN Break Detection Flag.
__STATIC_INLINE void LL_USART_ClearFlag_nCTS (USART_TypeDef *USARTx)
 Clear CTS Interrupt Flag.

Function Documentation

__STATIC_INLINE void LL_USART_ClearFlag_FE ( USART_TypeDef *  USARTx)

Clear Framing Error Flag.

Note:
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, ORE, IDLE would also be cleared.
Reference Manual to LL API cross reference:
SR FE LL_USART_ClearFlag_FE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1911 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_IDLE ( USART_TypeDef *  USARTx)

Clear IDLE line detected Flag.

Note:
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, FE, ORE would also be cleared.
Reference Manual to LL API cross reference:
SR IDLE LL_USART_ClearFlag_IDLE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1968 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_LBD ( USART_TypeDef *  USARTx)

Clear LIN Break Detection Flag.

Note:
Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not LIN feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
SR LBD LL_USART_ClearFlag_LBD
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2007 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_nCTS ( USART_TypeDef *  USARTx)

Clear CTS Interrupt Flag.

Note:
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
SR CTS LL_USART_ClearFlag_nCTS
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2020 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_NE ( USART_TypeDef *  USARTx)

Clear Noise detected Flag.

Note:
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, FE, ORE, IDLE would also be cleared.
Reference Manual to LL API cross reference:
SR NF LL_USART_ClearFlag_NE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1930 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_ORE ( USART_TypeDef *  USARTx)

Clear OverRun Error Flag.

Note:
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, FE, IDLE would also be cleared.
Reference Manual to LL API cross reference:
SR ORE LL_USART_ClearFlag_ORE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1949 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_PE ( USART_TypeDef *  USARTx)

Clear Parity Error Flag.

Note:
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as NE, FE, ORE, IDLE would also be cleared.
Reference Manual to LL API cross reference:
SR PE LL_USART_ClearFlag_PE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1892 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_RXNE ( USART_TypeDef *  USARTx)

Clear RX Not Empty Flag.

Reference Manual to LL API cross reference:
SR RXNE LL_USART_ClearFlag_RXNE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1994 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ClearFlag_TC ( USART_TypeDef *  USARTx)

Clear Transmission Complete Flag.

Reference Manual to LL API cross reference:
SR TC LL_USART_ClearFlag_TC
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1983 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_FE ( USART_TypeDef *  USARTx)

Check if the USART Framing Error Flag is set or not.

Reference Manual to LL API cross reference:
SR FE LL_USART_IsActiveFlag_FE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1763 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_IDLE ( USART_TypeDef *  USARTx)

Check if the USART IDLE line detected Flag is set or not.

Reference Manual to LL API cross reference:
SR IDLE LL_USART_IsActiveFlag_IDLE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1796 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_LBD ( USART_TypeDef *  USARTx)

Check if the USART LIN Break Detection Flag is set or not.

Note:
Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not LIN feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
SR LBD LL_USART_IsActiveFlag_LBD
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1842 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_nCTS ( USART_TypeDef *  USARTx)

Check if the USART CTS Flag is set or not.

Note:
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
SR CTS LL_USART_IsActiveFlag_nCTS
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1855 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_NE ( USART_TypeDef *  USARTx)

Check if the USART Noise error detected Flag is set or not.

Reference Manual to LL API cross reference:
SR NF LL_USART_IsActiveFlag_NE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1774 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ORE ( USART_TypeDef *  USARTx)

Check if the USART OverRun Error Flag is set or not.

Reference Manual to LL API cross reference:
SR ORE LL_USART_IsActiveFlag_ORE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1785 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_PE ( USART_TypeDef *  USARTx)

Check if the USART Parity Error Flag is set or not.

Reference Manual to LL API cross reference:
SR PE LL_USART_IsActiveFlag_PE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1752 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RWU ( USART_TypeDef *  USARTx)

Check if the USART Receive Wake Up from mute mode Flag is set or not.

Reference Manual to LL API cross reference:
CR1 RWU LL_USART_IsActiveFlag_RWU
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1877 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXNE ( USART_TypeDef *  USARTx)

Check if the USART Read Data Register Not Empty Flag is set or not.

Reference Manual to LL API cross reference:
SR RXNE LL_USART_IsActiveFlag_RXNE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1807 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_SBK ( USART_TypeDef *  USARTx)

Check if the USART Send Break Flag is set or not.

Reference Manual to LL API cross reference:
CR1 SBK LL_USART_IsActiveFlag_SBK
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1866 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TC ( USART_TypeDef *  USARTx)

Check if the USART Transmission Complete Flag is set or not.

Reference Manual to LL API cross reference:
SR TC LL_USART_IsActiveFlag_TC
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1818 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXE ( USART_TypeDef *  USARTx)

Check if the USART Transmit Data Register Empty Flag is set or not.

Reference Manual to LL API cross reference:
SR TXE LL_USART_IsActiveFlag_TXE
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1829 of file stm32f4xx_ll_usart.h.