STM32L4xx_HAL_Driver  1.14.0
Configuration functions related to Half Duplex feature

Functions

__STATIC_INLINE void LL_LPUART_EnableHalfDuplex (USART_TypeDef *LPUARTx)
 Enable Single Wire Half-Duplex mode CR3 HDSEL LL_LPUART_EnableHalfDuplex. More...
 
__STATIC_INLINE void LL_LPUART_DisableHalfDuplex (USART_TypeDef *LPUARTx)
 Disable Single Wire Half-Duplex mode CR3 HDSEL LL_LPUART_DisableHalfDuplex. More...
 
__STATIC_INLINE uint32_t LL_LPUART_IsEnabledHalfDuplex (USART_TypeDef *LPUARTx)
 Indicate if Single Wire Half-Duplex mode is enabled CR3 HDSEL LL_LPUART_IsEnabledHalfDuplex. More...
 

Detailed Description

Function Documentation

◆ LL_LPUART_DisableHalfDuplex()

__STATIC_INLINE void LL_LPUART_DisableHalfDuplex ( USART_TypeDef *  LPUARTx)

Disable Single Wire Half-Duplex mode CR3 HDSEL LL_LPUART_DisableHalfDuplex.

Parameters
LPUARTxLPUART Instance
Return values
None

Definition at line 1520 of file stm32l4xx_ll_lpuart.h.

1521 {
1522  CLEAR_BIT(LPUARTx->CR3, USART_CR3_HDSEL);
1523 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_LPUART_EnableHalfDuplex()

__STATIC_INLINE void LL_LPUART_EnableHalfDuplex ( USART_TypeDef *  LPUARTx)

Enable Single Wire Half-Duplex mode CR3 HDSEL LL_LPUART_EnableHalfDuplex.

Parameters
LPUARTxLPUART Instance
Return values
None

Definition at line 1509 of file stm32l4xx_ll_lpuart.h.

1510 {
1511  SET_BIT(LPUARTx->CR3, USART_CR3_HDSEL);
1512 }

◆ LL_LPUART_IsEnabledHalfDuplex()

__STATIC_INLINE uint32_t LL_LPUART_IsEnabledHalfDuplex ( USART_TypeDef *  LPUARTx)

Indicate if Single Wire Half-Duplex mode is enabled CR3 HDSEL LL_LPUART_IsEnabledHalfDuplex.

Parameters
LPUARTxLPUART Instance
Return values
Stateof bit (1 or 0).

Definition at line 1531 of file stm32l4xx_ll_lpuart.h.

1532 {
1533  return ((READ_BIT(LPUARTx->CR3, USART_CR3_HDSEL) == (USART_CR3_HDSEL)) ? 1UL : 0UL);
1534 }