STM32L4xx_HAL_Driver  1.14.0
Configuration functions related to Driver Enable feature

Functions

__STATIC_INLINE void LL_LPUART_SetDEDeassertionTime (USART_TypeDef *LPUARTx, uint32_t Time)
 Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits). CR1 DEDT LL_LPUART_SetDEDeassertionTime. More...
 
__STATIC_INLINE uint32_t LL_LPUART_GetDEDeassertionTime (USART_TypeDef *LPUARTx)
 Return DEDT (Driver Enable De-Assertion Time) CR1 DEDT LL_LPUART_GetDEDeassertionTime. More...
 
__STATIC_INLINE void LL_LPUART_SetDEAssertionTime (USART_TypeDef *LPUARTx, uint32_t Time)
 Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits). CR1 DEAT LL_LPUART_SetDEAssertionTime. More...
 
__STATIC_INLINE uint32_t LL_LPUART_GetDEAssertionTime (USART_TypeDef *LPUARTx)
 Return DEAT (Driver Enable Assertion Time) CR1 DEAT LL_LPUART_GetDEAssertionTime. More...
 
__STATIC_INLINE void LL_LPUART_EnableDEMode (USART_TypeDef *LPUARTx)
 Enable Driver Enable (DE) Mode CR3 DEM LL_LPUART_EnableDEMode. More...
 
__STATIC_INLINE void LL_LPUART_DisableDEMode (USART_TypeDef *LPUARTx)
 Disable Driver Enable (DE) Mode CR3 DEM LL_LPUART_DisableDEMode. More...
 
__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDEMode (USART_TypeDef *LPUARTx)
 Indicate if Driver Enable (DE) Mode is enabled CR3 DEM LL_LPUART_IsEnabledDEMode. More...
 
__STATIC_INLINE void LL_LPUART_SetDESignalPolarity (USART_TypeDef *LPUARTx, uint32_t Polarity)
 Select Driver Enable Polarity CR3 DEP LL_LPUART_SetDESignalPolarity. More...
 
__STATIC_INLINE uint32_t LL_LPUART_GetDESignalPolarity (USART_TypeDef *LPUARTx)
 Return Driver Enable Polarity CR3 DEP LL_LPUART_GetDESignalPolarity. More...
 

Detailed Description

Function Documentation

◆ LL_LPUART_DisableDEMode()

__STATIC_INLINE void LL_LPUART_DisableDEMode ( USART_TypeDef *  LPUARTx)

Disable Driver Enable (DE) Mode CR3 DEM LL_LPUART_DisableDEMode.

Parameters
LPUARTxLPUART Instance
Return values
None

Definition at line 1607 of file stm32l4xx_ll_lpuart.h.

1608 {
1609  CLEAR_BIT(LPUARTx->CR3, USART_CR3_DEM);
1610 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_LPUART_EnableDEMode()

__STATIC_INLINE void LL_LPUART_EnableDEMode ( USART_TypeDef *  LPUARTx)

Enable Driver Enable (DE) Mode CR3 DEM LL_LPUART_EnableDEMode.

Parameters
LPUARTxLPUART Instance
Return values
None

Definition at line 1596 of file stm32l4xx_ll_lpuart.h.

1597 {
1598  SET_BIT(LPUARTx->CR3, USART_CR3_DEM);
1599 }

◆ LL_LPUART_GetDEAssertionTime()

__STATIC_INLINE uint32_t LL_LPUART_GetDEAssertionTime ( USART_TypeDef *  LPUARTx)

Return DEAT (Driver Enable Assertion Time) CR1 DEAT LL_LPUART_GetDEAssertionTime.

Parameters
LPUARTxLPUART Instance
Return values
Timevalue expressed on 5 bits ([4:0] bits) : Time Value between Min_Data=0 and Max_Data=31

Definition at line 1585 of file stm32l4xx_ll_lpuart.h.

1586 {
1587  return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEAT) >> USART_CR1_DEAT_Pos);
1588 }

◆ LL_LPUART_GetDEDeassertionTime()

__STATIC_INLINE uint32_t LL_LPUART_GetDEDeassertionTime ( USART_TypeDef *  LPUARTx)

Return DEDT (Driver Enable De-Assertion Time) CR1 DEDT LL_LPUART_GetDEDeassertionTime.

Parameters
LPUARTxLPUART Instance
Return values
Timevalue expressed on 5 bits ([4:0] bits) : c

Definition at line 1562 of file stm32l4xx_ll_lpuart.h.

1563 {
1564  return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEDT) >> USART_CR1_DEDT_Pos);
1565 }

◆ LL_LPUART_GetDESignalPolarity()

__STATIC_INLINE uint32_t LL_LPUART_GetDESignalPolarity ( USART_TypeDef *  LPUARTx)

Return Driver Enable Polarity CR3 DEP LL_LPUART_GetDESignalPolarity.

Parameters
LPUARTxLPUART Instance
Return values
Returnedvalue can be one of the following values:
  • LL_LPUART_DE_POLARITY_HIGH
  • LL_LPUART_DE_POLARITY_LOW

Definition at line 1645 of file stm32l4xx_ll_lpuart.h.

1646 {
1647  return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_DEP));
1648 }

◆ LL_LPUART_IsEnabledDEMode()

__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDEMode ( USART_TypeDef *  LPUARTx)

Indicate if Driver Enable (DE) Mode is enabled CR3 DEM LL_LPUART_IsEnabledDEMode.

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

Definition at line 1618 of file stm32l4xx_ll_lpuart.h.

1619 {
1620  return ((READ_BIT(LPUARTx->CR3, USART_CR3_DEM) == (USART_CR3_DEM)) ? 1UL : 0UL);
1621 }

◆ LL_LPUART_SetDEAssertionTime()

__STATIC_INLINE void LL_LPUART_SetDEAssertionTime ( USART_TypeDef *  LPUARTx,
uint32_t  Time 
)

Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits). CR1 DEAT LL_LPUART_SetDEAssertionTime.

Parameters
LPUARTxLPUART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values
None

Definition at line 1574 of file stm32l4xx_ll_lpuart.h.

1575 {
1576  MODIFY_REG(LPUARTx->CR1, USART_CR1_DEAT, Time << USART_CR1_DEAT_Pos);
1577 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_LPUART_SetDEDeassertionTime()

__STATIC_INLINE void LL_LPUART_SetDEDeassertionTime ( USART_TypeDef *  LPUARTx,
uint32_t  Time 
)

Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits). CR1 DEDT LL_LPUART_SetDEDeassertionTime.

Parameters
LPUARTxLPUART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values
None

Definition at line 1551 of file stm32l4xx_ll_lpuart.h.

1552 {
1553  MODIFY_REG(LPUARTx->CR1, USART_CR1_DEDT, Time << USART_CR1_DEDT_Pos);
1554 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_LPUART_SetDESignalPolarity()

__STATIC_INLINE void LL_LPUART_SetDESignalPolarity ( USART_TypeDef *  LPUARTx,
uint32_t  Polarity 
)

Select Driver Enable Polarity CR3 DEP LL_LPUART_SetDESignalPolarity.

Parameters
LPUARTxLPUART Instance
PolarityThis parameter can be one of the following values:
  • LL_LPUART_DE_POLARITY_HIGH
  • LL_LPUART_DE_POLARITY_LOW
Return values
None

Definition at line 1632 of file stm32l4xx_ll_lpuart.h.

1633 {
1634  MODIFY_REG(LPUARTx->CR3, USART_CR3_DEP, Polarity);
1635 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)