STM32L486xx HAL User Manual
Functions
IT_Management
USART Exported Functions

Functions

__STATIC_INLINE void LL_USART_EnableIT_IDLE (USART_TypeDef *USARTx)
 Enable IDLE Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_RXNE (USART_TypeDef *USARTx)
 Enable RX Not Empty Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_TC (USART_TypeDef *USARTx)
 Enable Transmission Complete Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_TXE (USART_TypeDef *USARTx)
 Enable TX Empty Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_PE (USART_TypeDef *USARTx)
 Enable Parity Error Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_CM (USART_TypeDef *USARTx)
 Enable Character Match Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_RTO (USART_TypeDef *USARTx)
 Enable Receiver Timeout Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_EOB (USART_TypeDef *USARTx)
 Enable End Of Block Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_LBD (USART_TypeDef *USARTx)
 Enable LIN Break Detection Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_ERROR (USART_TypeDef *USARTx)
 Enable Error Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_CTS (USART_TypeDef *USARTx)
 Enable CTS Interrupt.
__STATIC_INLINE void LL_USART_EnableIT_WKUP (USART_TypeDef *USARTx)
 Enable Wake Up from Stop Mode Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_IDLE (USART_TypeDef *USARTx)
 Disable IDLE Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_RXNE (USART_TypeDef *USARTx)
 Disable RX Not Empty Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_TC (USART_TypeDef *USARTx)
 Disable Transmission Complete Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_TXE (USART_TypeDef *USARTx)
 Disable TX Empty Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_PE (USART_TypeDef *USARTx)
 Disable Parity Error Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_CM (USART_TypeDef *USARTx)
 Disable Character Match Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_RTO (USART_TypeDef *USARTx)
 Disable Receiver Timeout Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_EOB (USART_TypeDef *USARTx)
 Disable End Of Block Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_LBD (USART_TypeDef *USARTx)
 Disable LIN Break Detection Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_ERROR (USART_TypeDef *USARTx)
 Disable Error Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_CTS (USART_TypeDef *USARTx)
 Disable CTS Interrupt.
__STATIC_INLINE void LL_USART_DisableIT_WKUP (USART_TypeDef *USARTx)
 Disable Wake Up from Stop Mode Interrupt.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_IDLE (USART_TypeDef *USARTx)
 Check if the USART IDLE Interrupt source is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXNE (USART_TypeDef *USARTx)
 Check if the USART RX Not Empty Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TC (USART_TypeDef *USARTx)
 Check if the USART Transmission Complete Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXE (USART_TypeDef *USARTx)
 Check if the USART TX Empty Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_PE (USART_TypeDef *USARTx)
 Check if the USART Parity Error Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CM (USART_TypeDef *USARTx)
 Check if the USART Character Match Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RTO (USART_TypeDef *USARTx)
 Check if the USART Receiver Timeout Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_EOB (USART_TypeDef *USARTx)
 Check if the USART End Of Block Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_LBD (USART_TypeDef *USARTx)
 Check if the USART LIN Break Detection Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_ERROR (USART_TypeDef *USARTx)
 Check if the USART Error Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CTS (USART_TypeDef *USARTx)
 Check if the USART CTS Interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_WKUP (USART_TypeDef *USARTx)
 Check if the USART Wake Up from Stop Mode Interrupt is enabled or disabled.

Function Documentation

__STATIC_INLINE void LL_USART_DisableIT_CM ( USART_TypeDef *  USARTx)

Disable Character Match Interrupt.

Reference Manual to LL API cross reference:
CR1 CMIE LL_USART_DisableIT_CM
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3969 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_CTS ( USART_TypeDef *  USARTx)

Disable CTS Interrupt.

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:
CR3 CTSIE LL_USART_DisableIT_CTS
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 4062 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_EOB ( USART_TypeDef *  USARTx)

Disable End Of Block Interrupt.

Note:
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR1 EOBIE LL_USART_DisableIT_EOB
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3993 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_ERROR ( USART_TypeDef *  USARTx)

Disable Error Interrupt.

Note:
When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the USARTx_ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the USARTx_ISR register.
Reference Manual to LL API cross reference:
CR3 EIE LL_USART_DisableIT_ERROR
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 4049 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_IDLE ( USART_TypeDef *  USARTx)

Disable IDLE Interrupt.

Reference Manual to LL API cross reference:
CR1 IDLEIE LL_USART_DisableIT_IDLE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3876 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_LBD ( USART_TypeDef *  USARTx)

Disable LIN Break Detection Interrupt.

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:
CR2 LBDIE LL_USART_DisableIT_LBD
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 4034 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_PE ( USART_TypeDef *  USARTx)

Disable Parity Error Interrupt.

Reference Manual to LL API cross reference:
CR1 PEIE LL_USART_DisableIT_PE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3958 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_RTO ( USART_TypeDef *  USARTx)

Disable Receiver Timeout Interrupt.

Reference Manual to LL API cross reference:
CR1 RTOIE LL_USART_DisableIT_RTO
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3980 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_RXNE ( USART_TypeDef *  USARTx)

Disable RX Not Empty Interrupt.

Reference Manual to LL API cross reference:
CR1 RXNEIE LL_USART_DisableIT_RXNE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3905 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_TC ( USART_TypeDef *  USARTx)

Disable Transmission Complete Interrupt.

Reference Manual to LL API cross reference:
CR1 TCIE LL_USART_DisableIT_TC
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3917 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_TXE ( USART_TypeDef *  USARTx)

Disable TX Empty Interrupt.

Reference Manual to LL API cross reference:
CR1 TXEIE LL_USART_DisableIT_TXE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3946 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableIT_WKUP ( USART_TypeDef *  USARTx)

Disable Wake Up from Stop Mode Interrupt.

Note:
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not Wake-up from Stop mode feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR3 WUFIE LL_USART_DisableIT_WKUP
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 4075 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_CM ( USART_TypeDef *  USARTx)

Enable Character Match Interrupt.

Reference Manual to LL API cross reference:
CR1 CMIE LL_USART_EnableIT_CM
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3715 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_CTS ( USART_TypeDef *  USARTx)

Enable CTS Interrupt.

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:
CR3 CTSIE LL_USART_EnableIT_CTS
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3806 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_EOB ( USART_TypeDef *  USARTx)

Enable End Of Block Interrupt.

Note:
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR1 EOBIE LL_USART_EnableIT_EOB
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3739 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_ERROR ( USART_TypeDef *  USARTx)

Enable Error Interrupt.

Note:
When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the USARTx_ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the USARTx_ISR register.
Reference Manual to LL API cross reference:
CR3 EIE LL_USART_EnableIT_ERROR
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3793 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_IDLE ( USART_TypeDef *  USARTx)

Enable IDLE Interrupt.

Reference Manual to LL API cross reference:
CR1 IDLEIE LL_USART_EnableIT_IDLE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3622 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_LBD ( USART_TypeDef *  USARTx)

Enable LIN Break Detection Interrupt.

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:
CR2 LBDIE LL_USART_EnableIT_LBD
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3778 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_PE ( USART_TypeDef *  USARTx)

Enable Parity Error Interrupt.

Reference Manual to LL API cross reference:
CR1 PEIE LL_USART_EnableIT_PE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3704 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_RTO ( USART_TypeDef *  USARTx)

Enable Receiver Timeout Interrupt.

Reference Manual to LL API cross reference:
CR1 RTOIE LL_USART_EnableIT_RTO
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3726 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_RXNE ( USART_TypeDef *  USARTx)

Enable RX Not Empty Interrupt.

Reference Manual to LL API cross reference:
CR1 RXNEIE LL_USART_EnableIT_RXNE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3651 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_TC ( USART_TypeDef *  USARTx)

Enable Transmission Complete Interrupt.

Reference Manual to LL API cross reference:
CR1 TCIE LL_USART_EnableIT_TC
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3663 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_TXE ( USART_TypeDef *  USARTx)

Enable TX Empty Interrupt.

Reference Manual to LL API cross reference:
CR1 TXEIE LL_USART_EnableIT_TXE
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3692 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableIT_WKUP ( USART_TypeDef *  USARTx)

Enable Wake Up from Stop Mode Interrupt.

Note:
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not Wake-up from Stop mode feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR3 WUFIE LL_USART_EnableIT_WKUP
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 3819 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CM ( USART_TypeDef *  USARTx)

Check if the USART Character Match Interrupt is enabled or disabled.

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

Definition at line 4225 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CTS ( USART_TypeDef *  USARTx)

Check if the USART CTS Interrupt is enabled or disabled.

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:
CR3 CTSIE LL_USART_IsEnabledIT_CTS
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 4314 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_EOB ( USART_TypeDef *  USARTx)

Check if the USART End Of Block Interrupt is enabled or disabled.

Note:
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR1 EOBIE LL_USART_IsEnabledIT_EOB
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 4249 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_ERROR ( USART_TypeDef *  USARTx)

Check if the USART Error Interrupt is enabled or disabled.

Reference Manual to LL API cross reference:
CR3 EIE LL_USART_IsEnabledIT_ERROR
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 4301 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_IDLE ( USART_TypeDef *  USARTx)

Check if the USART IDLE Interrupt source is enabled or disabled.

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

Definition at line 4132 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_LBD ( USART_TypeDef *  USARTx)

Check if the USART LIN Break Detection Interrupt is enabled or disabled.

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:
CR2 LBDIE LL_USART_IsEnabledIT_LBD
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 4290 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_PE ( USART_TypeDef *  USARTx)

Check if the USART Parity Error Interrupt is enabled or disabled.

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

Definition at line 4214 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RTO ( USART_TypeDef *  USARTx)

Check if the USART Receiver Timeout Interrupt is enabled or disabled.

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

Definition at line 4236 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXNE ( USART_TypeDef *  USARTx)

Check if the USART RX Not Empty Interrupt is enabled or disabled.

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

Definition at line 4161 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TC ( USART_TypeDef *  USARTx)

Check if the USART Transmission Complete Interrupt is enabled or disabled.

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

Definition at line 4173 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXE ( USART_TypeDef *  USARTx)

Check if the USART TX Empty Interrupt is enabled or disabled.

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

Definition at line 4202 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_WKUP ( USART_TypeDef *  USARTx)

Check if the USART Wake Up from Stop Mode Interrupt is enabled or disabled.

Note:
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not Wake-up from Stop mode feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR3 WUFIE LL_USART_IsEnabledIT_WKUP
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 4327 of file stm32l4xx_ll_usart.h.