STM32L486xx HAL User Manual
Functions
Configuration functions
USART Exported Functions

Functions

__STATIC_INLINE void LL_USART_Enable (USART_TypeDef *USARTx)
 USART Enable.
__STATIC_INLINE void LL_USART_Disable (USART_TypeDef *USARTx)
 USART Disable (all USART prescalers and outputs are disabled)
__STATIC_INLINE uint32_t LL_USART_IsEnabled (USART_TypeDef *USARTx)
 Indicate if USART is enabled.
__STATIC_INLINE void LL_USART_EnableInStopMode (USART_TypeDef *USARTx)
 USART enabled in STOP Mode.
__STATIC_INLINE void LL_USART_DisableInStopMode (USART_TypeDef *USARTx)
 USART disabled in STOP Mode.
__STATIC_INLINE uint32_t LL_USART_IsEnabledInStopMode (USART_TypeDef *USARTx)
 Indicate if USART is enabled in STOP Mode (able to wake up MCU from Stop mode or not)
__STATIC_INLINE void LL_USART_EnableClockInStopMode (USART_TypeDef *USARTx)
 USART Clock enabled in STOP Mode.
__STATIC_INLINE void LL_USART_DisableClockInStopMode (USART_TypeDef *USARTx)
 USART clock disabled in STOP Mode.
__STATIC_INLINE uint32_t LL_USART_IsClockEnabledInStopMode (USART_TypeDef *USARTx)
 Indicate if USART clock is enabled in STOP Mode.
__STATIC_INLINE void LL_USART_EnableDirectionRx (USART_TypeDef *USARTx)
 Receiver Enable (Receiver is enabled and begins searching for a start bit)
__STATIC_INLINE void LL_USART_DisableDirectionRx (USART_TypeDef *USARTx)
 Receiver Disable.
__STATIC_INLINE void LL_USART_EnableDirectionTx (USART_TypeDef *USARTx)
 Transmitter Enable.
__STATIC_INLINE void LL_USART_DisableDirectionTx (USART_TypeDef *USARTx)
 Transmitter Disable.
__STATIC_INLINE void LL_USART_SetTransferDirection (USART_TypeDef *USARTx, uint32_t TransferDirection)
 Configure simultaneously enabled/disabled states of Transmitter and Receiver.
__STATIC_INLINE uint32_t LL_USART_GetTransferDirection (USART_TypeDef *USARTx)
 Return enabled/disabled states of Transmitter and Receiver.
__STATIC_INLINE void LL_USART_SetParity (USART_TypeDef *USARTx, uint32_t Parity)
 Configure Parity (enabled/disabled and parity mode if enabled).
__STATIC_INLINE uint32_t LL_USART_GetParity (USART_TypeDef *USARTx)
 Return Parity configuration (enabled/disabled and parity mode if enabled)
__STATIC_INLINE void LL_USART_SetWakeUpMethod (USART_TypeDef *USARTx, uint32_t Method)
 Set Receiver Wake Up method from Mute mode.
__STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod (USART_TypeDef *USARTx)
 Return Receiver Wake Up method from Mute mode.
__STATIC_INLINE void LL_USART_SetDataWidth (USART_TypeDef *USARTx, uint32_t DataWidth)
 Set Word length (i.e.
__STATIC_INLINE uint32_t LL_USART_GetDataWidth (USART_TypeDef *USARTx)
 Return Word length (i.e.
__STATIC_INLINE void LL_USART_EnableMuteMode (USART_TypeDef *USARTx)
 Allow switch between Mute Mode and Active mode.
__STATIC_INLINE void LL_USART_DisableMuteMode (USART_TypeDef *USARTx)
 Prevent Mute Mode use.
__STATIC_INLINE uint32_t LL_USART_IsEnabledMuteMode (USART_TypeDef *USARTx)
 Indicate if switch between Mute Mode and Active mode is allowed.
__STATIC_INLINE void LL_USART_SetOverSampling (USART_TypeDef *USARTx, uint32_t OverSampling)
 Set Oversampling to 8-bit or 16-bit mode.
__STATIC_INLINE uint32_t LL_USART_GetOverSampling (USART_TypeDef *USARTx)
 Return Oversampling mode.
__STATIC_INLINE void LL_USART_SetLastClkPulseOutput (USART_TypeDef *USARTx, uint32_t LastBitClockPulse)
 Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
__STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput (USART_TypeDef *USARTx)
 Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
__STATIC_INLINE void LL_USART_SetClockPhase (USART_TypeDef *USARTx, uint32_t ClockPhase)
 Select the phase of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE uint32_t LL_USART_GetClockPhase (USART_TypeDef *USARTx)
 Return phase of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE void LL_USART_SetClockPolarity (USART_TypeDef *USARTx, uint32_t ClockPolarity)
 Select the polarity of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE uint32_t LL_USART_GetClockPolarity (USART_TypeDef *USARTx)
 Return polarity of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE void LL_USART_ConfigClock (USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput)
 Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
__STATIC_INLINE void LL_USART_EnableSCLKOutput (USART_TypeDef *USARTx)
 Enable Clock output on SCLK pin.
__STATIC_INLINE void LL_USART_DisableSCLKOutput (USART_TypeDef *USARTx)
 Disable Clock output on SCLK pin.
__STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput (USART_TypeDef *USARTx)
 Indicate if Clock output on SCLK pin is enabled.
__STATIC_INLINE void LL_USART_SetStopBitsLength (USART_TypeDef *USARTx, uint32_t StopBits)
 Set the length of the stop bits.
__STATIC_INLINE uint32_t LL_USART_GetStopBitsLength (USART_TypeDef *USARTx)
 Retrieve the length of the stop bits.
__STATIC_INLINE void LL_USART_ConfigCharacter (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits)
 Configure Character frame format (Datawidth, Parity control, Stop Bits)
__STATIC_INLINE void LL_USART_SetTXRXSwap (USART_TypeDef *USARTx, uint32_t SwapConfig)
 Configure TX/RX pins swapping setting.
__STATIC_INLINE uint32_t LL_USART_GetTXRXSwap (USART_TypeDef *USARTx)
 Retrieve TX/RX pins swapping configuration.
__STATIC_INLINE void LL_USART_SetRXPinLevel (USART_TypeDef *USARTx, uint32_t PinInvMethod)
 Configure RX pin active level logic.
__STATIC_INLINE uint32_t LL_USART_GetRXPinLevel (USART_TypeDef *USARTx)
 Retrieve RX pin active level logic configuration.
__STATIC_INLINE void LL_USART_SetTXPinLevel (USART_TypeDef *USARTx, uint32_t PinInvMethod)
 Configure TX pin active level logic.
__STATIC_INLINE uint32_t LL_USART_GetTXPinLevel (USART_TypeDef *USARTx)
 Retrieve TX pin active level logic configuration.
__STATIC_INLINE void LL_USART_SetBinaryDataLogic (USART_TypeDef *USARTx, uint32_t DataLogic)
 Configure Binary data logic.
__STATIC_INLINE uint32_t LL_USART_GetBinaryDataLogic (USART_TypeDef *USARTx)
 Retrieve Binary data configuration.
__STATIC_INLINE void LL_USART_SetTransferBitOrder (USART_TypeDef *USARTx, uint32_t BitOrder)
 Configure transfer bit order (either Less or Most Significant Bit First)
__STATIC_INLINE uint32_t LL_USART_GetTransferBitOrder (USART_TypeDef *USARTx)
 Return transfer bit order (either Less or Most Significant Bit First)
__STATIC_INLINE void LL_USART_EnableAutoBaudRate (USART_TypeDef *USARTx)
 Enable Auto Baud-Rate Detection.
__STATIC_INLINE void LL_USART_DisableAutoBaudRate (USART_TypeDef *USARTx)
 Disable Auto Baud-Rate Detection.
__STATIC_INLINE uint32_t LL_USART_IsEnabledAutoBaud (USART_TypeDef *USARTx)
 Indicate if Auto Baud-Rate Detection mechanism is enabled.
__STATIC_INLINE void LL_USART_SetAutoBaudRateMode (USART_TypeDef *USARTx, uint32_t AutoBaudRateMode)
 Set Auto Baud-Rate mode bits.
__STATIC_INLINE uint32_t LL_USART_GetAutoBaudRateMode (USART_TypeDef *USARTx)
 Return Auto Baud-Rate mode.
__STATIC_INLINE void LL_USART_EnableRxTimeout (USART_TypeDef *USARTx)
 Enable Receiver Timeout.
__STATIC_INLINE void LL_USART_DisableRxTimeout (USART_TypeDef *USARTx)
 Disable Receiver Timeout.
__STATIC_INLINE uint32_t LL_USART_IsEnabledRxTimeout (USART_TypeDef *USARTx)
 Indicate if Receiver Timeout feature is enabled.
__STATIC_INLINE void LL_USART_ConfigNodeAddress (USART_TypeDef *USARTx, uint32_t AddressLen, uint32_t NodeAddress)
 Set Address of the USART node.
__STATIC_INLINE uint32_t LL_USART_GetNodeAddress (USART_TypeDef *USARTx)
 Return 8 bit Address of the USART node as set in ADD field of CR2.
__STATIC_INLINE uint32_t LL_USART_GetNodeAddressLen (USART_TypeDef *USARTx)
 Return Length of Node Address used in Address Detection mode (7-bit or 4-bit)
__STATIC_INLINE void LL_USART_EnableRTSHWFlowCtrl (USART_TypeDef *USARTx)
 Enable RTS HW Flow Control.
__STATIC_INLINE void LL_USART_DisableRTSHWFlowCtrl (USART_TypeDef *USARTx)
 Disable RTS HW Flow Control.
__STATIC_INLINE void LL_USART_EnableCTSHWFlowCtrl (USART_TypeDef *USARTx)
 Enable CTS HW Flow Control.
__STATIC_INLINE void LL_USART_DisableCTSHWFlowCtrl (USART_TypeDef *USARTx)
 Disable CTS HW Flow Control.
__STATIC_INLINE void LL_USART_SetHWFlowCtrl (USART_TypeDef *USARTx, uint32_t HardwareFlowControl)
 Configure HW Flow Control mode (both CTS and RTS)
__STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl (USART_TypeDef *USARTx)
 Return HW Flow Control configuration (both CTS and RTS)
__STATIC_INLINE void LL_USART_EnableOneBitSamp (USART_TypeDef *USARTx)
 Enable One bit sampling method.
__STATIC_INLINE void LL_USART_DisableOneBitSamp (USART_TypeDef *USARTx)
 Disable One bit sampling method.
__STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp (USART_TypeDef *USARTx)
 Indicate if One bit sampling method is enabled.
__STATIC_INLINE void LL_USART_EnableOverrunDetect (USART_TypeDef *USARTx)
 Enable Overrun detection.
__STATIC_INLINE void LL_USART_DisableOverrunDetect (USART_TypeDef *USARTx)
 Disable Overrun detection.
__STATIC_INLINE uint32_t LL_USART_IsEnabledOverrunDetect (USART_TypeDef *USARTx)
 Indicate if Overrun detection is enabled.
__STATIC_INLINE void LL_USART_SetWKUPType (USART_TypeDef *USARTx, uint32_t Type)
 Select event type for Wake UP Interrupt Flag (WUS[1:0] bits)
__STATIC_INLINE uint32_t LL_USART_GetWKUPType (USART_TypeDef *USARTx)
 Return event type for Wake UP Interrupt Flag (WUS[1:0] bits)
__STATIC_INLINE void LL_USART_SetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling, uint32_t BaudRate)
 Configure USART BRR register for achieving expected Baud Rate value.
__STATIC_INLINE uint32_t LL_USART_GetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling)
 Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
__STATIC_INLINE void LL_USART_SetRxTimeout (USART_TypeDef *USARTx, uint32_t Timeout)
 Set Receiver Time Out Value (expressed in nb of bits duration)
__STATIC_INLINE uint32_t LL_USART_GetRxTimeout (USART_TypeDef *USARTx)
 Get Receiver Time Out Value (expressed in nb of bits duration)
__STATIC_INLINE void LL_USART_SetBlockLength (USART_TypeDef *USARTx, uint32_t BlockLength)
 Set Block Length value in reception.
__STATIC_INLINE uint32_t LL_USART_GetBlockLength (USART_TypeDef *USARTx)
 Get Block Length value in reception.

Function Documentation

__STATIC_INLINE void LL_USART_ConfigCharacter ( USART_TypeDef *  USARTx,
uint32_t  DataWidth,
uint32_t  Parity,
uint32_t  StopBits 
)

Configure Character frame format (Datawidth, Parity control, Stop Bits)

Note:
Call of this function is equivalent to following function call sequence :
Reference Manual to LL API cross reference:
CR1 PS LL_USART_ConfigCharacter
CR1 PCE LL_USART_ConfigCharacter
CR1 M0 LL_USART_ConfigCharacter
CR1 M1 LL_USART_ConfigCharacter
CR2 STOP LL_USART_ConfigCharacter
Parameters:
USARTxUSART Instance
DataWidthThis parameter can be one of the following values:
ParityThis parameter can be one of the following values:
StopBitsThis parameter can be one of the following values:
Return values:
None

Definition at line 1453 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ConfigClock ( USART_TypeDef *  USARTx,
uint32_t  Phase,
uint32_t  Polarity,
uint32_t  LBCPOutput 
)

Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Reference Manual to LL API cross reference:
CR2 CPHA LL_USART_ConfigClock
CR2 CPOL LL_USART_ConfigClock
CR2 LBCL LL_USART_ConfigClock
Parameters:
USARTxUSART Instance
PhaseThis parameter can be one of the following values:
PolarityThis parameter can be one of the following values:
LBCPOutputThis parameter can be one of the following values:
Return values:
None

Definition at line 1298 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_ConfigNodeAddress ( USART_TypeDef *  USARTx,
uint32_t  AddressLen,
uint32_t  NodeAddress 
)

Set Address of the USART node.

Note:
This is used in multiprocessor communication during Mute mode or Stop mode, for wake up with address mark detection.
4bits address node is used when 4-bit Address Detection is selected in ADDM7. (b7-b4 should be set to 0) 8bits address node is used when 7-bit Address Detection is selected in ADDM7. (This is used in multiprocessor communication during Mute mode or Stop mode, for wake up with 7-bit address mark detection. The MSB of the character sent by the transmitter should be equal to 1. It may also be used for character detection during normal reception, Mute mode inactive (for example, end of block detection in ModBus protocol). In this case, the whole received character (8-bit) is compared to the ADD[7:0] value and CMF flag is set on match)
Reference Manual to LL API cross reference:
CR2 ADD LL_USART_ConfigNodeAddress
CR2 ADDM7 LL_USART_ConfigNodeAddress
Parameters:
USARTxUSART Instance
AddressLenThis parameter can be one of the following values:
NodeAddress4 or 7 bit Address of the USART node.
Return values:
None

Definition at line 1731 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_Disable ( USART_TypeDef *  USARTx)

USART Disable (all USART prescalers and outputs are disabled)

Note:
When USART is disabled, USART prescalers and outputs are stopped immediately, and current operations are discarded. The configuration of the USART is kept, but all the status flags, in the USARTx_ISR are set to their default values.
Reference Manual to LL API cross reference:
CR1 UE LL_USART_Disable
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 709 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableAutoBaudRate ( USART_TypeDef *  USARTx)

Disable Auto Baud-Rate Detection.

Note:
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not Auto Baud Rate detection feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 ABREN LL_USART_DisableAutoBaudRate
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1622 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableClockInStopMode ( USART_TypeDef *  USARTx)

USART clock disabled in STOP Mode.

Note:
When this function is called, USART Clock is disabled while in STOP mode
Reference Manual to LL API cross reference:
CR3 UCESM LL_USART_DisableClockInStopMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 934 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableCTSHWFlowCtrl ( USART_TypeDef *  USARTx)

Disable CTS HW Flow Control.

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 CTSE LL_USART_DisableCTSHWFlowCtrl
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1812 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableDirectionRx ( USART_TypeDef *  USARTx)

Receiver Disable.

Reference Manual to LL API cross reference:
CR1 RE LL_USART_DisableDirectionRx
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 968 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableDirectionTx ( USART_TypeDef *  USARTx)

Transmitter Disable.

Reference Manual to LL API cross reference:
CR1 TE LL_USART_DisableDirectionTx
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 990 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableInStopMode ( USART_TypeDef *  USARTx)

USART disabled in STOP Mode.

Note:
When this function is disabled, USART is not able to wake up the MCU from Stop mode
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:
CR1 UESM LL_USART_DisableInStopMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 896 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableMuteMode ( USART_TypeDef *  USARTx)

Prevent Mute Mode use.

Set Receiver in active mode permanently.

Reference Manual to LL API cross reference:
CR1 MME LL_USART_DisableMuteMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1138 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableOneBitSamp ( USART_TypeDef *  USARTx)

Disable One bit sampling method.

Reference Manual to LL API cross reference:
CR3 ONEBIT LL_USART_DisableOneBitSamp
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1871 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableOverrunDetect ( USART_TypeDef *  USARTx)

Disable Overrun detection.

Reference Manual to LL API cross reference:
CR3 OVRDIS LL_USART_DisableOverrunDetect
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1904 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableRTSHWFlowCtrl ( USART_TypeDef *  USARTx)

Disable RTS HW Flow Control.

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 RTSE LL_USART_DisableRTSHWFlowCtrl
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1786 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableRxTimeout ( USART_TypeDef *  USARTx)

Disable Receiver Timeout.

Reference Manual to LL API cross reference:
CR2 RTOEN LL_USART_DisableRxTimeout
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1692 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_DisableSCLKOutput ( USART_TypeDef *  USARTx)

Disable Clock output on SCLK pin.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CLKEN LL_USART_DisableSCLKOutput
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1377 of file stm32l4xx_ll_usart.h.

Referenced by LL_USART_ClockInit().

__STATIC_INLINE void LL_USART_Enable ( USART_TypeDef *  USARTx)

USART Enable.

Reference Manual to LL API cross reference:
CR1 UE LL_USART_Enable
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 695 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableAutoBaudRate ( USART_TypeDef *  USARTx)

Enable Auto Baud-Rate Detection.

Note:
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not Auto Baud Rate detection feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 ABREN LL_USART_EnableAutoBaudRate
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1609 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableClockInStopMode ( USART_TypeDef *  USARTx)

USART Clock enabled in STOP Mode.

Note:
When this function is called, USART Clock is enabled while in STOP mode
Reference Manual to LL API cross reference:
CR3 UCESM LL_USART_EnableClockInStopMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 922 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableCTSHWFlowCtrl ( USART_TypeDef *  USARTx)

Enable CTS HW Flow Control.

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 CTSE LL_USART_EnableCTSHWFlowCtrl
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1799 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableDirectionRx ( USART_TypeDef *  USARTx)

Receiver Enable (Receiver is enabled and begins searching for a start bit)

Reference Manual to LL API cross reference:
CR1 RE LL_USART_EnableDirectionRx
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 957 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableDirectionTx ( USART_TypeDef *  USARTx)

Transmitter Enable.

Reference Manual to LL API cross reference:
CR1 TE LL_USART_EnableDirectionTx
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 979 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableInStopMode ( USART_TypeDef *  USARTx)

USART enabled in STOP Mode.

Note:
When this function is enabled, USART is able to wake up the MCU from Stop mode, provided that USART clock selection is HSI or LSE in RCC.
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:
CR1 UESM LL_USART_EnableInStopMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 882 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableMuteMode ( USART_TypeDef *  USARTx)

Allow switch between Mute Mode and Active mode.

Reference Manual to LL API cross reference:
CR1 MME LL_USART_EnableMuteMode
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1127 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableOneBitSamp ( USART_TypeDef *  USARTx)

Enable One bit sampling method.

Reference Manual to LL API cross reference:
CR3 ONEBIT LL_USART_EnableOneBitSamp
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1860 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableOverrunDetect ( USART_TypeDef *  USARTx)

Enable Overrun detection.

Reference Manual to LL API cross reference:
CR3 OVRDIS LL_USART_EnableOverrunDetect
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1893 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableRTSHWFlowCtrl ( USART_TypeDef *  USARTx)

Enable RTS HW Flow Control.

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 RTSE LL_USART_EnableRTSHWFlowCtrl
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1773 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableRxTimeout ( USART_TypeDef *  USARTx)

Enable Receiver Timeout.

Reference Manual to LL API cross reference:
CR2 RTOEN LL_USART_EnableRxTimeout
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1681 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_EnableSCLKOutput ( USART_TypeDef *  USARTx)

Enable Clock output on SCLK pin.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CLKEN LL_USART_EnableSCLKOutput
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 1364 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetAutoBaudRateMode ( USART_TypeDef *  USARTx)

Return Auto Baud-Rate mode.

Note:
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not Auto Baud Rate detection feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 ABRMODE LL_USART_GetAutoBaudRateMode
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1670 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetBaudRate ( USART_TypeDef *  USARTx,
uint32_t  PeriphClk,
uint32_t  OverSampling 
)

Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.

Note:
In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
Reference Manual to LL API cross reference:
BRR BRR LL_USART_GetBaudRate
Parameters:
USARTxUSART Instance
PeriphClkPeripheral Clock
OverSamplingThis parameter can be one of the following values:
Return values:
BaudRate

Definition at line 2047 of file stm32l4xx_ll_usart.h.

References LL_USART_OVERSAMPLING_8.

__STATIC_INLINE uint32_t LL_USART_GetBinaryDataLogic ( USART_TypeDef *  USARTx)

Retrieve Binary data configuration.

Reference Manual to LL API cross reference:
CR2 DATAINV LL_USART_GetBinaryDataLogic
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1565 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetBlockLength ( USART_TypeDef *  USARTx)

Get Block Length value in reception.

Reference Manual to LL API cross reference:
RTOR BLEN LL_USART_GetBlockLength
Parameters:
USARTxUSART Instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 2125 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetClockPhase ( USART_TypeDef *  USARTx)

Return phase of the clock output on the SCLK pin in synchronous mode.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CPHA LL_USART_GetClockPhase
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1239 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetClockPolarity ( USART_TypeDef *  USARTx)

Return polarity of the clock output on the SCLK pin in synchronous mode.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CPOL LL_USART_GetClockPolarity
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1270 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetDataWidth ( USART_TypeDef *  USARTx)

Return Word length (i.e.

nb of data bits, excluding start and stop bits)

Reference Manual to LL API cross reference:
CR1 M0 LL_USART_GetDataWidth
CR1 M1 LL_USART_GetDataWidth
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1116 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl ( USART_TypeDef *  USARTx)

Return HW Flow Control configuration (both CTS and RTS)

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 RTSE LL_USART_GetHWFlowCtrl
CR3 CTSE LL_USART_GetHWFlowCtrl
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1849 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput ( USART_TypeDef *  USARTx)

Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 LBCL LL_USART_GetLastClkPulseOutput
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1208 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetNodeAddress ( USART_TypeDef *  USARTx)

Return 8 bit Address of the USART node as set in ADD field of CR2.

Note:
If 4-bit Address Detection is selected in ADDM7, only 4bits (b3-b0) of returned value are relevant (b31-b4 are not relevant) If 7-bit Address Detection is selected in ADDM7, only 8bits (b7-b0) of returned value are relevant (b31-b8 are not relevant)
Reference Manual to LL API cross reference:
CR2 ADD LL_USART_GetNodeAddress
Parameters:
USARTxUSART Instance
Return values:
Addressof the USART node (Value between Min_Data=0 and Max_Data=255)

Definition at line 1747 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetNodeAddressLen ( USART_TypeDef *  USARTx)

Return Length of Node Address used in Address Detection mode (7-bit or 4-bit)

Reference Manual to LL API cross reference:
CR2 ADDM7 LL_USART_GetNodeAddressLen
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1760 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetOverSampling ( USART_TypeDef *  USARTx)

Return Oversampling mode.

Reference Manual to LL API cross reference:
CR1 OVER8 LL_USART_GetOverSampling
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1176 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetParity ( USART_TypeDef *  USARTx)

Return Parity configuration (enabled/disabled and parity mode if enabled)

Reference Manual to LL API cross reference:
CR1 PS LL_USART_GetParity
CR1 PCE LL_USART_GetParity
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1058 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetRXPinLevel ( USART_TypeDef *  USARTx)

Retrieve RX pin active level logic configuration.

Reference Manual to LL API cross reference:
CR2 RXINV LL_USART_GetRXPinLevel
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1509 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetRxTimeout ( USART_TypeDef *  USARTx)

Get Receiver Time Out Value (expressed in nb of bits duration)

Reference Manual to LL API cross reference:
RTOR RTO LL_USART_GetRxTimeout
Parameters:
USARTxUSART Instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0x00FFFFFF

Definition at line 2102 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetStopBitsLength ( USART_TypeDef *  USARTx)

Retrieve the length of the stop bits.

Reference Manual to LL API cross reference:
CR2 STOP LL_USART_GetStopBitsLength
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1421 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetTransferBitOrder ( USART_TypeDef *  USARTx)

Return transfer bit order (either Less or Most Significant Bit First)

Note:
MSB First means data is transmitted/received with the MSB first, following the start bit. LSB First means data is transmitted/received with data bit 0 first, following the start bit.
Reference Manual to LL API cross reference:
CR2 MSBFIRST LL_USART_GetTransferBitOrder
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1596 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetTransferDirection ( USART_TypeDef *  USARTx)

Return enabled/disabled states of Transmitter and Receiver.

Reference Manual to LL API cross reference:
CR1 RE LL_USART_GetTransferDirection
CR1 TE LL_USART_GetTransferDirection
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1024 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetTXPinLevel ( USART_TypeDef *  USARTx)

Retrieve TX pin active level logic configuration.

Reference Manual to LL API cross reference:
CR2 TXINV LL_USART_GetTXPinLevel
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1536 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetTXRXSwap ( USART_TypeDef *  USARTx)

Retrieve TX/RX pins swapping configuration.

Reference Manual to LL API cross reference:
CR2 SWAP LL_USART_GetTXRXSwap
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1482 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod ( USART_TypeDef *  USARTx)

Return Receiver Wake Up method from Mute mode.

Reference Manual to LL API cross reference:
CR1 WAKE LL_USART_GetWakeUpMethod
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1085 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetWKUPType ( USART_TypeDef *  USARTx)

Return event type for Wake UP Interrupt Flag (WUS[1:0] bits)

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 WUS LL_USART_GetWKUPType
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1948 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsClockEnabledInStopMode ( USART_TypeDef *  USARTx)

Indicate if USART clock is enabled in STOP Mode.

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

Definition at line 945 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabled ( USART_TypeDef *  USARTx)

Indicate if USART is enabled.

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

Definition at line 720 of file stm32l4xx_ll_usart.h.

Referenced by LL_USART_ClockInit(), and LL_USART_Init().

__STATIC_INLINE uint32_t LL_USART_IsEnabledAutoBaud ( USART_TypeDef *  USARTx)

Indicate if Auto Baud-Rate Detection mechanism is enabled.

Note:
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not Auto Baud Rate detection feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 ABREN LL_USART_IsEnabledAutoBaud
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1635 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledInStopMode ( USART_TypeDef *  USARTx)

Indicate if USART is enabled in STOP Mode (able to wake up MCU from Stop mode or not)

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:
CR1 UESM LL_USART_IsEnabledInStopMode
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 909 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledMuteMode ( USART_TypeDef *  USARTx)

Indicate if switch between Mute Mode and Active mode is allowed.

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

Definition at line 1149 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp ( USART_TypeDef *  USARTx)

Indicate if One bit sampling method is enabled.

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

Definition at line 1882 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledOverrunDetect ( USART_TypeDef *  USARTx)

Indicate if Overrun detection is enabled.

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

Definition at line 1915 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledRxTimeout ( USART_TypeDef *  USARTx)

Indicate if Receiver Timeout feature is enabled.

Reference Manual to LL API cross reference:
CR2 RTOEN LL_USART_IsEnabledRxTimeout
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1703 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput ( USART_TypeDef *  USARTx)

Indicate if Clock output on SCLK pin is enabled.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CLKEN LL_USART_IsEnabledSCLKOutput
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1390 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetAutoBaudRateMode ( USART_TypeDef *  USARTx,
uint32_t  AutoBaudRateMode 
)

Set Auto Baud-Rate mode bits.

Note:
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not Auto Baud Rate detection feature is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 ABRMODE LL_USART_SetAutoBaudRateMode
Parameters:
USARTxUSART Instance
AutoBaudRateModeThis parameter can be one of the following values:
Return values:
None

Definition at line 1653 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetBaudRate ( USART_TypeDef *  USARTx,
uint32_t  PeriphClk,
uint32_t  OverSampling,
uint32_t  BaudRate 
)

Configure USART BRR register for achieving expected Baud Rate value.

Note:
Compute and set USARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values
Peripheral clock and Baud rate values provided as function parameters should be valid (Baud rate value != 0)
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
Reference Manual to LL API cross reference:
BRR BRR LL_USART_SetBaudRate
Parameters:
USARTxUSART Instance
PeriphClkPeripheral Clock
OverSamplingThis parameter can be one of the following values:
BaudRateBaud Rate
Return values:
None

Definition at line 1988 of file stm32l4xx_ll_usart.h.

References __LL_USART_DIV_SAMPLING16, __LL_USART_DIV_SAMPLING8, and LL_USART_OVERSAMPLING_8.

Referenced by LL_USART_Init().

__STATIC_INLINE void LL_USART_SetBinaryDataLogic ( USART_TypeDef *  USARTx,
uint32_t  DataLogic 
)

Configure Binary data logic.

Note:
Allow to define how Logical data from the data register are send/received : either in positive/direct logic (1=H, 0=L) or in negative/inverse logic (1=L, 0=H)
Reference Manual to LL API cross reference:
CR2 DATAINV LL_USART_SetBinaryDataLogic
Parameters:
USARTxUSART Instance
DataLogicThis parameter can be one of the following values:
Return values:
None

Definition at line 1552 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetBlockLength ( USART_TypeDef *  USARTx,
uint32_t  BlockLength 
)

Set Block Length value in reception.

Reference Manual to LL API cross reference:
RTOR BLEN LL_USART_SetBlockLength
Parameters:
USARTxUSART Instance
BlockLengthValue between Min_Data=0x00 and Max_Data=0xFF
Return values:
None

Definition at line 2114 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetClockPhase ( USART_TypeDef *  USARTx,
uint32_t  ClockPhase 
)

Select the phase of the clock output on the SCLK pin in synchronous mode.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CPHA LL_USART_SetClockPhase
Parameters:
USARTxUSART Instance
ClockPhaseThis parameter can be one of the following values:
Return values:
None

Definition at line 1224 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetClockPolarity ( USART_TypeDef *  USARTx,
uint32_t  ClockPolarity 
)

Select the polarity of the clock output on the SCLK pin in synchronous mode.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 CPOL LL_USART_SetClockPolarity
Parameters:
USARTxUSART Instance
ClockPolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 1255 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetDataWidth ( USART_TypeDef *  USARTx,
uint32_t  DataWidth 
)

Set Word length (i.e.

nb of data bits, excluding start and stop bits)

Reference Manual to LL API cross reference:
CR1 M0 LL_USART_SetDataWidth
CR1 M1 LL_USART_SetDataWidth
Parameters:
USARTxUSART Instance
DataWidthThis parameter can be one of the following values:
Return values:
None

Definition at line 1101 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetHWFlowCtrl ( USART_TypeDef *  USARTx,
uint32_t  HardwareFlowControl 
)

Configure HW Flow Control mode (both CTS and RTS)

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 RTSE LL_USART_SetHWFlowCtrl
CR3 CTSE LL_USART_SetHWFlowCtrl
Parameters:
USARTxUSART Instance
HardwareFlowControlThis parameter can be one of the following values:
Return values:
None

Definition at line 1831 of file stm32l4xx_ll_usart.h.

Referenced by LL_USART_Init().

__STATIC_INLINE void LL_USART_SetLastClkPulseOutput ( USART_TypeDef *  USARTx,
uint32_t  LastBitClockPulse 
)

Configure if Clock pulse of the last data bit is output to the SCLK pin or not.

Note:
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Reference Manual to LL API cross reference:
CR2 LBCL LL_USART_SetLastClkPulseOutput
Parameters:
USARTxUSART Instance
LastBitClockPulseThis parameter can be one of the following values:
Return values:
None

Definition at line 1192 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetOverSampling ( USART_TypeDef *  USARTx,
uint32_t  OverSampling 
)

Set Oversampling to 8-bit or 16-bit mode.

Reference Manual to LL API cross reference:
CR1 OVER8 LL_USART_SetOverSampling
Parameters:
USARTxUSART Instance
OverSamplingThis parameter can be one of the following values:
Return values:
None

Definition at line 1163 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetParity ( USART_TypeDef *  USARTx,
uint32_t  Parity 
)

Configure Parity (enabled/disabled and parity mode if enabled).

Note:
This function selects if hardware parity control (generation and detection) is enabled or disabled. When the parity control is enabled (Odd or Even), computed parity bit is inserted at the MSB position (9th or 8th bit depending on data width) and parity is checked on the received data.
Reference Manual to LL API cross reference:
CR1 PS LL_USART_SetParity
CR1 PCE LL_USART_SetParity
Parameters:
USARTxUSART Instance
ParityThis parameter can be one of the following values:
Return values:
None

Definition at line 1043 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetRXPinLevel ( USART_TypeDef *  USARTx,
uint32_t  PinInvMethod 
)

Configure RX pin active level logic.

Reference Manual to LL API cross reference:
CR2 RXINV LL_USART_SetRXPinLevel
Parameters:
USARTxUSART Instance
PinInvMethodThis parameter can be one of the following values:
Return values:
None

Definition at line 1496 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetRxTimeout ( USART_TypeDef *  USARTx,
uint32_t  Timeout 
)

Set Receiver Time Out Value (expressed in nb of bits duration)

Reference Manual to LL API cross reference:
RTOR RTO LL_USART_SetRxTimeout
Parameters:
USARTxUSART Instance
TimeoutValue between Min_Data=0x00 and Max_Data=0x00FFFFFF
Return values:
None

Definition at line 2091 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetStopBitsLength ( USART_TypeDef *  USARTx,
uint32_t  StopBits 
)

Set the length of the stop bits.

Reference Manual to LL API cross reference:
CR2 STOP LL_USART_SetStopBitsLength
Parameters:
USARTxUSART Instance
StopBitsThis parameter can be one of the following values:
Return values:
None

Definition at line 1406 of file stm32l4xx_ll_usart.h.

Referenced by LL_USART_Init().

__STATIC_INLINE void LL_USART_SetTransferBitOrder ( USART_TypeDef *  USARTx,
uint32_t  BitOrder 
)

Configure transfer bit order (either Less or Most Significant Bit First)

Note:
MSB First means data is transmitted/received with the MSB first, following the start bit. LSB First means data is transmitted/received with data bit 0 first, following the start bit.
Reference Manual to LL API cross reference:
CR2 MSBFIRST LL_USART_SetTransferBitOrder
Parameters:
USARTxUSART Instance
BitOrderThis parameter can be one of the following values:
Return values:
None

Definition at line 1581 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetTransferDirection ( USART_TypeDef *  USARTx,
uint32_t  TransferDirection 
)

Configure simultaneously enabled/disabled states of Transmitter and Receiver.

Reference Manual to LL API cross reference:
CR1 RE LL_USART_SetTransferDirection
CR1 TE LL_USART_SetTransferDirection
Parameters:
USARTxUSART Instance
TransferDirectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1008 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetTXPinLevel ( USART_TypeDef *  USARTx,
uint32_t  PinInvMethod 
)

Configure TX pin active level logic.

Reference Manual to LL API cross reference:
CR2 TXINV LL_USART_SetTXPinLevel
Parameters:
USARTxUSART Instance
PinInvMethodThis parameter can be one of the following values:
Return values:
None

Definition at line 1523 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetTXRXSwap ( USART_TypeDef *  USARTx,
uint32_t  SwapConfig 
)

Configure TX/RX pins swapping setting.

Reference Manual to LL API cross reference:
CR2 SWAP LL_USART_SetTXRXSwap
Parameters:
USARTxUSART Instance
SwapConfigThis parameter can be one of the following values:
Return values:
None

Definition at line 1469 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetWakeUpMethod ( USART_TypeDef *  USARTx,
uint32_t  Method 
)

Set Receiver Wake Up method from Mute mode.

Reference Manual to LL API cross reference:
CR1 WAKE LL_USART_SetWakeUpMethod
Parameters:
USARTxUSART Instance
MethodThis parameter can be one of the following values:
Return values:
None

Definition at line 1072 of file stm32l4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetWKUPType ( USART_TypeDef *  USARTx,
uint32_t  Type 
)

Select event type for Wake UP Interrupt Flag (WUS[1:0] bits)

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 WUS LL_USART_SetWKUPType
Parameters:
USARTxUSART Instance
TypeThis parameter can be one of the following values:
Return values:
None

Definition at line 1932 of file stm32l4xx_ll_usart.h.