LL LPUART Functions

Configuration functions

group LPUART_LL_EF_Configuration

Functions

void LL_LPUART_Enable ( USART_TypeDef * p_lpuart )

LPUART enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UE LL_LPUART_Enable

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_Disable ( USART_TypeDef * p_lpuart )

LPUART disable.

Reference Manual to LL API cross reference (Register Field Functions) CR1 UE LL_LPUART_Disable

Note

When LPUART is disabled, LPUART prescalers and outputs are stopped immediately, and current operations are discarded. The configuration of the LPUART is kept, but all the status flags, in the LPUARTx_ISR are set to their default values.

Note

In order to go into low-power mode without generating errors on the line, the TE bit must be reset before and the software must wait for the TC bit in the LPUART_ISR to be set before resetting the UE bit. The DMA requests are also reset when UE = 0 so the DMA channel must be disabled before resetting the UE bit.

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabled ( const USART_TypeDef * p_lpuart )

Indicate if LPUART is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UE LL_LPUART_IsEnabled

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_EnableFIFO ( USART_TypeDef * p_lpuart )

FIFO mode enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FIFOEN LL_LPUART_EnableFIFO

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableFIFO ( USART_TypeDef * p_lpuart )

FIFO mode disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FIFOEN LL_LPUART_DisableFIFO

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledFIFO ( const USART_TypeDef * p_lpuart )

Indicate if FIFO mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FIFOEN LL_LPUART_IsEnabledFIFO

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_SetTXFIFOThreshold ( USART_TypeDef * p_lpuart , uint32_t threshold )

Configure TX FIFO threshold.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTCFG LL_LPUART_SetTXFIFOThreshold

Parameters :
uint32_t LL_LPUART_GetTXFIFOThreshold ( const USART_TypeDef * p_lpuart )

Return TX FIFO threshold configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTCFG LL_LPUART_GetTXFIFOThreshold

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetRXFIFOThreshold ( USART_TypeDef * p_lpuart , uint32_t threshold )

Configure RX FIFO threshold.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RXFTCFG LL_LPUART_SetRXFIFOThreshold

Parameters :
uint32_t LL_LPUART_GetRXFIFOThreshold ( const USART_TypeDef * p_lpuart )

Return RX FIFO threshold configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RXFTCFG LL_LPUART_GetRXFIFOThreshold

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_ConfigFIFOsThreshold ( USART_TypeDef * p_lpuart , uint32_t tx_threshold , uint32_t rx_threshold )

Configure TX and RX FIFOs threshold.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTCFG LL_LPUART_ConfigFIFOsThreshold

CR3 RXFTCFG LL_LPUART_ConfigFIFOsThreshold

Parameters :
void LL_LPUART_EnableInStopMode ( USART_TypeDef * p_lpuart )

LPUART enabled in STOP mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UESM LL_LPUART_EnableInStopMode

Note

When this function is enabled, LPUART is able to wake up the MCU from Stop mode, provided that LPUART clock selection is HSI or LSE in RCC.

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableInStopMode ( USART_TypeDef * p_lpuart )

LPUART disabled in STOP mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UESM LL_LPUART_DisableInStopMode

Note

When this function is disabled, LPUART is not able to wake up the MCU from Stop mode

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledInStopMode ( const USART_TypeDef * p_lpuart )

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

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UESM LL_LPUART_IsEnabledInStopMode

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_ConfigXfer ( USART_TypeDef * p_lpuart , uint32_t cr1_config , uint32_t cr2_config )

Configure the LPUART instance.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 M0 LL_LPUART_ConfigXfer

CR1 M1 LL_LPUART_ConfigXfer

CR1 PCE LL_LPUART_ConfigXfer

CR1 PS LL_LPUART_ConfigXfer

CR1 TE LL_LPUART_ConfigXfer

CR1 RE LL_LPUART_ConfigXfer

CR2 STOP_0 LL_LPUART_ConfigXfer

CR2 STOP_1 LL_LPUART_ConfigXfer

Parameters :
void LL_LPUART_EnableDirectionRx ( USART_TypeDef * p_lpuart )

Receiver enable (receiver is enabled and begins searching for a start bit).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RE LL_LPUART_EnableDirectionRx

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableDirectionRx ( USART_TypeDef * p_lpuart )

Receiver disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RE LL_LPUART_DisableDirectionRx

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledDirectionRx ( const USART_TypeDef * p_lpuart )

Indicate if the p_lpuart receiver is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RE LL_LPUART_IsEnabledDirectionRx

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_EnableDirectionTx ( USART_TypeDef * p_lpuart )

Transmitter enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TE LL_LPUART_EnableDirectionTx

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableDirectionTx ( USART_TypeDef * p_lpuart )

Transmitter disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TE LL_LPUART_DisableDirectionTx

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledDirectionTx ( const USART_TypeDef * p_lpuart )

Indicate if the p_lpuart transmitter is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TE LL_LPUART_IsEnabledDirectionTx

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_SetTransferDirection ( USART_TypeDef * p_lpuart , uint32_t transfer_direction )

Configure simultaneously enabled/disabled states of transmitter and receiver.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RE LL_LPUART_SetTransferDirection

CR1 TE LL_LPUART_SetTransferDirection

Parameters :
uint32_t LL_LPUART_GetTransferDirection ( const USART_TypeDef * p_lpuart )

Return enabled/disabled states of transmitter and receiver.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RE LL_LPUART_GetTransferDirection

CR1 TE LL_LPUART_GetTransferDirection

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetParity ( USART_TypeDef * p_lpuart , uint32_t parity )

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

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PS LL_LPUART_SetParity

CR1 PCE LL_LPUART_SetParity

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 (depending on data width) and parity is checked on the received data.

Parameters :
uint32_t LL_LPUART_GetParity ( const USART_TypeDef * p_lpuart )

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

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PS LL_LPUART_GetParity

CR1 PCE LL_LPUART_GetParity

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetWakeUpMethod ( USART_TypeDef * p_lpuart , uint32_t method )

Set receiver wake up method from mute mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 WAKE LL_LPUART_SetWakeUpMethod

Parameters :
uint32_t LL_LPUART_GetWakeUpMethod ( const USART_TypeDef * p_lpuart )

Return receiver wake up method from mute mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 WAKE LL_LPUART_GetWakeUpMethod

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetDataWidth ( USART_TypeDef * p_lpuart , uint32_t data_width )

Set word length (nb of data bits, excluding start and stop bits).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 M LL_LPUART_SetDataWidth

Parameters :
uint32_t LL_LPUART_GetDataWidth ( const USART_TypeDef * p_lpuart )

Return word length (i.e. nb of data bits, excluding start and stop bits).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 M LL_LPUART_GetDataWidth

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_EnableMuteMode ( USART_TypeDef * p_lpuart )

Allow switch between mute mode and active mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 MME LL_LPUART_EnableMuteMode

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableMuteMode ( USART_TypeDef * p_lpuart )

Prevent mute mode use. Set receiver in active mode permanently.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 MME LL_LPUART_DisableMuteMode

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledMuteMode ( const USART_TypeDef * p_lpuart )

Indicate if switch between mute mode and active mode is allowed.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 MME LL_LPUART_IsEnabledMuteMode

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_SetPrescaler ( USART_TypeDef * p_lpuart , uint32_t prescaler_value )

Configure clock source prescaler for baudrate generator and oversampling.

Reference Manual to LL API cross reference (Register Field Functions)

PRESC PRESCALER LL_LPUART_SetPrescaler

Parameters :
uint32_t LL_LPUART_GetPrescaler ( const USART_TypeDef * p_lpuart )

Retrieve the clock source prescaler for baudrate generator and oversampling.

Reference Manual to LL API cross reference (Register Field Functions)

PRESC PRESCALER LL_LPUART_GetPrescaler

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetStopBitsLength ( USART_TypeDef * p_lpuart , uint32_t stop_bits )

Set the length of the stop bits.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 STOP LL_LPUART_SetStopBitsLength

Parameters :
uint32_t LL_LPUART_GetStopBitsLength ( const USART_TypeDef * p_lpuart )

Retrieve the length of the stop bits.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 STOP LL_LPUART_GetStopBitsLength

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_ConfigCharacter ( USART_TypeDef * p_lpuart , uint32_t data_width , uint32_t parity , uint32_t stop_bits )

Configure character frame format (datawidth, parity control, stop bits).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PS LL_LPUART_ConfigCharacter

CR1 PCE LL_LPUART_ConfigCharacter

CR1 M LL_LPUART_ConfigCharacter

CR2 STOP LL_LPUART_ConfigCharacter

Note

Call of this function is equivalent to following function call sequence :

Parameters :
void LL_LPUART_SetTXRXSwap ( USART_TypeDef * p_lpuart , uint32_t swap_config )

Configure TX/RX pins swapping setting.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SWAP LL_LPUART_SetTXRXSwap

Parameters :
uint32_t LL_LPUART_GetTXRXSwap ( const USART_TypeDef * p_lpuart )

Retrieve TX/RX pins swapping configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SWAP LL_LPUART_GetTXRXSwap

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetRXPinLevel ( USART_TypeDef * p_lpuart , uint32_t pin_inv_method )

Configure RX pin active level logic.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 RXINV LL_LPUART_SetRXPinLevel

Parameters :
uint32_t LL_LPUART_GetRXPinLevel ( const USART_TypeDef * p_lpuart )

Retrieve RX pin active level logic configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 RXINV LL_LPUART_GetRXPinLevel

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetTXPinLevel ( USART_TypeDef * p_lpuart , uint32_t pin_inv_method )

Configure TX pin active level logic.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 TXINV LL_LPUART_SetTXPinLevel

Parameters :
uint32_t LL_LPUART_GetTXPinLevel ( const USART_TypeDef * p_lpuart )

Retrieve TX pin active level logic configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 TXINV LL_LPUART_GetTXPinLevel

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetBinaryDataLogic ( USART_TypeDef * p_lpuart , uint32_t data_logic )

Configure binary data logic.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DATAINV LL_LPUART_SetBinaryDataLogic

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)

Parameters :
uint32_t LL_LPUART_GetBinaryDataLogic ( const USART_TypeDef * p_lpuart )

Retrieve binary data configuration.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DATAINV LL_LPUART_GetBinaryDataLogic

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetTransferBitOrder ( USART_TypeDef * p_lpuart , uint32_t bit_order )

Configure transfer bit order (either less or most significant bit first).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 MSBFIRST LL_LPUART_SetTransferBitOrder

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.

Parameters :
uint32_t LL_LPUART_GetTransferBitOrder ( const USART_TypeDef * p_lpuart )

Return transfer bit order (either less or most significant bit first).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 MSBFIRST LL_LPUART_GetTransferBitOrder

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.

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_SetNodeAddress ( USART_TypeDef * p_lpuart , uint32_t node_address )

Set a 8 bit address of the LPUART node as set in ADD field of CR2.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ADD LL_LPUART_SetNodeAddress

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)

Parameters :
  • p_lpuart – LPUART Instance

  • node_address – 4 or 7 bit Address of the LPUART node.

uint32_t LL_LPUART_GetNodeAddress ( const USART_TypeDef * p_lpuart )

Return 8 bit address of the LPUART node as set in ADD field of CR2.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ADD LL_LPUART_GetNodeAddress

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)

Parameters :

p_lpuart – LPUART Instance

Return values :

Address – of the LPUART node (value between Min_Data=0 and Max_Data=255)

void LL_LPUART_SetNodeAddressLength ( USART_TypeDef * p_lpuart , uint32_t address_len )

Set the address length of the LPUART node in ADDM7 field of CR2.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ADDM7 LL_LPUART_SetNodeAddressLength

Note

If 4-bit Address Detection is selected in ADDM7, only 4bits (b3-b0) of node address value are relevant (b7-b4 are not relevant) If 7-bit Address Detection is selected in ADDM7, only 8bits (b7-b0) of node address value are relevant

Parameters :
uint32_t LL_LPUART_GetNodeAddressLength ( const USART_TypeDef * p_lpuart )

Return length of node address used in address detection mode (7-bit or 4-bit).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ADDM7 LL_LPUART_GetNodeAddressLength

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_ConfigNodeAddress ( USART_TypeDef * p_lpuart , uint32_t address_len , uint32_t node_address )

Configure address and address length of the LPUART node.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ADD LL_LPUART_ConfigNodeAddress

CR2 ADDM7 LL_LPUART_ConfigNodeAddress

Note

This is used in multiprocessor communication during Mute mode or Stop mode, for wake up with address mark detection.

Note

4bits address node is used when 4-bit Address Detection is selected in ADDM7. (b7-b4 must 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 must be equal to 1. It could 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)

Parameters :
void LL_LPUART_EnableRTSHWFlowCtrl ( USART_TypeDef * p_lpuart )

Enable RTS HW flow control.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RTSE LL_LPUART_EnableRTSHWFlowCtrl

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableRTSHWFlowCtrl ( USART_TypeDef * p_lpuart )

Disable RTS HW flow control.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RTSE LL_LPUART_DisableRTSHWFlowCtrl

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableCTSHWFlowCtrl ( USART_TypeDef * p_lpuart )

Enable CTS HW flow control.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 CTSE LL_LPUART_EnableCTSHWFlowCtrl

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableCTSHWFlowCtrl ( USART_TypeDef * p_lpuart )

Disable CTS HW flow control.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 CTSE LL_LPUART_DisableCTSHWFlowCtrl

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_SetHWFlowCtrl ( USART_TypeDef * p_lpuart , uint32_t hardware_flow_control )

Configure HW flow control mode (both CTS and RTS).

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RTSE LL_LPUART_SetHWFlowCtrl

CR3 CTSE LL_LPUART_SetHWFlowCtrl

Parameters :
uint32_t LL_LPUART_GetHWFlowCtrl ( const USART_TypeDef * p_lpuart )

Return HW flow control configuration (both CTS and RTS).

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RTSE LL_LPUART_GetHWFlowCtrl

CR3 CTSE LL_LPUART_GetHWFlowCtrl

Parameters :

p_lpuart – LPUART Instance

Return values :

Returned – value can be one of the following values:

void LL_LPUART_EnableOverrunDetect ( USART_TypeDef * p_lpuart )

Enable overrun detection.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 OVRDIS LL_LPUART_EnableOverrunDetect

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableOverrunDetect ( USART_TypeDef * p_lpuart )

Disable overrun detection.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 OVRDIS LL_LPUART_DisableOverrunDetect

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledOverrunDetect ( const USART_TypeDef * p_lpuart )

Indicate if overrun detection is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 OVRDIS LL_LPUART_IsEnabledOverrunDetect

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_SetBaudRate ( USART_TypeDef * p_lpuart , uint32_t periph_clk , uint32_t prescaler_value , uint32_t baud_rate )

Configure LPUART BRR register for achieving expected Baud Rate value.

Reference Manual to LL API cross reference (Register Field Functions)

BRR BRR LL_LPUART_SetBaudRate

Note

Compute and set LPUARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock and expected Baud Rate values

Note

Peripheral clock and Baud Rate values provided as function parameters must be valid (Baud rate value != 0).

Note

Provided that LPUARTx_BRR must be > = 0x300 and LPUART_BRR is 20-bit, care must be taken when generating high baud rates using high periph_clk values. periph_clk must be in the range [3 x baud_rate, 4096 x baud_rate].

Parameters :
uint32_t LL_LPUART_GetBaudRate ( const USART_TypeDef * p_lpuart , uint32_t periph_clk , uint32_t prescaler_value )

Return current baud rate value, according to LPUARTDIV present in BRR register (full BRR content), and to used Peripheral Clock values.

Reference Manual to LL API cross reference (Register Field Functions)

BRR BRR LL_LPUART_GetBaudRate

Note

In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.

Parameters :
Return values :

Baud – Rate

FLAG_Management

group LPUART_LL_EF_FLAG_Management

Functions

uint32_t LL_LPUART_IsActiveFlag_PE ( const USART_TypeDef * p_lpuart )

Check if the LPUART parity error Flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR PE LL_LPUART_IsActiveFlag_PE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_FE ( const USART_TypeDef * p_lpuart )

Check if the LPUART framing error flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR FE LL_LPUART_IsActiveFlag_FE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_NE ( const USART_TypeDef * p_lpuart )

Check if the LPUART noise error detected flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR NE LL_LPUART_IsActiveFlag_NE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_ORE ( const USART_TypeDef * p_lpuart )

Check if the LPUART overrun error flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR ORE LL_LPUART_IsActiveFlag_ORE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_IDLE ( const USART_TypeDef * p_lpuart )

Check if the LPUART IDLE line detected flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR IDLE LL_LPUART_IsActiveFlag_IDLE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_RXNE_RXFNE ( const USART_TypeDef * p_lpuart )

Check if the LPUART read data register or LPUART RX FIFO not empty flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR RXNE_RXFNE LL_LPUART_IsActiveFlag_RXNE_RXFNE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_TC ( const USART_TypeDef * p_lpuart )

Check if the LPUART transmission complete flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR TC LL_LPUART_IsActiveFlag_TC

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_TXE_TXFNF ( const USART_TypeDef * p_lpuart )

Check if the LPUART transmit data register empty or LPUART TX FIFO not full flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR TXE_TXFNF LL_LPUART_IsActiveFlag_TXE_TXFNF

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_nCTS ( const USART_TypeDef * p_lpuart )

Check if the LPUART CTS interrupt flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR CTSIF LL_LPUART_IsActiveFlag_nCTS

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_CTS ( const USART_TypeDef * p_lpuart )

Check if the LPUART CTS flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR CTS LL_LPUART_IsActiveFlag_CTS

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_BUSY ( const USART_TypeDef * p_lpuart )

Check if the LPUART busy flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR BUSY LL_LPUART_IsActiveFlag_BUSY

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_CM ( const USART_TypeDef * p_lpuart )

Check if the LPUART character match flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR CMF LL_LPUART_IsActiveFlag_CM

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_SBK ( const USART_TypeDef * p_lpuart )

Check if the LPUART send break flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR SBKF LL_LPUART_IsActiveFlag_SBK

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_RWU ( const USART_TypeDef * p_lpuart )

Check if the LPUART receive wake up from mute mode flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR RWU LL_LPUART_IsActiveFlag_RWU

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_TEACK ( const USART_TypeDef * p_lpuart )

Check if the LPUART transmit enable acknowledge flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR TEACK LL_LPUART_IsActiveFlag_TEACK

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_REACK ( const USART_TypeDef * p_lpuart )

Check if the LPUART receive enable acknowledge flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR REACK LL_LPUART_IsActiveFlag_REACK

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_TXFE ( const USART_TypeDef * p_lpuart )

Check if the LPUART TX FIFO empty flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR TXFE LL_LPUART_IsActiveFlag_TXFE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_RXFF ( const USART_TypeDef * p_lpuart )

Check if the LPUART RX FIFO full flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR RXFF LL_LPUART_IsActiveFlag_RXFF

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_TXFT ( const USART_TypeDef * p_lpuart )

Check if the LPUART TX FIFO threshold flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR TXFT LL_LPUART_IsActiveFlag_TXFT

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsActiveFlag_RXFT ( const USART_TypeDef * p_lpuart )

Check if the LPUART RX FIFO threshold flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

ISR RXFT LL_LPUART_IsActiveFlag_RXFT

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_ClearFlag_PE ( USART_TypeDef * p_lpuart )

Clear parity error flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR PECF LL_LPUART_ClearFlag_PE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_FE ( USART_TypeDef * p_lpuart )

Clear framing error flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR FECF LL_LPUART_ClearFlag_FE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_NE ( USART_TypeDef * p_lpuart )

Clear noise detected flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR NECF LL_LPUART_ClearFlag_NE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_ORE ( USART_TypeDef * p_lpuart )

Clear overrun error flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR ORECF LL_LPUART_ClearFlag_ORE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_IDLE ( USART_TypeDef * p_lpuart )

Clear IDLE line detected flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR IDLECF LL_LPUART_ClearFlag_IDLE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_TC ( USART_TypeDef * p_lpuart )

Clear transmission complete flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TCCF LL_LPUART_ClearFlag_TC

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_nCTS ( USART_TypeDef * p_lpuart )

Clear CTS interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR CTSCF LL_LPUART_ClearFlag_nCTS

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_ClearFlag_CM ( USART_TypeDef * p_lpuart )

Clear character match flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR CMCF LL_LPUART_ClearFlag_CM

Parameters :

p_lpuart – LPUART Instance

IT_Management

group LPUART_LL_EF_IT_Management

Functions

void LL_LPUART_EnableIT_IDLE ( USART_TypeDef * p_lpuart )

Enable IDLE interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 IDLEIE LL_LPUART_EnableIT_IDLE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_RXNE_RXFNE ( USART_TypeDef * p_lpuart )

Enable RX not empty and RX FIFO not empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXNEIE_RXFNEIE LL_LPUART_EnableIT_RXNE_RXFNE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_TC ( USART_TypeDef * p_lpuart )

Enable transmission complete interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TCIE LL_LPUART_EnableIT_TC

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_TXE_TXFNF ( USART_TypeDef * p_lpuart )

Enable TX empty and TX FIFO not full interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXEIE_TXFNFIE LL_LPUART_EnableIT_TXE_TXFNF

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_PE ( USART_TypeDef * p_lpuart )

Enable parity error interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PEIE LL_LPUART_EnableIT_PE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_CM ( USART_TypeDef * p_lpuart )

Enable character match interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 CMIE LL_LPUART_EnableIT_CM

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_TXFE ( USART_TypeDef * p_lpuart )

Enable TX FIFO empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXFEIE LL_LPUART_EnableIT_TXFE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_RXFF ( USART_TypeDef * p_lpuart )

Enable RX FIFO full interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXFFIE LL_LPUART_EnableIT_RXFF

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_ERROR ( USART_TypeDef * p_lpuart )

Enable error interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 EIE LL_LPUART_EnableIT_ERROR

Note

When set, error interrupt enable bit is enabling interrupt generation in case of a framing error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register).

  • 0: Interrupt is inhibited

  • 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register.

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_CTS ( USART_TypeDef * p_lpuart )

Enable CTS interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 CTSIE LL_LPUART_EnableIT_CTS

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_TXFT ( USART_TypeDef * p_lpuart )

Enable TX FIFO threshold interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTIE LL_LPUART_EnableIT_TXFT

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_EnableIT_RXFT ( USART_TypeDef * p_lpuart )

Enable RX FIFO threshold interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RXFTIE LL_LPUART_EnableIT_RXFT

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_IDLE ( USART_TypeDef * p_lpuart )

Disable IDLE interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 IDLEIE LL_LPUART_DisableIT_IDLE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_RXNE_RXFNE ( USART_TypeDef * p_lpuart )

Disable RX not empty and RX FIFO not empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXNEIE_RXFNEIE LL_LPUART_DisableIT_RXNE_RXFNE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_TC ( USART_TypeDef * p_lpuart )

Disable transmission complete interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TCIE LL_LPUART_DisableIT_TC

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_TXE_TXFNF ( USART_TypeDef * p_lpuart )

Disable TX empty and TX FIFO not full interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXEIE_TXFNFIE LL_LPUART_DisableIT_TXE_TXFNF

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_PE ( USART_TypeDef * p_lpuart )

Disable parity error interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PEIE LL_LPUART_DisableIT_PE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_CM ( USART_TypeDef * p_lpuart )

Disable character match interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 CMIE LL_LPUART_DisableIT_CM

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_TXFE ( USART_TypeDef * p_lpuart )

Disable TX FIFO empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXFEIE LL_LPUART_DisableIT_TXFE

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_RXFF ( USART_TypeDef * p_lpuart )

Disable RX FIFO full interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXFFIE LL_LPUART_DisableIT_RXFF

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_ERROR ( USART_TypeDef * p_lpuart )

Disable error interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 EIE LL_LPUART_DisableIT_ERROR

Note

When set, error interrupt enable bit is enabling interrupt generation in case of a framing error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register).

  • 0: Interrupt is inhibited

  • 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register.

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_CTS ( USART_TypeDef * p_lpuart )

Disable CTS interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 CTSIE LL_LPUART_DisableIT_CTS

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_TXFT ( USART_TypeDef * p_lpuart )

Disable TX FIFO threshold interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTIE LL_LPUART_DisableIT_TXFT

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableIT_RXFT ( USART_TypeDef * p_lpuart )

Disable RX FIFO threshold interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RXFTIE LL_LPUART_DisableIT_RXFT

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledIT_IDLE ( const USART_TypeDef * p_lpuart )

Check if the LPUART IDLE interrupt source is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 IDLEIE LL_LPUART_IsEnabledIT_IDLE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_RXNE_RXFNE ( const USART_TypeDef * p_lpuart )

Check if the LPUART RX not empty and LPUART RX FIFO not empty interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXNEIE_RXFNEIE LL_LPUART_IsEnabledIT_RXNE_RXFNE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_TC ( const USART_TypeDef * p_lpuart )

Check if the LPUART transmission complete interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TCIE LL_LPUART_IsEnabledIT_TC

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_TXE_TXFNF ( const USART_TypeDef * p_lpuart )

Check if the LPUART TX empty and LPUART TX FIFO not full interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXEIE_TXFNFIE LL_LPUART_IsEnabledIT_TXE_TXFNF

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_PE ( const USART_TypeDef * p_lpuart )

Check if the LPUART parity error interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 PEIE LL_LPUART_IsEnabledIT_PE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_CM ( const USART_TypeDef * p_lpuart )

Check if the LPUART character match interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 CMIE LL_LPUART_IsEnabledIT_CM

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_TXFE ( const USART_TypeDef * p_lpuart )

Check if the LPUART TX FIFO empty interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 TXFEIE LL_LPUART_IsEnabledIT_TXFE

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_RXFF ( const USART_TypeDef * p_lpuart )

Check if the LPUART RX FIFO full interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RXFFIE LL_LPUART_IsEnabledIT_RXFF

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_ERROR ( const USART_TypeDef * p_lpuart )

Check if the LPUART error interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 EIE LL_LPUART_IsEnabledIT_ERROR

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_CTS ( const USART_TypeDef * p_lpuart )

Check if the LPUART CTS interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 CTSIE LL_LPUART_IsEnabledIT_CTS

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_TXFT ( const USART_TypeDef * p_lpuart )

Check if LPUART TX FIFO threshold interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 TXFTIE LL_LPUART_IsEnabledIT_TXFT

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_IsEnabledIT_RXFT ( const USART_TypeDef * p_lpuart )

Check if LPUART RX FIFO threshold interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 RXFTIE LL_LPUART_IsEnabledIT_RXFT

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

DMA_Management

group LPUART_LL_EF_DMA_Management

Functions

void LL_LPUART_EnableDMAReq_RX ( USART_TypeDef * p_lpuart )

Enable DMA mode for reception.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAR LL_LPUART_EnableDMAReq_RX

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableDMAReq_RX ( USART_TypeDef * p_lpuart )

Disable DMA mode for reception.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAR LL_LPUART_DisableDMAReq_RX

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledDMAReq_RX ( const USART_TypeDef * p_lpuart )

Check if DMA mode is enabled for reception.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAR LL_LPUART_IsEnabledDMAReq_RX

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_EnableDMAReq_TX ( USART_TypeDef * p_lpuart )

Enable DMA mode for transmission.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAT LL_LPUART_EnableDMAReq_TX

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableDMAReq_TX ( USART_TypeDef * p_lpuart )

Disable DMA mode for transmission.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAT LL_LPUART_DisableDMAReq_TX

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledDMAReq_TX ( const USART_TypeDef * p_lpuart )

Check if DMA mode is enabled for transmission.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DMAT LL_LPUART_IsEnabledDMAReq_TX

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

void LL_LPUART_EnableDMADeactOnRxErr ( USART_TypeDef * p_lpuart )

Enable DMA disabling on reception error.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DDRE LL_LPUART_EnableDMADeactOnRxErr

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_DisableDMADeactOnRxErr ( USART_TypeDef * p_lpuart )

Disable DMA disabling on reception error.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DDRE LL_LPUART_DisableDMADeactOnRxErr

Parameters :

p_lpuart – LPUART Instance

uint32_t LL_LPUART_IsEnabledDMADeactOnRxErr ( const USART_TypeDef * p_lpuart )

Indicate if DMA disabling on reception error is disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 DDRE LL_LPUART_IsEnabledDMADeactOnRxErr

Parameters :

p_lpuart – LPUART Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_LPUART_DMA_GetRegAddr ( const USART_TypeDef * p_lpuart , uint32_t direction )

Get the LPUART data register address used for DMA transfer.

Reference Manual to LL API cross reference (Register Field Functions)

RDR RDR LL_LPUART_DMA_GetRegAddr

TDR TDR LL_LPUART_DMA_GetRegAddr

Parameters :
Return values :

Address – of data register

Data_Management

group LPUART_LL_EF_Data_Management

Functions

uint8_t LL_LPUART_ReceiveData8 ( const USART_TypeDef * p_lpuart )

Read receiver data register (receive data value, 8 bits).

Reference Manual to LL API cross reference (Register Field Functions)

RDR RDR LL_LPUART_ReceiveData8

Parameters :

p_lpuart – LPUART Instance

Return values :

Time – value between Min_Data=0x00 and Max_Data=0xFF

uint16_t LL_LPUART_ReceiveData9 ( const USART_TypeDef * p_lpuart )

Read receiver data register (receive data value, 9 bits).

Reference Manual to LL API cross reference (Register Field Functions)

RDR RDR LL_LPUART_ReceiveData9

Parameters :

p_lpuart – LPUART Instance

Return values :

Time – value between Min_Data=0x00 and Max_Data=0x1FF

void LL_LPUART_TransmitData8 ( USART_TypeDef * p_lpuart , uint8_t value )

Write in transmitter data register (transmit data value, 8 bits).

Reference Manual to LL API cross reference (Register Field Functions)

TDR TDR LL_LPUART_TransmitData8

Parameters :
  • p_lpuart – LPUART Instance

  • value – between Min_Data=0x00 and Max_Data=0xFF

void LL_LPUART_TransmitData9 ( USART_TypeDef * p_lpuart , uint16_t value )

Write in transmitter data register (transmit data value, 9 bits).

Reference Manual to LL API cross reference (Register Field Functions)

TDR TDR LL_LPUART_TransmitData9

Parameters :
  • p_lpuart – LPUART Instance

  • value – between Min_Data=0x00 and Max_Data=0x1FF

Execution

group LPUART_LL_EF_Execution

Functions

void LL_LPUART_SetRequest ( USART_TypeDef * p_lpuart , uint16_t request )

Set a request.

Reference Manual to LL API cross reference (Register Field Functions)

RQR SBKRQ LL_LPUART_SetRequest

RQR MMRQ LL_LPUART_SetRequest

RQR RXFRQ LL_LPUART_SetRequest

RQR TXFRQ LL_LPUART_SetRequest

Parameters :
void LL_LPUART_RequestBreakSending ( USART_TypeDef * p_lpuart )

Request break sending.

Reference Manual to LL API cross reference (Register Field Functions)

RQR SBKRQ LL_LPUART_RequestBreakSending

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_RequestEnterMuteMode ( USART_TypeDef * p_lpuart )

Put LPUART in mute mode and set the RWU flag.

Reference Manual to LL API cross reference (Register Field Functions)

RQR MMRQ LL_LPUART_RequestEnterMuteMode

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_RequestRxDataFlush ( USART_TypeDef * p_lpuart )

Request a receive data and FIFO flush.

Reference Manual to LL API cross reference (Register Field Functions)

RQR RXFRQ LL_LPUART_RequestRxDataFlush

Note

Allows to discard the received data without reading them, and avoid an overrun condition.

Parameters :

p_lpuart – LPUART Instance

void LL_LPUART_RequestTxDataFlush ( USART_TypeDef * p_lpuart )

Request a transmit data and FIFO flush.

Reference Manual to LL API cross reference (Register Field Functions)

RQR TXFRQ LL_LPUART_RequestTxDataFlush

Parameters :

p_lpuart – LPUART Instance