STM32F439xx 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_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_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_SetNodeAddress (USART_TypeDef *USARTx, uint32_t NodeAddress)
 Set Address of the USART node.
__STATIC_INLINE uint32_t LL_USART_GetNodeAddress (USART_TypeDef *USARTx)
 Return 4 bit Address of the USART node as set in ADD field of CR2.
__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_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.

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 M 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 865 of file stm32f4xx_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 765 of file stm32f4xx_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_SR 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 439 of file stm32f4xx_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 945 of file stm32f4xx_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 472 of file stm32f4xx_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 494 of file stm32f4xx_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 1004 of file stm32f4xx_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 919 of file stm32f4xx_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 791 of file stm32f4xx_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 425 of file stm32f4xx_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 932 of file stm32f4xx_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 461 of file stm32f4xx_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 483 of file stm32f4xx_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 993 of file stm32f4xx_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 906 of file stm32f4xx_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 778 of file stm32f4xx_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.
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 1060 of file stm32f4xx_ll_usart.h.

References LL_USART_OVERSAMPLING_8.

__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 706 of file stm32f4xx_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 737 of file stm32f4xx_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 M LL_USART_GetDataWidth
Parameters:
USARTxUSART Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 616 of file stm32f4xx_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 982 of file stm32f4xx_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 675 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE uint32_t LL_USART_GetNodeAddress ( USART_TypeDef *  USARTx)

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

Note:
only 4bits (b3-b0) of returned value are relevant (b31-b4 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 893 of file stm32f4xx_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 643 of file stm32f4xx_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 562 of file stm32f4xx_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 835 of file stm32f4xx_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 528 of file stm32f4xx_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 589 of file stm32f4xx_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 450 of file stm32f4xx_ll_usart.h.

Referenced by LL_USART_ClockInit(), and LL_USART_Init().

__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 1015 of file stm32f4xx_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 804 of file stm32f4xx_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)
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 1035 of file stm32f4xx_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_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 691 of file stm32f4xx_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 722 of file stm32f4xx_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 M LL_USART_SetDataWidth
Parameters:
USARTxUSART Instance
DataWidthThis parameter can be one of the following values:
Return values:
None

Definition at line 603 of file stm32f4xx_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 964 of file stm32f4xx_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 659 of file stm32f4xx_ll_usart.h.

__STATIC_INLINE void LL_USART_SetNodeAddress ( USART_TypeDef *  USARTx,
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.
Reference Manual to LL API cross reference:
CR2 ADD LL_USART_SetNodeAddress
Parameters:
USARTxUSART Instance
NodeAddress4 bit Address of the USART node.
Return values:
None

Definition at line 881 of file stm32f4xx_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 630 of file stm32f4xx_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 547 of file stm32f4xx_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 820 of file stm32f4xx_ll_usart.h.

Referenced by LL_USART_Init().

__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 512 of file stm32f4xx_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 576 of file stm32f4xx_ll_usart.h.