Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

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 Deassertion Time), Time value expressed on 5 bits ([4:0] bits).
__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime (USART_TypeDef *USARTx)
 Return DEDT (Driver Enable Deassertion 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 2054 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 2041 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) : 0..31

Definition at line 2028 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime ( USART_TypeDef *  USARTx )

Return DEDT (Driver Enable Deassertion 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) : 0..31

Definition at line 2001 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 2098 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 2067 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
Time0..31
Return values:
None

Definition at line 2015 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetDEDeassertionTime ( USART_TypeDef *  USARTx,
uint32_t  Time 
)

Set DEDT (Driver Enable Deassertion 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
Time0..31
Return values:
None

Definition at line 1988 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 2083 of file stm32l4xx_ll_usart.h.