TUKS MCU Introductory course / TUKS-COURSE-TIMER
Embed: (wiki syntax)

« Back to documentation index

Configuration functions related to Driver Enable feature

Configuration functions related to Driver Enable feature
[USART Exported Functions]

Functions

__STATIC_INLINE void LL_USART_SetDEDeassertionTime (USART_TypeDef *USARTx, uint32_t Time)
 Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits).
__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime (USART_TypeDef *USARTx)
 Return DEDT (Driver Enable De-Assertion Time)
__STATIC_INLINE void LL_USART_SetDEAssertionTime (USART_TypeDef *USARTx, uint32_t Time)
 Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits).
__STATIC_INLINE uint32_t LL_USART_GetDEAssertionTime (USART_TypeDef *USARTx)
 Return DEAT (Driver Enable Assertion Time)
__STATIC_INLINE void LL_USART_EnableDEMode (USART_TypeDef *USARTx)
 Enable Driver Enable (DE) Mode.
__STATIC_INLINE void LL_USART_DisableDEMode (USART_TypeDef *USARTx)
 Disable Driver Enable (DE) Mode.
__STATIC_INLINE uint32_t LL_USART_IsEnabledDEMode (USART_TypeDef *USARTx)
 Indicate if Driver Enable (DE) Mode is enabled.
__STATIC_INLINE void LL_USART_SetDESignalPolarity (USART_TypeDef *USARTx, uint32_t Polarity)
 Select Driver Enable Polarity.
__STATIC_INLINE uint32_t LL_USART_GetDESignalPolarity (USART_TypeDef *USARTx)
 Return Driver Enable Polarity.

Function Documentation

__STATIC_INLINE void LL_USART_DisableDEMode ( USART_TypeDef *  USARTx )

Disable Driver Enable (DE) Mode.

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR3 DEM LL_USART_DisableDEMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2186 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableDEMode ( USART_TypeDef *  USARTx )

Enable Driver Enable (DE) Mode.

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR3 DEM LL_USART_EnableDEMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2173 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetDEAssertionTime ( USART_TypeDef *  USARTx )

Return DEAT (Driver Enable Assertion Time)

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR1 DEAT LL_USART_GetDEAssertionTime
Parameters:
USARTxUSART Instance
Return values:
Timevalue expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31

Definition at line 2160 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime ( USART_TypeDef *  USARTx )

Return DEDT (Driver Enable De-Assertion Time)

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR1 DEDT LL_USART_GetDEDeassertionTime
Parameters:
USARTxUSART Instance
Return values:
Timevalue expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31

Definition at line 2133 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetDESignalPolarity ( USART_TypeDef *  USARTx )

Return Driver Enable Polarity.

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR3 DEP LL_USART_GetDESignalPolarity
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

  • LL_USART_DE_POLARITY_HIGH
  • LL_USART_DE_POLARITY_LOW

Definition at line 2230 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledDEMode ( USART_TypeDef *  USARTx )

Indicate if Driver Enable (DE) Mode is enabled.

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR3 DEM LL_USART_IsEnabledDEMode
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 2199 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetDEAssertionTime ( USART_TypeDef *  USARTx,
uint32_t  Time 
)

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

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR1 DEAT LL_USART_SetDEAssertionTime
Parameters:
USARTxUSART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values:
None

Definition at line 2147 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetDEDeassertionTime ( USART_TypeDef *  USARTx,
uint32_t  Time 
)

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

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR1 DEDT LL_USART_SetDEDeassertionTime
Parameters:
USARTxUSART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values:
None

Definition at line 2120 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetDESignalPolarity ( USART_TypeDef *  USARTx,
uint32_t  Polarity 
)

Select Driver Enable Polarity.

Note:
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance. CR3 DEP LL_USART_SetDESignalPolarity
Parameters:
USARTxUSART Instance
PolarityThis parameter can be one of the following values:

  • LL_USART_DE_POLARITY_HIGH
  • LL_USART_DE_POLARITY_LOW
Return values:
None

Definition at line 2215 of file stm32l4xx_ll_usart.h.