LL USART Functions ¶
Configuration functions ¶
- group USART_LL_EF_Configuration
-
Functions
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
¶
-
USART Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Enable
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_Disable
(
USART_TypeDef
*
p_usart
)
¶
-
USART Disable (all USART prescalers and outputs are disabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Disable
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 p_usart ISR register are set to their default values.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabled
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if USART is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_IsEnabled
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableFIFO
(
USART_TypeDef
*
p_usart
)
¶
-
FIFO Mode Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_EnableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableFIFO
(
USART_TypeDef
*
p_usart
)
¶
-
FIFO Mode Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_DisableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledFIFO
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if FIFO Mode is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_IsEnabledFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
¶
-
Configure TX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_SetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return TX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_GetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
¶
-
Configure RX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_SetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return RX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_GetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigFIFOsThreshold
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigFIFOsThreshold
CR3 RXFTCFG LL_USART_ConfigFIFOsThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
tx_threshold – This parameter can be one of the following values:
-
rx_threshold – This parameter can be one of the following values:
-
-
void
LL_USART_EnableInStopMode
(
USART_TypeDef
*
p_usart
)
¶
-
USART enabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_EnableInStopMode
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.
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableInStopMode
(
USART_TypeDef
*
p_usart
)
¶
-
USART disabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_DisableInStopMode
Note
When this function is disabled, USART is not able to wake up the MCU from Stop mode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledInStopMode
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if USART 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_USART_IsEnabledInStopMode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ConfigXfer
(
USART_TypeDef
*
p_usart
,
uint32_t
cr1_config
,
uint32_t
cr2_config
)
¶
-
Configure the USART instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_ConfigXfer
CR1 M1 LL_USART_ConfigXfer
CR1 PCE LL_USART_ConfigXfer
CR1 PS LL_USART_ConfigXfer
CR1 TE LL_USART_ConfigXfer
CR1 RE LL_USART_ConfigXfer
CR1 OVER8 LL_USART_ConfigXfer
CR2 STOP_0 LL_USART_ConfigXfer
CR2 STOP_1 LL_USART_ConfigXfer
CR2 CPOL LL_USART_ConfigXfer
CR2 ABRMODE_0 LL_USART_ConfigXfer
CR2 LBLC LL_USART_ConfigXfer
- Parameters :
-
-
p_usart – USART Instance
-
cr1_config – This parameter must be a combination of the following groups:
-
cr2_config – This parameter must be a combination of the following groups:
-
-
void
LL_USART_EnableDirectionRx
(
USART_TypeDef
*
p_usart
)
¶
-
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_USART_EnableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionRx
(
USART_TypeDef
*
p_usart
)
¶
-
Receiver Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_DisableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionRx
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if the p_usart Receiver is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_IsEnabledDirectionRx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDirectionTx
(
USART_TypeDef
*
p_usart
)
¶
-
Transmitter Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_EnableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionTx
(
USART_TypeDef
*
p_usart
)
¶
-
Transmitter Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_DisableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionTx
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if the p_usart Transmitter is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_IsEnabledDirectionTx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTransferDirection
(
USART_TypeDef
*
p_usart
,
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_USART_SetTransferDirection
CR1 TE LL_USART_SetTransferDirection
- Parameters :
-
-
p_usart – USART Instance
-
transfer_direction – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTransferDirection
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return enabled/disabled states of Transmitter and Receiver.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_GetTransferDirection
CR1 TE LL_USART_GetTransferDirection
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetParity
(
USART_TypeDef
*
p_usart
,
uint32_t
parity
)
¶
-
Configure Parity (enabled/disabled and parity mode if enabled).osition (9th or 8th bit depending on data width) and parity is checked on the received data.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_SetParity
CR1 PCE LL_USART_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 p
- Parameters :
-
-
p_usart – USART Instance
-
parity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetParity
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return Parity configuration (enabled/disabled and parity mode if enabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_GetParity
CR1 PCE LL_USART_GetParity
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetWakeUpMethod
(
USART_TypeDef
*
p_usart
,
uint32_t
method
)
¶
-
Set Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_SetWakeUpMethod
- Parameters :
-
-
p_usart – USART Instance
-
method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetWakeUpMethod
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_GetWakeUpMethod
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetDataWidth
(
USART_TypeDef
*
p_usart
,
uint32_t
data_width
)
¶
-
Set Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_SetDataWidth
CR1 M1 LL_USART_SetDataWidth
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetDataWidth
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_GetDataWidth
CR1 M1 LL_USART_GetDataWidth
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableMuteMode
(
USART_TypeDef
*
p_usart
)
¶
-
Allow switch between Mute Mode and Active mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_EnableMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableMuteMode
(
USART_TypeDef
*
p_usart
)
¶
-
Prevent Mute Mode use. Set Receiver in active mode permanently.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_DisableMuteMode
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledMuteMode
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if switch between Mute Mode and Active mode is allowed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_IsEnabledMuteMode
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetOverSampling
(
USART_TypeDef
*
p_usart
,
uint32_t
over_sampling
)
¶
-
Set Oversampling to 8-bit or 16-bit mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_SetOverSampling
- Parameters :
-
-
p_usart – USART Instance
-
over_sampling – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetOverSampling
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return Oversampling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_GetOverSampling
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetLastClkPulseOutput
(
USART_TypeDef
*
p_usart
,
uint32_t
last_bit_clock_pulse
)
¶
-
Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_SetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
last_bit_clock_pulse – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetLastClkPulseOutput
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_GetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPhase
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_phase
)
¶
-
Select the phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_SetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_phase – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPhase
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_GetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPolarity
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_polarity
)
¶
-
Select the polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_SetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPolarity
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_GetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigClock
(
USART_TypeDef
*
p_usart
,
uint32_t
phase
,
uint32_t
polarity
,
uint32_t
lbcp_output
)
¶
-
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_ConfigClock
CR2 CPOL LL_USART_ConfigClock
CR2 LBCL LL_USART_ConfigClock
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clock Phase configuration using LL_USART_SetClockPhase() function
-
Clock Polarity configuration using LL_USART_SetClockPolarity() function
-
Output of Last bit Clock pulse configuration using LL_USART_SetLastClkPulseOutput() function
- Parameters :
-
-
p_usart – USART Instance
-
phase – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
lbcp_output – This parameter can be one of the following values:
-
-
void
LL_USART_SetPrescaler
(
USART_TypeDef
*
p_usart
,
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_USART_SetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
prescaler_value – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetPrescaler
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve the Clock source prescaler for baudrate generator and oversampling.
- Reference Manual to LL API cross reference (Register Field Functions)
-
PRESC PRESCALER LL_USART_GetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableSCLKOutput
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_EnableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableSCLKOutput
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_DisableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledSCLKOutput
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if Clock output on SCLK pin is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_IsEnabledSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetStopBitsLength
(
USART_TypeDef
*
p_usart
,
uint32_t
stop_bits
)
¶
-
Set the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_SetStopBitsLength
- Parameters :
-
-
p_usart – USART Instance
-
stop_bits – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetStopBitsLength
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_GetStopBitsLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigCharacter
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigCharacter
CR1 PCE LL_USART_ConfigCharacter
CR1 M0 LL_USART_ConfigCharacter
CR1 M1 LL_USART_ConfigCharacter
CR2 STOP LL_USART_ConfigCharacter
Note
Call of this function is equivalent to following function call sequence :
-
Data Width configuration using LL_USART_SetDataWidth() function
-
Parity Control and mode configuration using LL_USART_SetParity() function
-
Stop bits configuration using LL_USART_SetStopBitsLength() function
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
parity – This parameter can be one of the following values:
-
stop_bits – This parameter can be one of the following values:
-
-
void
LL_USART_SetTXRXSwap
(
USART_TypeDef
*
p_usart
,
uint32_t
swap_config
)
¶
-
Configure TX/RX pins swapping setting.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_SetTXRXSwap
- Parameters :
-
-
p_usart – USART Instance
-
swap_config – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXRXSwap
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve TX/RX pins swapping configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_GetTXRXSwap
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
¶
-
Configure RX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_SetRXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXPinLevel
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve RX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_GetRXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
¶
-
Configure TX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_SetTXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXPinLevel
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve TX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_GetTXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetBinaryDataLogic
(
USART_TypeDef
*
p_usart
,
uint32_t
data_logic
)
¶
-
Configure Binary data logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_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 :
-
-
p_usart – USART Instance
-
data_logic – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetBinaryDataLogic
(
const
USART_TypeDef
*
p_usart
)
¶
-
Retrieve Binary data configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_GetBinaryDataLogic
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTransferBitOrder
(
USART_TypeDef
*
p_usart
,
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_USART_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 :
-
-
p_usart – USART Instance
-
bit_order – This parameter can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
-
uint32_t
LL_USART_GetTransferBitOrder
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return transfer bit order (either Less or Most Significant Bit First)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 MSBFIRST LL_USART_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_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
void
LL_USART_EnableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_EnableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_DisableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledAutoBaud
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if Auto Baud-Rate Detection mechanism is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_IsEnabledAutoBaud
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetAutoBaudRateMode
(
USART_TypeDef
*
p_usart
,
uint32_t
auto_baud_rate_mode
)
¶
-
Set Auto Baud-Rate mode bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_SetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
auto_baud_rate_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetAutoBaudRateMode
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return Auto Baud-Rate mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_GetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRxTimeout
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_EnableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRxTimeout
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_DisableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledRxTimeout
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if Receiver Timeout feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_IsEnabledRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
node_address
)
¶
-
Set a 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
-
node_address – 4 or 7 bit Address of the USART node.
-
-
void
LL_USART_SetNodeAddressLength
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
)
¶
-
Set the Address length of the USART node in ADDM7 field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADDM7 LL_USART_SetNodeAddressLength
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_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
-
void
LL_USART_ConfigNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
,
uint32_t
node_address
)
¶
-
Configure Address and Address length of the USART node.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_ConfigNodeAddress
CR2 ADDM7 LL_USART_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 can 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 :
-
-
p_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
node_address – 4 or 7 bit Address of the USART node.
-
-
uint32_t
LL_USART_GetNodeAddress
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
- Return values :
-
Address – of the USART node (Value between Min_Data=0 and Max_Data=255)
-
uint32_t
LL_USART_GetNodeAddressLength
(
const
USART_TypeDef
*
p_usart
)
¶
-
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_USART_GetNodeAddressLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
¶
-
Enable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_EnableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
¶
-
Disable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_DisableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
¶
-
Enable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_EnableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
¶
-
Disable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_DisableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetHWFlowCtrl
(
USART_TypeDef
*
p_usart
,
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_USART_SetHWFlowCtrl
CR3 CTSE LL_USART_SetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
hardware_flow_control – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetHWFlowCtrl
(
const
USART_TypeDef
*
p_usart
)
¶
-
Return HW Flow Control configuration (both CTS and RTS)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_GetHWFlowCtrl
CR3 CTSE LL_USART_GetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableOneBitSample
(
USART_TypeDef
*
p_usart
)
¶
-
Enable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_EnableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOneBitSample
(
USART_TypeDef
*
p_usart
)
¶
-
Disable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_DisableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOneBitSample
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if One bit sampling method is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_IsEnabledOneBitSample
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableOverrunDetect
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_EnableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOverrunDetect
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_DisableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOverrunDetect
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if Overrun detection is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_IsEnabledOverrunDetect
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetBaudRate
(
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
,
uint32_t
baud_rate
)
¶
-
Configure USART BRR register for achieving expected Baud Rate value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_SetBaudRate
Note
Compute and set USARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values
Note
Peripheral clock and Baud rate values provided as function parameters must be valid (Baud rate value != 0)
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
baud_rate – Baud Rate
-
-
uint32_t
LL_USART_GetBaudRate
(
const
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
)
¶
-
Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_GetBaudRate
Note
In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
- Return values :
-
Baud – Rate
-
void
LL_USART_SetRxTimeout
(
USART_TypeDef
*
p_usart
,
uint32_t
timeout
)
¶
-
Set Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_SetRxTimeout
- Parameters :
-
-
p_usart – USART Instance
-
timeout – Value between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
-
uint32_t
LL_USART_GetRxTimeout
(
const
USART_TypeDef
*
p_usart
)
¶
-
Get Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_GetRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
void
LL_USART_SetBlockLength
(
USART_TypeDef
*
p_usart
,
uint32_t
block_length
)
¶
-
Set Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_SetBlockLength
- Parameters :
-
-
p_usart – USART Instance
-
block_length – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_USART_GetBlockLength
(
const
USART_TypeDef
*
p_usart
)
¶
-
Get Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_GetBlockLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
¶
- group USART_LL_EF_Configuration
-
Functions
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
-
USART Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Enable
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_Disable
(
USART_TypeDef
*
p_usart
)
-
USART Disable (all USART prescalers and outputs are disabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Disable
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 p_usart ISR register are set to their default values.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabled
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if USART is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_IsEnabled
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableFIFO
(
USART_TypeDef
*
p_usart
)
-
FIFO Mode Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_EnableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableFIFO
(
USART_TypeDef
*
p_usart
)
-
FIFO Mode Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_DisableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledFIFO
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if FIFO Mode is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_IsEnabledFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
-
Configure TX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_SetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
-
Return TX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_GetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
-
Configure RX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_SetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
-
Return RX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_GetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigFIFOsThreshold
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigFIFOsThreshold
CR3 RXFTCFG LL_USART_ConfigFIFOsThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
tx_threshold – This parameter can be one of the following values:
-
rx_threshold – This parameter can be one of the following values:
-
-
void
LL_USART_EnableInStopMode
(
USART_TypeDef
*
p_usart
)
-
USART enabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_EnableInStopMode
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.
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableInStopMode
(
USART_TypeDef
*
p_usart
)
-
USART disabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_DisableInStopMode
Note
When this function is disabled, USART is not able to wake up the MCU from Stop mode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledInStopMode
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if USART 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_USART_IsEnabledInStopMode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ConfigXfer
(
USART_TypeDef
*
p_usart
,
uint32_t
cr1_config
,
uint32_t
cr2_config
)
-
Configure the USART instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_ConfigXfer
CR1 M1 LL_USART_ConfigXfer
CR1 PCE LL_USART_ConfigXfer
CR1 PS LL_USART_ConfigXfer
CR1 TE LL_USART_ConfigXfer
CR1 RE LL_USART_ConfigXfer
CR1 OVER8 LL_USART_ConfigXfer
CR2 STOP_0 LL_USART_ConfigXfer
CR2 STOP_1 LL_USART_ConfigXfer
CR2 CPOL LL_USART_ConfigXfer
CR2 ABRMODE_0 LL_USART_ConfigXfer
CR2 LBLC LL_USART_ConfigXfer
- Parameters :
-
-
p_usart – USART Instance
-
cr1_config – This parameter must be a combination of the following groups:
-
cr2_config – This parameter must be a combination of the following groups:
-
-
void
LL_USART_EnableDirectionRx
(
USART_TypeDef
*
p_usart
)
-
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_USART_EnableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionRx
(
USART_TypeDef
*
p_usart
)
-
Receiver Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_DisableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionRx
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if the p_usart Receiver is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_IsEnabledDirectionRx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDirectionTx
(
USART_TypeDef
*
p_usart
)
-
Transmitter Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_EnableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionTx
(
USART_TypeDef
*
p_usart
)
-
Transmitter Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_DisableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionTx
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if the p_usart Transmitter is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_IsEnabledDirectionTx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTransferDirection
(
USART_TypeDef
*
p_usart
,
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_USART_SetTransferDirection
CR1 TE LL_USART_SetTransferDirection
- Parameters :
-
-
p_usart – USART Instance
-
transfer_direction – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTransferDirection
(
const
USART_TypeDef
*
p_usart
)
-
Return enabled/disabled states of Transmitter and Receiver.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_GetTransferDirection
CR1 TE LL_USART_GetTransferDirection
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetParity
(
USART_TypeDef
*
p_usart
,
uint32_t
parity
)
-
Configure Parity (enabled/disabled and parity mode if enabled).osition (9th or 8th bit depending on data width) and parity is checked on the received data.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_SetParity
CR1 PCE LL_USART_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 p
- Parameters :
-
-
p_usart – USART Instance
-
parity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetParity
(
const
USART_TypeDef
*
p_usart
)
-
Return Parity configuration (enabled/disabled and parity mode if enabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_GetParity
CR1 PCE LL_USART_GetParity
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetWakeUpMethod
(
USART_TypeDef
*
p_usart
,
uint32_t
method
)
-
Set Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_SetWakeUpMethod
- Parameters :
-
-
p_usart – USART Instance
-
method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetWakeUpMethod
(
const
USART_TypeDef
*
p_usart
)
-
Return Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_GetWakeUpMethod
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetDataWidth
(
USART_TypeDef
*
p_usart
,
uint32_t
data_width
)
-
Set Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_SetDataWidth
CR1 M1 LL_USART_SetDataWidth
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetDataWidth
(
const
USART_TypeDef
*
p_usart
)
-
Return Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_GetDataWidth
CR1 M1 LL_USART_GetDataWidth
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableMuteMode
(
USART_TypeDef
*
p_usart
)
-
Allow switch between Mute Mode and Active mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_EnableMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableMuteMode
(
USART_TypeDef
*
p_usart
)
-
Prevent Mute Mode use. Set Receiver in active mode permanently.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_DisableMuteMode
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledMuteMode
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if switch between Mute Mode and Active mode is allowed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_IsEnabledMuteMode
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetOverSampling
(
USART_TypeDef
*
p_usart
,
uint32_t
over_sampling
)
-
Set Oversampling to 8-bit or 16-bit mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_SetOverSampling
- Parameters :
-
-
p_usart – USART Instance
-
over_sampling – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetOverSampling
(
const
USART_TypeDef
*
p_usart
)
-
Return Oversampling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_GetOverSampling
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetLastClkPulseOutput
(
USART_TypeDef
*
p_usart
,
uint32_t
last_bit_clock_pulse
)
-
Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_SetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
last_bit_clock_pulse – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetLastClkPulseOutput
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_GetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPhase
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_phase
)
-
Select the phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_SetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_phase – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPhase
(
const
USART_TypeDef
*
p_usart
)
-
Return phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_GetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPolarity
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_polarity
)
-
Select the polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_SetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPolarity
(
const
USART_TypeDef
*
p_usart
)
-
Return polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_GetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigClock
(
USART_TypeDef
*
p_usart
,
uint32_t
phase
,
uint32_t
polarity
,
uint32_t
lbcp_output
)
-
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_ConfigClock
CR2 CPOL LL_USART_ConfigClock
CR2 LBCL LL_USART_ConfigClock
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clock Phase configuration using LL_USART_SetClockPhase() function
-
Clock Polarity configuration using LL_USART_SetClockPolarity() function
-
Output of Last bit Clock pulse configuration using LL_USART_SetLastClkPulseOutput() function
- Parameters :
-
-
p_usart – USART Instance
-
phase – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
lbcp_output – This parameter can be one of the following values:
-
-
void
LL_USART_SetPrescaler
(
USART_TypeDef
*
p_usart
,
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_USART_SetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
prescaler_value – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetPrescaler
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve the Clock source prescaler for baudrate generator and oversampling.
- Reference Manual to LL API cross reference (Register Field Functions)
-
PRESC PRESCALER LL_USART_GetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableSCLKOutput
(
USART_TypeDef
*
p_usart
)
-
Enable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_EnableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableSCLKOutput
(
USART_TypeDef
*
p_usart
)
-
Disable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_DisableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledSCLKOutput
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Clock output on SCLK pin is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_IsEnabledSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetStopBitsLength
(
USART_TypeDef
*
p_usart
,
uint32_t
stop_bits
)
-
Set the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_SetStopBitsLength
- Parameters :
-
-
p_usart – USART Instance
-
stop_bits – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetStopBitsLength
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_GetStopBitsLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigCharacter
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigCharacter
CR1 PCE LL_USART_ConfigCharacter
CR1 M0 LL_USART_ConfigCharacter
CR1 M1 LL_USART_ConfigCharacter
CR2 STOP LL_USART_ConfigCharacter
Note
Call of this function is equivalent to following function call sequence :
-
Data Width configuration using LL_USART_SetDataWidth() function
-
Parity Control and mode configuration using LL_USART_SetParity() function
-
Stop bits configuration using LL_USART_SetStopBitsLength() function
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
parity – This parameter can be one of the following values:
-
stop_bits – This parameter can be one of the following values:
-
-
void
LL_USART_SetTXRXSwap
(
USART_TypeDef
*
p_usart
,
uint32_t
swap_config
)
-
Configure TX/RX pins swapping setting.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_SetTXRXSwap
- Parameters :
-
-
p_usart – USART Instance
-
swap_config – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXRXSwap
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve TX/RX pins swapping configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_GetTXRXSwap
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
-
Configure RX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_SetRXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXPinLevel
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve RX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_GetRXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
-
Configure TX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_SetTXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXPinLevel
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve TX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_GetTXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetBinaryDataLogic
(
USART_TypeDef
*
p_usart
,
uint32_t
data_logic
)
-
Configure Binary data logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_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 :
-
-
p_usart – USART Instance
-
data_logic – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetBinaryDataLogic
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve Binary data configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_GetBinaryDataLogic
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTransferBitOrder
(
USART_TypeDef
*
p_usart
,
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_USART_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 :
-
-
p_usart – USART Instance
-
bit_order – This parameter can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
-
uint32_t
LL_USART_GetTransferBitOrder
(
const
USART_TypeDef
*
p_usart
)
-
Return transfer bit order (either Less or Most Significant Bit First)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 MSBFIRST LL_USART_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_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
void
LL_USART_EnableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Enable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_EnableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Disable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_DisableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledAutoBaud
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Auto Baud-Rate Detection mechanism is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_IsEnabledAutoBaud
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetAutoBaudRateMode
(
USART_TypeDef
*
p_usart
,
uint32_t
auto_baud_rate_mode
)
-
Set Auto Baud-Rate mode bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_SetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
auto_baud_rate_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetAutoBaudRateMode
(
const
USART_TypeDef
*
p_usart
)
-
Return Auto Baud-Rate mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_GetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRxTimeout
(
USART_TypeDef
*
p_usart
)
-
Enable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_EnableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRxTimeout
(
USART_TypeDef
*
p_usart
)
-
Disable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_DisableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledRxTimeout
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Receiver Timeout feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_IsEnabledRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
node_address
)
-
Set a 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
-
node_address – 4 or 7 bit Address of the USART node.
-
-
void
LL_USART_SetNodeAddressLength
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
)
-
Set the Address length of the USART node in ADDM7 field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADDM7 LL_USART_SetNodeAddressLength
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_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
-
void
LL_USART_ConfigNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
,
uint32_t
node_address
)
-
Configure Address and Address length of the USART node.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_ConfigNodeAddress
CR2 ADDM7 LL_USART_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 can 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 :
-
-
p_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
node_address – 4 or 7 bit Address of the USART node.
-
-
uint32_t
LL_USART_GetNodeAddress
(
const
USART_TypeDef
*
p_usart
)
-
Return 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
- Return values :
-
Address – of the USART node (Value between Min_Data=0 and Max_Data=255)
-
uint32_t
LL_USART_GetNodeAddressLength
(
const
USART_TypeDef
*
p_usart
)
-
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_USART_GetNodeAddressLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Enable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_EnableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Disable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_DisableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Enable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_EnableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Disable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_DisableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetHWFlowCtrl
(
USART_TypeDef
*
p_usart
,
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_USART_SetHWFlowCtrl
CR3 CTSE LL_USART_SetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
hardware_flow_control – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetHWFlowCtrl
(
const
USART_TypeDef
*
p_usart
)
-
Return HW Flow Control configuration (both CTS and RTS)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_GetHWFlowCtrl
CR3 CTSE LL_USART_GetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableOneBitSample
(
USART_TypeDef
*
p_usart
)
-
Enable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_EnableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOneBitSample
(
USART_TypeDef
*
p_usart
)
-
Disable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_DisableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOneBitSample
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if One bit sampling method is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_IsEnabledOneBitSample
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableOverrunDetect
(
USART_TypeDef
*
p_usart
)
-
Enable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_EnableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOverrunDetect
(
USART_TypeDef
*
p_usart
)
-
Disable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_DisableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOverrunDetect
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Overrun detection is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_IsEnabledOverrunDetect
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetBaudRate
(
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
,
uint32_t
baud_rate
)
-
Configure USART BRR register for achieving expected Baud Rate value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_SetBaudRate
Note
Compute and set USARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values
Note
Peripheral clock and Baud rate values provided as function parameters must be valid (Baud rate value != 0)
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
baud_rate – Baud Rate
-
-
uint32_t
LL_USART_GetBaudRate
(
const
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
)
-
Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_GetBaudRate
Note
In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
- Return values :
-
Baud – Rate
-
void
LL_USART_SetRxTimeout
(
USART_TypeDef
*
p_usart
,
uint32_t
timeout
)
-
Set Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_SetRxTimeout
- Parameters :
-
-
p_usart – USART Instance
-
timeout – Value between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
-
uint32_t
LL_USART_GetRxTimeout
(
const
USART_TypeDef
*
p_usart
)
-
Get Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_GetRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
void
LL_USART_SetBlockLength
(
USART_TypeDef
*
p_usart
,
uint32_t
block_length
)
-
Set Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_SetBlockLength
- Parameters :
-
-
p_usart – USART Instance
-
block_length – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_USART_GetBlockLength
(
const
USART_TypeDef
*
p_usart
)
-
Get Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_GetBlockLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
- group USART_LL_EF_Configuration
-
Functions
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
-
USART Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Enable
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_Disable
(
USART_TypeDef
*
p_usart
)
-
USART Disable (all USART prescalers and outputs are disabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_Disable
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 p_usart ISR register are set to their default values.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabled
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if USART is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UE LL_USART_IsEnabled
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableFIFO
(
USART_TypeDef
*
p_usart
)
-
FIFO Mode Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_EnableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableFIFO
(
USART_TypeDef
*
p_usart
)
-
FIFO Mode Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_DisableFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledFIFO
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if FIFO Mode is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 FIFOEN LL_USART_IsEnabledFIFO
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
-
Configure TX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_SetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
-
Return TX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTCFG LL_USART_GetTXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXFIFOThreshold
(
USART_TypeDef
*
p_usart
,
uint32_t
threshold
)
-
Configure RX FIFO Threshold.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_SetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
threshold – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXFIFOThreshold
(
const
USART_TypeDef
*
p_usart
)
-
Return RX FIFO Threshold Configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTCFG LL_USART_GetRXFIFOThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigFIFOsThreshold
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigFIFOsThreshold
CR3 RXFTCFG LL_USART_ConfigFIFOsThreshold
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
tx_threshold – This parameter can be one of the following values:
-
rx_threshold – This parameter can be one of the following values:
-
-
void
LL_USART_EnableInStopMode
(
USART_TypeDef
*
p_usart
)
-
USART enabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_EnableInStopMode
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.
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableInStopMode
(
USART_TypeDef
*
p_usart
)
-
USART disabled in STOP Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 UESM LL_USART_DisableInStopMode
Note
When this function is disabled, USART is not able to wake up the MCU from Stop mode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledInStopMode
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if USART 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_USART_IsEnabledInStopMode
Note
Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(p_usart) can be used to check whether or not Wake-up from Stop mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ConfigXfer
(
USART_TypeDef
*
p_usart
,
uint32_t
cr1_config
,
uint32_t
cr2_config
)
-
Configure the USART instance.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_ConfigXfer
CR1 M1 LL_USART_ConfigXfer
CR1 PCE LL_USART_ConfigXfer
CR1 PS LL_USART_ConfigXfer
CR1 TE LL_USART_ConfigXfer
CR1 RE LL_USART_ConfigXfer
CR1 OVER8 LL_USART_ConfigXfer
CR2 STOP_0 LL_USART_ConfigXfer
CR2 STOP_1 LL_USART_ConfigXfer
CR2 CPOL LL_USART_ConfigXfer
CR2 ABRMODE_0 LL_USART_ConfigXfer
CR2 LBLC LL_USART_ConfigXfer
- Parameters :
-
-
p_usart – USART Instance
-
cr1_config – This parameter must be a combination of the following groups:
-
cr2_config – This parameter must be a combination of the following groups:
-
-
void
LL_USART_EnableDirectionRx
(
USART_TypeDef
*
p_usart
)
-
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_USART_EnableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionRx
(
USART_TypeDef
*
p_usart
)
-
Receiver Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_DisableDirectionRx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionRx
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if the p_usart Receiver is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_IsEnabledDirectionRx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDirectionTx
(
USART_TypeDef
*
p_usart
)
-
Transmitter Enable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_EnableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDirectionTx
(
USART_TypeDef
*
p_usart
)
-
Transmitter Disable.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_DisableDirectionTx
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDirectionTx
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if the p_usart Transmitter is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TE LL_USART_IsEnabledDirectionTx
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetTransferDirection
(
USART_TypeDef
*
p_usart
,
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_USART_SetTransferDirection
CR1 TE LL_USART_SetTransferDirection
- Parameters :
-
-
p_usart – USART Instance
-
transfer_direction – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTransferDirection
(
const
USART_TypeDef
*
p_usart
)
-
Return enabled/disabled states of Transmitter and Receiver.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RE LL_USART_GetTransferDirection
CR1 TE LL_USART_GetTransferDirection
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetParity
(
USART_TypeDef
*
p_usart
,
uint32_t
parity
)
-
Configure Parity (enabled/disabled and parity mode if enabled).osition (9th or 8th bit depending on data width) and parity is checked on the received data.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_SetParity
CR1 PCE LL_USART_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 p
- Parameters :
-
-
p_usart – USART Instance
-
parity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetParity
(
const
USART_TypeDef
*
p_usart
)
-
Return Parity configuration (enabled/disabled and parity mode if enabled)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PS LL_USART_GetParity
CR1 PCE LL_USART_GetParity
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetWakeUpMethod
(
USART_TypeDef
*
p_usart
,
uint32_t
method
)
-
Set Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_SetWakeUpMethod
- Parameters :
-
-
p_usart – USART Instance
-
method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetWakeUpMethod
(
const
USART_TypeDef
*
p_usart
)
-
Return Receiver Wake Up method from Mute mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 WAKE LL_USART_GetWakeUpMethod
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetDataWidth
(
USART_TypeDef
*
p_usart
,
uint32_t
data_width
)
-
Set Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_SetDataWidth
CR1 M1 LL_USART_SetDataWidth
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetDataWidth
(
const
USART_TypeDef
*
p_usart
)
-
Return Word length (e.g. nb of data bits, excluding start and stop bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 M0 LL_USART_GetDataWidth
CR1 M1 LL_USART_GetDataWidth
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableMuteMode
(
USART_TypeDef
*
p_usart
)
-
Allow switch between Mute Mode and Active mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_EnableMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableMuteMode
(
USART_TypeDef
*
p_usart
)
-
Prevent Mute Mode use. Set Receiver in active mode permanently.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_DisableMuteMode
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledMuteMode
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if switch between Mute Mode and Active mode is allowed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 MME LL_USART_IsEnabledMuteMode
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetOverSampling
(
USART_TypeDef
*
p_usart
,
uint32_t
over_sampling
)
-
Set Oversampling to 8-bit or 16-bit mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_SetOverSampling
- Parameters :
-
-
p_usart – USART Instance
-
over_sampling – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetOverSampling
(
const
USART_TypeDef
*
p_usart
)
-
Return Oversampling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 OVER8 LL_USART_GetOverSampling
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetLastClkPulseOutput
(
USART_TypeDef
*
p_usart
,
uint32_t
last_bit_clock_pulse
)
-
Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_SetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
last_bit_clock_pulse – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetLastClkPulseOutput
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBCL LL_USART_GetLastClkPulseOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPhase
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_phase
)
-
Select the phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_SetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_phase – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPhase
(
const
USART_TypeDef
*
p_usart
)
-
Return phase of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_GetClockPhase
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetClockPolarity
(
USART_TypeDef
*
p_usart
,
uint32_t
clock_polarity
)
-
Select the polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_SetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
clock_polarity – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetClockPolarity
(
const
USART_TypeDef
*
p_usart
)
-
Return polarity of the clock output on the SCLK pin in synchronous mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPOL LL_USART_GetClockPolarity
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigClock
(
USART_TypeDef
*
p_usart
,
uint32_t
phase
,
uint32_t
polarity
,
uint32_t
lbcp_output
)
-
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CPHA LL_USART_ConfigClock
CR2 CPOL LL_USART_ConfigClock
CR2 LBCL LL_USART_ConfigClock
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clock Phase configuration using LL_USART_SetClockPhase() function
-
Clock Polarity configuration using LL_USART_SetClockPolarity() function
-
Output of Last bit Clock pulse configuration using LL_USART_SetLastClkPulseOutput() function
- Parameters :
-
-
p_usart – USART Instance
-
phase – This parameter can be one of the following values:
-
polarity – This parameter can be one of the following values:
-
lbcp_output – This parameter can be one of the following values:
-
-
void
LL_USART_SetPrescaler
(
USART_TypeDef
*
p_usart
,
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_USART_SetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
prescaler_value – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetPrescaler
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve the Clock source prescaler for baudrate generator and oversampling.
- Reference Manual to LL API cross reference (Register Field Functions)
-
PRESC PRESCALER LL_USART_GetPrescaler
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableSCLKOutput
(
USART_TypeDef
*
p_usart
)
-
Enable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_EnableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableSCLKOutput
(
USART_TypeDef
*
p_usart
)
-
Disable Clock output on SCLK pin.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_DisableSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledSCLKOutput
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Clock output on SCLK pin is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_IsEnabledSCLKOutput
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetStopBitsLength
(
USART_TypeDef
*
p_usart
,
uint32_t
stop_bits
)
-
Set the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_SetStopBitsLength
- Parameters :
-
-
p_usart – USART Instance
-
stop_bits – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetStopBitsLength
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve the length of the stop bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 STOP LL_USART_GetStopBitsLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_ConfigCharacter
(
USART_TypeDef
*
p_usart
,
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_USART_ConfigCharacter
CR1 PCE LL_USART_ConfigCharacter
CR1 M0 LL_USART_ConfigCharacter
CR1 M1 LL_USART_ConfigCharacter
CR2 STOP LL_USART_ConfigCharacter
Note
Call of this function is equivalent to following function call sequence :
-
Data Width configuration using LL_USART_SetDataWidth() function
-
Parity Control and mode configuration using LL_USART_SetParity() function
-
Stop bits configuration using LL_USART_SetStopBitsLength() function
- Parameters :
-
-
p_usart – USART Instance
-
data_width – This parameter can be one of the following values:
-
parity – This parameter can be one of the following values:
-
stop_bits – This parameter can be one of the following values:
-
-
void
LL_USART_SetTXRXSwap
(
USART_TypeDef
*
p_usart
,
uint32_t
swap_config
)
-
Configure TX/RX pins swapping setting.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_SetTXRXSwap
- Parameters :
-
-
p_usart – USART Instance
-
swap_config – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXRXSwap
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve TX/RX pins swapping configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 SWAP LL_USART_GetTXRXSwap
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetRXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
-
Configure RX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_SetRXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetRXPinLevel
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve RX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RXINV LL_USART_GetRXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTXPinLevel
(
USART_TypeDef
*
p_usart
,
uint32_t
pin_inv_method
)
-
Configure TX pin active level logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_SetTXPinLevel
- Parameters :
-
-
p_usart – USART Instance
-
pin_inv_method – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetTXPinLevel
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve TX pin active level logic configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 TXINV LL_USART_GetTXPinLevel
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetBinaryDataLogic
(
USART_TypeDef
*
p_usart
,
uint32_t
data_logic
)
-
Configure Binary data logic.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_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 :
-
-
p_usart – USART Instance
-
data_logic – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetBinaryDataLogic
(
const
USART_TypeDef
*
p_usart
)
-
Retrieve Binary data configuration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 DATAINV LL_USART_GetBinaryDataLogic
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_SetTransferBitOrder
(
USART_TypeDef
*
p_usart
,
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_USART_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 :
-
-
p_usart – USART Instance
-
bit_order – This parameter can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
-
uint32_t
LL_USART_GetTransferBitOrder
(
const
USART_TypeDef
*
p_usart
)
-
Return transfer bit order (either Less or Most Significant Bit First)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 MSBFIRST LL_USART_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_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
LL_USART_BITORDER_LSBFIRST
-
LL_USART_BITORDER_MSBFIRST
-
-
void
LL_USART_EnableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Enable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_EnableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Disable Auto Baud-Rate Detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_DisableAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledAutoBaud
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Auto Baud-Rate Detection mechanism is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABREN LL_USART_IsEnabledAutoBaud
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetAutoBaudRateMode
(
USART_TypeDef
*
p_usart
,
uint32_t
auto_baud_rate_mode
)
-
Set Auto Baud-Rate mode bits.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_SetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
auto_baud_rate_mode – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetAutoBaudRateMode
(
const
USART_TypeDef
*
p_usart
)
-
Return Auto Baud-Rate mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ABRMODE LL_USART_GetAutoBaudRateMode
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRxTimeout
(
USART_TypeDef
*
p_usart
)
-
Enable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_EnableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRxTimeout
(
USART_TypeDef
*
p_usart
)
-
Disable Receiver Timeout.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_DisableRxTimeout
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledRxTimeout
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Receiver Timeout feature is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 RTOEN LL_USART_IsEnabledRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
node_address
)
-
Set a 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
-
node_address – 4 or 7 bit Address of the USART node.
-
-
void
LL_USART_SetNodeAddressLength
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
)
-
Set the Address length of the USART node in ADDM7 field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADDM7 LL_USART_SetNodeAddressLength
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_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
-
void
LL_USART_ConfigNodeAddress
(
USART_TypeDef
*
p_usart
,
uint32_t
address_len
,
uint32_t
node_address
)
-
Configure Address and Address length of the USART node.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_ConfigNodeAddress
CR2 ADDM7 LL_USART_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 can 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 :
-
-
p_usart – USART Instance
-
address_len – This parameter can be one of the following values:
-
node_address – 4 or 7 bit Address of the USART node.
-
-
uint32_t
LL_USART_GetNodeAddress
(
const
USART_TypeDef
*
p_usart
)
-
Return 8 bit Address of the USART node as set in ADD field of CR2.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 ADD LL_USART_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_usart – USART Instance
- Return values :
-
Address – of the USART node (Value between Min_Data=0 and Max_Data=255)
-
uint32_t
LL_USART_GetNodeAddressLength
(
const
USART_TypeDef
*
p_usart
)
-
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_USART_GetNodeAddressLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Enable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_EnableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableRTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Disable RTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_DisableRTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Enable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_EnableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableCTSHWFlowCtrl
(
USART_TypeDef
*
p_usart
)
-
Disable CTS HW Flow Control.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSE LL_USART_DisableCTSHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetHWFlowCtrl
(
USART_TypeDef
*
p_usart
,
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_USART_SetHWFlowCtrl
CR3 CTSE LL_USART_SetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
-
p_usart – USART Instance
-
hardware_flow_control – This parameter can be one of the following values:
-
-
uint32_t
LL_USART_GetHWFlowCtrl
(
const
USART_TypeDef
*
p_usart
)
-
Return HW Flow Control configuration (both CTS and RTS)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RTSE LL_USART_GetHWFlowCtrl
CR3 CTSE LL_USART_GetHWFlowCtrl
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_USART_EnableOneBitSample
(
USART_TypeDef
*
p_usart
)
-
Enable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_EnableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOneBitSample
(
USART_TypeDef
*
p_usart
)
-
Disable One bit sampling method.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_DisableOneBitSample
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOneBitSample
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if One bit sampling method is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 ONEBIT LL_USART_IsEnabledOneBitSample
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableOverrunDetect
(
USART_TypeDef
*
p_usart
)
-
Enable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_EnableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableOverrunDetect
(
USART_TypeDef
*
p_usart
)
-
Disable Overrun detection.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_DisableOverrunDetect
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledOverrunDetect
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if Overrun detection is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 OVRDIS LL_USART_IsEnabledOverrunDetect
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_SetBaudRate
(
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
,
uint32_t
baud_rate
)
-
Configure USART BRR register for achieving expected Baud Rate value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_SetBaudRate
Note
Compute and set USARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values
Note
Peripheral clock and Baud rate values provided as function parameters must be valid (Baud rate value != 0)
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
baud_rate – Baud Rate
-
-
uint32_t
LL_USART_GetBaudRate
(
const
USART_TypeDef
*
p_usart
,
uint32_t
periph_clk
,
uint32_t
prescaler_value
,
uint32_t
over_sampling
)
-
Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
BRR BRR LL_USART_GetBaudRate
Note
In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.
Note
In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d.
- Parameters :
-
-
p_usart – USART Instance
-
periph_clk – Peripheral Clock
-
prescaler_value – This parameter can be one of the following values:
-
over_sampling – This parameter can be one of the following values:
-
- Return values :
-
Baud – Rate
-
void
LL_USART_SetRxTimeout
(
USART_TypeDef
*
p_usart
,
uint32_t
timeout
)
-
Set Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_SetRxTimeout
- Parameters :
-
-
p_usart – USART Instance
-
timeout – Value between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
-
uint32_t
LL_USART_GetRxTimeout
(
const
USART_TypeDef
*
p_usart
)
-
Get Receiver Time Out Value (expressed in nb of bits duration)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR RTO LL_USART_GetRxTimeout
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x00FFFFFF
-
void
LL_USART_SetBlockLength
(
USART_TypeDef
*
p_usart
,
uint32_t
block_length
)
-
Set Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_SetBlockLength
- Parameters :
-
-
p_usart – USART Instance
-
block_length – Value between Min_Data=0x00 and Max_Data=0xFF
-
-
uint32_t
LL_USART_GetBlockLength
(
const
USART_TypeDef
*
p_usart
)
-
Get Block Length value in reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTOR BLEN LL_USART_GetBlockLength
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
void
LL_USART_Enable
(
USART_TypeDef
*
p_usart
)
Advanced Configurations services ¶
- group USART_LL_EF_AdvancedConfiguration
-
Functions
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Asynchronous Mode (UART)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigAsyncMode
CR2 CLKEN LL_USART_ConfigAsyncMode
CR3 SCEN LL_USART_ConfigAsyncMode
CR3 IREN LL_USART_ConfigAsyncMode
CR3 HDSEL LL_USART_ConfigAsyncMode
Note
In UART mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Asynchronous Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncMasterMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Synchronous Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMode
CR2 CLKEN LL_USART_ConfigSyncMode
CR3 SCEN LL_USART_ConfigSyncMode
CR3 IREN LL_USART_ConfigSyncMode
CR3 HDSEL LL_USART_ConfigSyncMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncSlaveMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Synchronous Slave Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMasterMode
CR2 CLKEN LL_USART_ConfigSyncMasterMode
CR3 SCEN LL_USART_ConfigSyncMasterMode
CR3 IREN LL_USART_ConfigSyncMasterMode
CR3 HDSEL LL_USART_ConfigSyncMasterMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigLINMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in LIN Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_ConfigLINMode
CR2 STOP LL_USART_ConfigLINMode
CR2 LINEN LL_USART_ConfigLINMode
CR3 IREN LL_USART_ConfigLINMode
CR3 SCEN LL_USART_ConfigLINMode
CR3 HDSEL LL_USART_ConfigLINMode
Note
In LIN mode, the following bits must be kept cleared:
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also set the UART/USART in LIN mode.
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set LINEN in CR2 using LL_USART_EnableLIN() function
Note
Other remaining configurations items related to LIN Mode (as Baud Rate, Word length, LIN Break Detection Length, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigHalfDuplexMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Half Duplex Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigHalfDuplexMode
CR2 CLKEN LL_USART_ConfigHalfDuplexMode
CR3 HDSEL LL_USART_ConfigHalfDuplexMode
CR3 SCEN LL_USART_ConfigHalfDuplexMode
CR3 IREN LL_USART_ConfigHalfDuplexMode
Note
In Half Duplex mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register, This function also sets the UART/USART in Half Duplex mode.
Note
Macro IS_UART_HALFDUPLEX_INSTANCE(p_usart) can be used to check whether or not Half-Duplex mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Set HDSEL in CR3 using LL_USART_EnableHalfDuplex() function
Note
Other remaining configurations items related to Half Duplex Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSmartcardMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Smartcard Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSmartcardMode
CR2 STOP LL_USART_ConfigSmartcardMode
CR2 CLKEN LL_USART_ConfigSmartcardMode
CR3 HDSEL LL_USART_ConfigSmartcardMode
CR3 SCEN LL_USART_ConfigSmartcardMode
Note
In Smartcard mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also configures Stop bits to 1.5 bits and sets the USART in Smartcard mode (SCEN bit). Clock Output is also enabled (CLKEN).
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
-
Set SCEN in CR3 using LL_USART_EnableSmartcard() function
Note
Other remaining configurations items related to Smartcard Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigIrdaMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Irda Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigIrdaMode
CR2 CLKEN LL_USART_ConfigIrdaMode
CR2 STOP LL_USART_ConfigIrdaMode
CR3 SCEN LL_USART_ConfigIrdaMode
CR3 HDSEL LL_USART_ConfigIrdaMode
CR3 IREN LL_USART_ConfigIrdaMode
Note
In IRDA mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the UART/USART in IRDA mode (IREN bit).
Note
Macro IS_IRDA_INSTANCE(p_usart) can be used to check whether or not IrDA feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set IREN in CR3 using LL_USART_EnableIrda() function
Note
Other remaining configurations items related to Irda Mode (as Baud Rate, Word length, Power mode, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigMultiProcessMode
(
USART_TypeDef
*
p_usart
)
¶
-
Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigMultiProcessMode
CR2 CLKEN LL_USART_ConfigMultiProcessMode
CR3 SCEN LL_USART_ConfigMultiProcessMode
CR3 HDSEL LL_USART_ConfigMultiProcessMode
CR3 IREN LL_USART_ConfigMultiProcessMode
Note
In MultiProcessor mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Multi processor Mode (as Baud Rate, Wake Up Method, Node address, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
¶
- group USART_LL_EF_AdvancedConfiguration
-
Functions
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Asynchronous Mode (UART)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigAsyncMode
CR2 CLKEN LL_USART_ConfigAsyncMode
CR3 SCEN LL_USART_ConfigAsyncMode
CR3 IREN LL_USART_ConfigAsyncMode
CR3 HDSEL LL_USART_ConfigAsyncMode
Note
In UART mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Asynchronous Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncMasterMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Synchronous Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMode
CR2 CLKEN LL_USART_ConfigSyncMode
CR3 SCEN LL_USART_ConfigSyncMode
CR3 IREN LL_USART_ConfigSyncMode
CR3 HDSEL LL_USART_ConfigSyncMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncSlaveMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Synchronous Slave Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMasterMode
CR2 CLKEN LL_USART_ConfigSyncMasterMode
CR3 SCEN LL_USART_ConfigSyncMasterMode
CR3 IREN LL_USART_ConfigSyncMasterMode
CR3 HDSEL LL_USART_ConfigSyncMasterMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigLINMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in LIN Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_ConfigLINMode
CR2 STOP LL_USART_ConfigLINMode
CR2 LINEN LL_USART_ConfigLINMode
CR3 IREN LL_USART_ConfigLINMode
CR3 SCEN LL_USART_ConfigLINMode
CR3 HDSEL LL_USART_ConfigLINMode
Note
In LIN mode, the following bits must be kept cleared:
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also set the UART/USART in LIN mode.
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set LINEN in CR2 using LL_USART_EnableLIN() function
Note
Other remaining configurations items related to LIN Mode (as Baud Rate, Word length, LIN Break Detection Length, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigHalfDuplexMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Half Duplex Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigHalfDuplexMode
CR2 CLKEN LL_USART_ConfigHalfDuplexMode
CR3 HDSEL LL_USART_ConfigHalfDuplexMode
CR3 SCEN LL_USART_ConfigHalfDuplexMode
CR3 IREN LL_USART_ConfigHalfDuplexMode
Note
In Half Duplex mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register, This function also sets the UART/USART in Half Duplex mode.
Note
Macro IS_UART_HALFDUPLEX_INSTANCE(p_usart) can be used to check whether or not Half-Duplex mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Set HDSEL in CR3 using LL_USART_EnableHalfDuplex() function
Note
Other remaining configurations items related to Half Duplex Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSmartcardMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Smartcard Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSmartcardMode
CR2 STOP LL_USART_ConfigSmartcardMode
CR2 CLKEN LL_USART_ConfigSmartcardMode
CR3 HDSEL LL_USART_ConfigSmartcardMode
CR3 SCEN LL_USART_ConfigSmartcardMode
Note
In Smartcard mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also configures Stop bits to 1.5 bits and sets the USART in Smartcard mode (SCEN bit). Clock Output is also enabled (CLKEN).
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
-
Set SCEN in CR3 using LL_USART_EnableSmartcard() function
Note
Other remaining configurations items related to Smartcard Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigIrdaMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Irda Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigIrdaMode
CR2 CLKEN LL_USART_ConfigIrdaMode
CR2 STOP LL_USART_ConfigIrdaMode
CR3 SCEN LL_USART_ConfigIrdaMode
CR3 HDSEL LL_USART_ConfigIrdaMode
CR3 IREN LL_USART_ConfigIrdaMode
Note
In IRDA mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the UART/USART in IRDA mode (IREN bit).
Note
Macro IS_IRDA_INSTANCE(p_usart) can be used to check whether or not IrDA feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set IREN in CR3 using LL_USART_EnableIrda() function
Note
Other remaining configurations items related to Irda Mode (as Baud Rate, Word length, Power mode, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigMultiProcessMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigMultiProcessMode
CR2 CLKEN LL_USART_ConfigMultiProcessMode
CR3 SCEN LL_USART_ConfigMultiProcessMode
CR3 HDSEL LL_USART_ConfigMultiProcessMode
CR3 IREN LL_USART_ConfigMultiProcessMode
Note
In MultiProcessor mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Multi processor Mode (as Baud Rate, Wake Up Method, Node address, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
- group USART_LL_EF_AdvancedConfiguration
-
Functions
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Asynchronous Mode (UART)
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigAsyncMode
CR2 CLKEN LL_USART_ConfigAsyncMode
CR3 SCEN LL_USART_ConfigAsyncMode
CR3 IREN LL_USART_ConfigAsyncMode
CR3 HDSEL LL_USART_ConfigAsyncMode
Note
In UART mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Asynchronous Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncMasterMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Synchronous Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMode
CR2 CLKEN LL_USART_ConfigSyncMode
CR3 SCEN LL_USART_ConfigSyncMode
CR3 IREN LL_USART_ConfigSyncMode
CR3 HDSEL LL_USART_ConfigSyncMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSyncSlaveMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Synchronous Slave Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSyncMasterMode
CR2 CLKEN LL_USART_ConfigSyncMasterMode
CR3 SCEN LL_USART_ConfigSyncMasterMode
CR3 IREN LL_USART_ConfigSyncMasterMode
CR3 HDSEL LL_USART_ConfigSyncMasterMode
Note
In Synchronous mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the USART in Synchronous mode.
Note
Macro IS_USART_INSTANCE(p_usart) can be used to check whether or not Synchronous mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
Note
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigLINMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in LIN Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 CLKEN LL_USART_ConfigLINMode
CR2 STOP LL_USART_ConfigLINMode
CR2 LINEN LL_USART_ConfigLINMode
CR3 IREN LL_USART_ConfigLINMode
CR3 SCEN LL_USART_ConfigLINMode
CR3 HDSEL LL_USART_ConfigLINMode
Note
In LIN mode, the following bits must be kept cleared:
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also set the UART/USART in LIN mode.
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Set LINEN in CR2 using LL_USART_EnableLIN() function
Note
Other remaining configurations items related to LIN Mode (as Baud Rate, Word length, LIN Break Detection Length, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigHalfDuplexMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Half Duplex Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigHalfDuplexMode
CR2 CLKEN LL_USART_ConfigHalfDuplexMode
CR3 HDSEL LL_USART_ConfigHalfDuplexMode
CR3 SCEN LL_USART_ConfigHalfDuplexMode
CR3 IREN LL_USART_ConfigHalfDuplexMode
Note
In Half Duplex mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register, This function also sets the UART/USART in Half Duplex mode.
Note
Macro IS_UART_HALFDUPLEX_INSTANCE(p_usart) can be used to check whether or not Half-Duplex mode is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Set HDSEL in CR3 using LL_USART_EnableHalfDuplex() function
Note
Other remaining configurations items related to Half Duplex Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigSmartcardMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Smartcard Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigSmartcardMode
CR2 STOP LL_USART_ConfigSmartcardMode
CR2 CLKEN LL_USART_ConfigSmartcardMode
CR3 HDSEL LL_USART_ConfigSmartcardMode
CR3 SCEN LL_USART_ConfigSmartcardMode
Note
In Smartcard mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also configures Stop bits to 1.5 bits and sets the USART in Smartcard mode (SCEN bit). Clock Output is also enabled (CLKEN).
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function
-
Set SCEN in CR3 using LL_USART_EnableSmartcard() function
Note
Other remaining configurations items related to Smartcard Mode (as Baud Rate, Word length, Parity, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigIrdaMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Irda Mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigIrdaMode
CR2 CLKEN LL_USART_ConfigIrdaMode
CR2 STOP LL_USART_ConfigIrdaMode
CR3 SCEN LL_USART_ConfigIrdaMode
CR3 HDSEL LL_USART_ConfigIrdaMode
CR3 IREN LL_USART_ConfigIrdaMode
Note
In IRDA mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
STOP and CLKEN bits in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register. This function also sets the UART/USART in IRDA mode (IREN bit).
Note
Macro IS_IRDA_INSTANCE(p_usart) can be used to check whether or not IrDA feature is supported by the p_usart instance.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
-
Configure STOP in CR2 using LL_USART_SetStopBitsLength() function
-
Set IREN in CR3 using LL_USART_EnableIrda() function
Note
Other remaining configurations items related to Irda Mode (as Baud Rate, Word length, Power mode, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigMultiProcessMode
(
USART_TypeDef
*
p_usart
)
-
Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs).
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LINEN LL_USART_ConfigMultiProcessMode
CR2 CLKEN LL_USART_ConfigMultiProcessMode
CR3 SCEN LL_USART_ConfigMultiProcessMode
CR3 HDSEL LL_USART_ConfigMultiProcessMode
CR3 IREN LL_USART_ConfigMultiProcessMode
Note
In MultiProcessor mode, the following bits must be kept cleared:
-
LINEN bit in the USART_CR2 register,
-
CLKEN bit in the USART_CR2 register,
-
SCEN bit in the USART_CR3 register,
-
IREN bit in the USART_CR3 register,
-
HDSEL bit in the USART_CR3 register.
Note
Call of this function is equivalent to following function call sequence :
-
Clear LINEN in CR2 using LL_USART_DisableLIN() function
-
Clear CLKEN in CR2 using LL_USART_DisableSCLKOutput() function
-
Clear SCEN in CR3 using LL_USART_DisableSmartcard() function
-
Clear IREN in CR3 using LL_USART_DisableIrda() function
-
Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function
Note
Other remaining configurations items related to Multi processor Mode (as Baud Rate, Wake Up Method, Node address, …) must be set using dedicated functions
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ConfigAsyncMode
(
USART_TypeDef
*
p_usart
)
FLAG_Management ¶
- group USART_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Check if the USART Flag Mask is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag
ISR FE LL_USART_IsActiveFlag
ISR NE LL_USART_IsActiveFlag
ISR ORE LL_USART_IsActiveFlag
ISR IDLE LL_USART_IsActiveFlag
ISR RXNE_RXFNE LL_USART_IsActiveFlag
ISR TC LL_USART_IsActiveFlag
ISR TXE_TXFNF LL_USART_IsActiveFlag
ISR LBDF LL_USART_IsActiveFlag
ISR CTSIF LL_USART_IsActiveFlag
ISR CTS LL_USART_IsActiveFlag
ISR RTOF LL_USART_IsActiveFlag
ISR EOBF LL_USART_IsActiveFlag
ISR UDR LL_USART_IsActiveFlag
ISR ABRE LL_USART_IsActiveFlag
ISR ABRF LL_USART_IsActiveFlag
ISR BUSY LL_USART_IsActiveFlag
ISR CMF LL_USART_IsActiveFlag
ISR SBKF LL_USART_IsActiveFlag
ISR RWU LL_USART_IsActiveFlag
ISR TEACK LL_USART_IsActiveFlag
ISR REACK LL_USART_IsActiveFlag
ISR TXFE LL_USART_IsActiveFlag
ISR RXFF LL_USART_IsActiveFlag
ISR TCBGT LL_USART_IsActiveFlag
ISR TXFT LL_USART_IsActiveFlag
ISR RXFT LL_USART_IsActiveFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_PE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Parity Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_FE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Framing Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR FE LL_USART_IsActiveFlag_FE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_NE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Noise error detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR NE LL_USART_IsActiveFlag_NE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ORE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART OverRun Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ORE LL_USART_IsActiveFlag_ORE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_IDLE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART IDLE line detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR IDLE LL_USART_IsActiveFlag_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Read Data Register or USART RX FIFO Not Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXNE_RXFNE LL_USART_IsActiveFlag_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TC
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Transmission Complete Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TC LL_USART_IsActiveFlag_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Transmit Data Register Empty or USART TX FIFO Not Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXE_TXFNF LL_USART_IsActiveFlag_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_LBD
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART LIN Break Detection Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR LBDF LL_USART_IsActiveFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_nCTS
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART CTS interrupt Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTSIF LL_USART_IsActiveFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CTS
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART CTS Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTS LL_USART_IsActiveFlag_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RTO
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Receiver Time Out Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RTOF LL_USART_IsActiveFlag_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_EOB
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART End Of Block Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EOBF LL_USART_IsActiveFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_UDR
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the SPI Slave Underrun error flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UDR LL_USART_IsActiveFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABRE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Auto-Baud Rate Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRE LL_USART_IsActiveFlag_ABRE
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABR
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Auto-Baud Rate Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRF LL_USART_IsActiveFlag_ABR
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_BUSY
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Busy Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR BUSY LL_USART_IsActiveFlag_BUSY
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CM
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Character Match Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMF LL_USART_IsActiveFlag_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_SBK
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Send Break Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR SBKF LL_USART_IsActiveFlag_SBK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RWU
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Receive Wake Up from mute mode Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RWU LL_USART_IsActiveFlag_RWU
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TEACK
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Transmit Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TEACK LL_USART_IsActiveFlag_TEACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_REACK
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Receive Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REACK LL_USART_IsActiveFlag_REACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART TX FIFO Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFE LL_USART_IsActiveFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFF
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART RX FIFO Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFF LL_USART_IsActiveFlag_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TCBGT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the Smartcard Transmission Complete Before Guard Time Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TCBGT LL_USART_IsActiveFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART TX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFT LL_USART_IsActiveFlag_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART RX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFT LL_USART_IsActiveFlag_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ClearFlag
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Clear the Flag Mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_ClearFlag
ISR FE LL_USART_ClearFlag
ISR NE LL_USART_ClearFlag
ISR ORE LL_USART_ClearFlag
ISR IDLE LL_USART_ClearFlag
ISR TC LL_USART_ClearFlag
ISR LBDF LL_USART_ClearFlag
ISR CTS LL_USART_ClearFlag
ISR RTOF LL_USART_ClearFlag
ISR EOBF LL_USART_ClearFlag
ISR UDR LL_USART_ClearFlag
ISR CMF LL_USART_ClearFlag
ISR TXFE LL_USART_ClearFlag
ISR TCBGT LL_USART_ClearFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
-
void
LL_USART_ClearFlag_PE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Parity Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR PECF LL_USART_ClearFlag_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_FE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Framing Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR FECF LL_USART_ClearFlag_FE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_NE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Noise Error detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR NECF LL_USART_ClearFlag_NE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_ORE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear OverRun Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ORECF LL_USART_ClearFlag_ORE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_IDLE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear IDLE line detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR IDLECF LL_USART_ClearFlag_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TXFE
(
USART_TypeDef
*
p_usart
)
¶
-
Clear TX FIFO Empty Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TXFECF LL_USART_ClearFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TC
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Transmission Complete Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCCF LL_USART_ClearFlag_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TCBGT
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Smartcard Transmission Complete Before Guard Time Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCBGTCF LL_USART_ClearFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_LBD
(
USART_TypeDef
*
p_usart
)
¶
-
Clear LIN Break Detection Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR LBDCF LL_USART_ClearFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_nCTS
(
USART_TypeDef
*
p_usart
)
¶
-
Clear CTS Interrupt Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CTSCF LL_USART_ClearFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_RTO
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Receiver Time Out Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR RTOCF LL_USART_ClearFlag_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_EOB
(
USART_TypeDef
*
p_usart
)
¶
-
Clear End Of Block Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EOBCF LL_USART_ClearFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_UDR
(
USART_TypeDef
*
p_usart
)
¶
-
Clear SPI Slave Underrun Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UDRCF LL_USART_ClearFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_CM
(
USART_TypeDef
*
p_usart
)
¶
-
Clear Character Match Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMCF LL_USART_ClearFlag_CM
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
- group USART_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Check if the USART Flag Mask is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag
ISR FE LL_USART_IsActiveFlag
ISR NE LL_USART_IsActiveFlag
ISR ORE LL_USART_IsActiveFlag
ISR IDLE LL_USART_IsActiveFlag
ISR RXNE_RXFNE LL_USART_IsActiveFlag
ISR TC LL_USART_IsActiveFlag
ISR TXE_TXFNF LL_USART_IsActiveFlag
ISR LBDF LL_USART_IsActiveFlag
ISR CTSIF LL_USART_IsActiveFlag
ISR CTS LL_USART_IsActiveFlag
ISR RTOF LL_USART_IsActiveFlag
ISR EOBF LL_USART_IsActiveFlag
ISR UDR LL_USART_IsActiveFlag
ISR ABRE LL_USART_IsActiveFlag
ISR ABRF LL_USART_IsActiveFlag
ISR BUSY LL_USART_IsActiveFlag
ISR CMF LL_USART_IsActiveFlag
ISR SBKF LL_USART_IsActiveFlag
ISR RWU LL_USART_IsActiveFlag
ISR TEACK LL_USART_IsActiveFlag
ISR REACK LL_USART_IsActiveFlag
ISR TXFE LL_USART_IsActiveFlag
ISR RXFF LL_USART_IsActiveFlag
ISR TCBGT LL_USART_IsActiveFlag
ISR TXFT LL_USART_IsActiveFlag
ISR RXFT LL_USART_IsActiveFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_PE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Parity Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_FE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Framing Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR FE LL_USART_IsActiveFlag_FE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_NE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Noise error detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR NE LL_USART_IsActiveFlag_NE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ORE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART OverRun Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ORE LL_USART_IsActiveFlag_ORE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_IDLE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART IDLE line detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR IDLE LL_USART_IsActiveFlag_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Read Data Register or USART RX FIFO Not Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXNE_RXFNE LL_USART_IsActiveFlag_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TC
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmission Complete Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TC LL_USART_IsActiveFlag_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmit Data Register Empty or USART TX FIFO Not Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXE_TXFNF LL_USART_IsActiveFlag_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_LBD
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART LIN Break Detection Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR LBDF LL_USART_IsActiveFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_nCTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS interrupt Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTSIF LL_USART_IsActiveFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTS LL_USART_IsActiveFlag_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RTO
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receiver Time Out Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RTOF LL_USART_IsActiveFlag_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_EOB
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART End Of Block Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EOBF LL_USART_IsActiveFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_UDR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the SPI Slave Underrun error flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UDR LL_USART_IsActiveFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABRE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Auto-Baud Rate Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRE LL_USART_IsActiveFlag_ABRE
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Auto-Baud Rate Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRF LL_USART_IsActiveFlag_ABR
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_BUSY
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Busy Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR BUSY LL_USART_IsActiveFlag_BUSY
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CM
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Character Match Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMF LL_USART_IsActiveFlag_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_SBK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Send Break Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR SBKF LL_USART_IsActiveFlag_SBK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RWU
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receive Wake Up from mute mode Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RWU LL_USART_IsActiveFlag_RWU
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TEACK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmit Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TEACK LL_USART_IsActiveFlag_TEACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_REACK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receive Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REACK LL_USART_IsActiveFlag_REACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFE LL_USART_IsActiveFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFF LL_USART_IsActiveFlag_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TCBGT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the Smartcard Transmission Complete Before Guard Time Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TCBGT LL_USART_IsActiveFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFT LL_USART_IsActiveFlag_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFT LL_USART_IsActiveFlag_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ClearFlag
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Clear the Flag Mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_ClearFlag
ISR FE LL_USART_ClearFlag
ISR NE LL_USART_ClearFlag
ISR ORE LL_USART_ClearFlag
ISR IDLE LL_USART_ClearFlag
ISR TC LL_USART_ClearFlag
ISR LBDF LL_USART_ClearFlag
ISR CTS LL_USART_ClearFlag
ISR RTOF LL_USART_ClearFlag
ISR EOBF LL_USART_ClearFlag
ISR UDR LL_USART_ClearFlag
ISR CMF LL_USART_ClearFlag
ISR TXFE LL_USART_ClearFlag
ISR TCBGT LL_USART_ClearFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
-
void
LL_USART_ClearFlag_PE
(
USART_TypeDef
*
p_usart
)
-
Clear Parity Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR PECF LL_USART_ClearFlag_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_FE
(
USART_TypeDef
*
p_usart
)
-
Clear Framing Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR FECF LL_USART_ClearFlag_FE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_NE
(
USART_TypeDef
*
p_usart
)
-
Clear Noise Error detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR NECF LL_USART_ClearFlag_NE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_ORE
(
USART_TypeDef
*
p_usart
)
-
Clear OverRun Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ORECF LL_USART_ClearFlag_ORE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_IDLE
(
USART_TypeDef
*
p_usart
)
-
Clear IDLE line detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR IDLECF LL_USART_ClearFlag_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TXFE
(
USART_TypeDef
*
p_usart
)
-
Clear TX FIFO Empty Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TXFECF LL_USART_ClearFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TC
(
USART_TypeDef
*
p_usart
)
-
Clear Transmission Complete Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCCF LL_USART_ClearFlag_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Clear Smartcard Transmission Complete Before Guard Time Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCBGTCF LL_USART_ClearFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_LBD
(
USART_TypeDef
*
p_usart
)
-
Clear LIN Break Detection Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR LBDCF LL_USART_ClearFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_nCTS
(
USART_TypeDef
*
p_usart
)
-
Clear CTS Interrupt Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CTSCF LL_USART_ClearFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_RTO
(
USART_TypeDef
*
p_usart
)
-
Clear Receiver Time Out Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR RTOCF LL_USART_ClearFlag_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_EOB
(
USART_TypeDef
*
p_usart
)
-
Clear End Of Block Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EOBCF LL_USART_ClearFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_UDR
(
USART_TypeDef
*
p_usart
)
-
Clear SPI Slave Underrun Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UDRCF LL_USART_ClearFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_CM
(
USART_TypeDef
*
p_usart
)
-
Clear Character Match Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMCF LL_USART_ClearFlag_CM
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
- group USART_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Check if the USART Flag Mask is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag
ISR FE LL_USART_IsActiveFlag
ISR NE LL_USART_IsActiveFlag
ISR ORE LL_USART_IsActiveFlag
ISR IDLE LL_USART_IsActiveFlag
ISR RXNE_RXFNE LL_USART_IsActiveFlag
ISR TC LL_USART_IsActiveFlag
ISR TXE_TXFNF LL_USART_IsActiveFlag
ISR LBDF LL_USART_IsActiveFlag
ISR CTSIF LL_USART_IsActiveFlag
ISR CTS LL_USART_IsActiveFlag
ISR RTOF LL_USART_IsActiveFlag
ISR EOBF LL_USART_IsActiveFlag
ISR UDR LL_USART_IsActiveFlag
ISR ABRE LL_USART_IsActiveFlag
ISR ABRF LL_USART_IsActiveFlag
ISR BUSY LL_USART_IsActiveFlag
ISR CMF LL_USART_IsActiveFlag
ISR SBKF LL_USART_IsActiveFlag
ISR RWU LL_USART_IsActiveFlag
ISR TEACK LL_USART_IsActiveFlag
ISR REACK LL_USART_IsActiveFlag
ISR TXFE LL_USART_IsActiveFlag
ISR RXFF LL_USART_IsActiveFlag
ISR TCBGT LL_USART_IsActiveFlag
ISR TXFT LL_USART_IsActiveFlag
ISR RXFT LL_USART_IsActiveFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_PE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Parity Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_IsActiveFlag_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_FE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Framing Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR FE LL_USART_IsActiveFlag_FE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_NE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Noise error detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR NE LL_USART_IsActiveFlag_NE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ORE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART OverRun Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ORE LL_USART_IsActiveFlag_ORE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_IDLE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART IDLE line detected Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR IDLE LL_USART_IsActiveFlag_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Read Data Register or USART RX FIFO Not Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXNE_RXFNE LL_USART_IsActiveFlag_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TC
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmission Complete Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TC LL_USART_IsActiveFlag_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmit Data Register Empty or USART TX FIFO Not Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXE_TXFNF LL_USART_IsActiveFlag_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_LBD
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART LIN Break Detection Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR LBDF LL_USART_IsActiveFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_nCTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS interrupt Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTSIF LL_USART_IsActiveFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CTS LL_USART_IsActiveFlag_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RTO
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receiver Time Out Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RTOF LL_USART_IsActiveFlag_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_EOB
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART End Of Block Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR EOBF LL_USART_IsActiveFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_UDR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the SPI Slave Underrun error flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR UDR LL_USART_IsActiveFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABRE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Auto-Baud Rate Error Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRE LL_USART_IsActiveFlag_ABRE
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_ABR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Auto-Baud Rate Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR ABRF LL_USART_IsActiveFlag_ABR
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_BUSY
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Busy Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR BUSY LL_USART_IsActiveFlag_BUSY
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_CM
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Character Match Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR CMF LL_USART_IsActiveFlag_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_SBK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Send Break Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR SBKF LL_USART_IsActiveFlag_SBK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RWU
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receive Wake Up from mute mode Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RWU LL_USART_IsActiveFlag_RWU
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TEACK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmit Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TEACK LL_USART_IsActiveFlag_TEACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_REACK
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receive Enable Acknowledge Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR REACK LL_USART_IsActiveFlag_REACK
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Empty Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFE LL_USART_IsActiveFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Full Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFF LL_USART_IsActiveFlag_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TCBGT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the Smartcard Transmission Complete Before Guard Time Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TCBGT LL_USART_IsActiveFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_TXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR TXFT LL_USART_IsActiveFlag_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsActiveFlag_RXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Threshold Flag is set or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR RXFT LL_USART_IsActiveFlag_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_ClearFlag
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Clear the Flag Mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ISR PE LL_USART_ClearFlag
ISR FE LL_USART_ClearFlag
ISR NE LL_USART_ClearFlag
ISR ORE LL_USART_ClearFlag
ISR IDLE LL_USART_ClearFlag
ISR TC LL_USART_ClearFlag
ISR LBDF LL_USART_ClearFlag
ISR CTS LL_USART_ClearFlag
ISR RTOF LL_USART_ClearFlag
ISR EOBF LL_USART_ClearFlag
ISR UDR LL_USART_ClearFlag
ISR CMF LL_USART_ClearFlag
ISR TXFE LL_USART_ClearFlag
ISR TCBGT LL_USART_ClearFlag
- Parameters :
-
-
p_usart – USART Instance
-
mask – Mask to tests
-
-
void
LL_USART_ClearFlag_PE
(
USART_TypeDef
*
p_usart
)
-
Clear Parity Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR PECF LL_USART_ClearFlag_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_FE
(
USART_TypeDef
*
p_usart
)
-
Clear Framing Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR FECF LL_USART_ClearFlag_FE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_NE
(
USART_TypeDef
*
p_usart
)
-
Clear Noise Error detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR NECF LL_USART_ClearFlag_NE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_ORE
(
USART_TypeDef
*
p_usart
)
-
Clear OverRun Error Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR ORECF LL_USART_ClearFlag_ORE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_IDLE
(
USART_TypeDef
*
p_usart
)
-
Clear IDLE line detected Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR IDLECF LL_USART_ClearFlag_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TXFE
(
USART_TypeDef
*
p_usart
)
-
Clear TX FIFO Empty Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TXFECF LL_USART_ClearFlag_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TC
(
USART_TypeDef
*
p_usart
)
-
Clear Transmission Complete Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCCF LL_USART_ClearFlag_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Clear Smartcard Transmission Complete Before Guard Time Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR TCBGTCF LL_USART_ClearFlag_TCBGT
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_LBD
(
USART_TypeDef
*
p_usart
)
-
Clear LIN Break Detection Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR LBDCF LL_USART_ClearFlag_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_nCTS
(
USART_TypeDef
*
p_usart
)
-
Clear CTS Interrupt Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CTSCF LL_USART_ClearFlag_nCTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_RTO
(
USART_TypeDef
*
p_usart
)
-
Clear Receiver Time Out Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR RTOCF LL_USART_ClearFlag_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_EOB
(
USART_TypeDef
*
p_usart
)
-
Clear End Of Block Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR EOBCF LL_USART_ClearFlag_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_UDR
(
USART_TypeDef
*
p_usart
)
-
Clear SPI Slave Underrun Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR UDRCF LL_USART_ClearFlag_UDR
Note
Macro IS_UART_SPI_SLAVE_INSTANCE(p_usart) can be used to check whether or not SPI Slave mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_ClearFlag_CM
(
USART_TypeDef
*
p_usart
)
-
Clear Character Match Flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
ICR CMCF LL_USART_ClearFlag_CM
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsActiveFlag
(
const
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
IT_Management ¶
- group USART_LL_EF_IT_Management
-
Functions
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Enable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_CR1
CR1 TCIE LL_USART_EnableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_CR1
CR1 PEIE LL_USART_EnableIT_CR1
CR1 CMIE LL_USART_EnableIT_CR1
CR1 RTOIE LL_USART_EnableIT_CR1
CR1 EOBIE LL_USART_EnableIT_CR1
CR1 TXFEIE LL_USART_EnableIT_CR1
CR1 RXFFIE LL_USART_EnableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_IDLE
(
USART_TypeDef
*
p_usart
)
¶
-
Enable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
¶
-
Enable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TC
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_EnableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
¶
-
Enable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_PE
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_EnableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CM
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_EnableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RTO
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_EnableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_EOB
(
USART_TypeDef
*
p_usart
)
¶
-
Enable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_EnableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFE
(
USART_TypeDef
*
p_usart
)
¶
-
Enable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_EnableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFF
(
USART_TypeDef
*
p_usart
)
¶
-
Enable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_EnableIT_RXFF
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Enable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_LBD
(
USART_TypeDef
*
p_usart
)
¶
-
Enable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Enable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_EnableIT_CR3
CR3 CTSIE LL_USART_EnableIT_CR3
CR3 TXFTIE LL_USART_EnableIT_CR3
CR3 TCBGTIE LL_USART_EnableIT_CR3
CR3 RXFTIE LL_USART_EnableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_ERROR
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CTS
(
USART_TypeDef
*
p_usart
)
¶
-
Enable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_EnableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFT
(
USART_TypeDef
*
p_usart
)
¶
-
Enable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_EnableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
¶
-
Enable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_EnableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFT
(
USART_TypeDef
*
p_usart
)
¶
-
Enable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_EnableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Disable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_CR1
CR1 TCIE LL_USART_DisableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_CR1
CR1 PEIE LL_USART_DisableIT_CR1
CR1 CMIE LL_USART_DisableIT_CR1
CR1 RTOIE LL_USART_DisableIT_CR1
CR1 EOBIE LL_USART_DisableIT_CR1
CR1 TXFEIE LL_USART_DisableIT_CR1
CR1 RXFFIE LL_USART_DisableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_IDLE
(
USART_TypeDef
*
p_usart
)
¶
-
Disable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
¶
-
Disable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TC
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_DisableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
¶
-
Disable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_PE
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_DisableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CM
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_DisableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RTO
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_DisableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_EOB
(
USART_TypeDef
*
p_usart
)
¶
-
Disable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_DisableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFE
(
USART_TypeDef
*
p_usart
)
¶
-
Disable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_DisableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFF
(
USART_TypeDef
*
p_usart
)
¶
-
Disable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_DisableIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Disable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_LBD
(
USART_TypeDef
*
p_usart
)
¶
-
Disable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
-
Disable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_DisableIT_CR3
CR3 CTSIE LL_USART_DisableIT_CR3
CR3 TXFTIE LL_USART_DisableIT_CR3
CR3 TCBGTIE LL_USART_DisableIT_CR3
CR3 RXFTIE LL_USART_DisableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_ERROR
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CTS
(
USART_TypeDef
*
p_usart
)
¶
-
Disable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_DisableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFT
(
USART_TypeDef
*
p_usart
)
¶
-
Disable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_DisableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
¶
-
Disable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_DisableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFT
(
USART_TypeDef
*
p_usart
)
¶
-
Disable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_DisableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledIT_IDLE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART IDLE Interrupt source is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_IsEnabledIT_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART RX Not Empty and USART RX FIFO Not Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_IsEnabledIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TC
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Transmission Complete Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_IsEnabledIT_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART TX Empty and USART TX FIFO Not Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_IsEnabledIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_PE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Parity Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_IsEnabledIT_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CM
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Character Match Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_IsEnabledIT_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RTO
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Receiver Timeout Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_IsEnabledIT_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_EOB
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART End Of Block Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_IsEnabledIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFE
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART TX FIFO Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_IsEnabledIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFF
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART RX FIFO Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_IsEnabledIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_LBD
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART LIN Break Detection Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_IsEnabledIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_ERROR
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_IsEnabledIT_ERROR
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CTS
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the USART CTS Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_IsEnabledIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if USART TX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_IsEnabledIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TCBGT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if the Smartcard Transmission Complete Before Guard Time Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_IsEnabledIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFT
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if USART RX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_IsEnabledIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
¶
- group USART_LL_EF_IT_Management
-
Functions
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_CR1
CR1 TCIE LL_USART_EnableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_CR1
CR1 PEIE LL_USART_EnableIT_CR1
CR1 CMIE LL_USART_EnableIT_CR1
CR1 RTOIE LL_USART_EnableIT_CR1
CR1 EOBIE LL_USART_EnableIT_CR1
CR1 TXFEIE LL_USART_EnableIT_CR1
CR1 RXFFIE LL_USART_EnableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_IDLE
(
USART_TypeDef
*
p_usart
)
-
Enable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
-
Enable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TC
(
USART_TypeDef
*
p_usart
)
-
Enable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_EnableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
-
Enable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_PE
(
USART_TypeDef
*
p_usart
)
-
Enable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_EnableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CM
(
USART_TypeDef
*
p_usart
)
-
Enable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_EnableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RTO
(
USART_TypeDef
*
p_usart
)
-
Enable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_EnableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_EOB
(
USART_TypeDef
*
p_usart
)
-
Enable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_EnableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFE
(
USART_TypeDef
*
p_usart
)
-
Enable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_EnableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFF
(
USART_TypeDef
*
p_usart
)
-
Enable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_EnableIT_RXFF
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_LBD
(
USART_TypeDef
*
p_usart
)
-
Enable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_EnableIT_CR3
CR3 CTSIE LL_USART_EnableIT_CR3
CR3 TXFTIE LL_USART_EnableIT_CR3
CR3 TCBGTIE LL_USART_EnableIT_CR3
CR3 RXFTIE LL_USART_EnableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_ERROR
(
USART_TypeDef
*
p_usart
)
-
Enable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CTS
(
USART_TypeDef
*
p_usart
)
-
Enable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_EnableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFT
(
USART_TypeDef
*
p_usart
)
-
Enable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_EnableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Enable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_EnableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFT
(
USART_TypeDef
*
p_usart
)
-
Enable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_EnableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_CR1
CR1 TCIE LL_USART_DisableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_CR1
CR1 PEIE LL_USART_DisableIT_CR1
CR1 CMIE LL_USART_DisableIT_CR1
CR1 RTOIE LL_USART_DisableIT_CR1
CR1 EOBIE LL_USART_DisableIT_CR1
CR1 TXFEIE LL_USART_DisableIT_CR1
CR1 RXFFIE LL_USART_DisableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_IDLE
(
USART_TypeDef
*
p_usart
)
-
Disable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
-
Disable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TC
(
USART_TypeDef
*
p_usart
)
-
Disable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_DisableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
-
Disable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_PE
(
USART_TypeDef
*
p_usart
)
-
Disable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_DisableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CM
(
USART_TypeDef
*
p_usart
)
-
Disable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_DisableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RTO
(
USART_TypeDef
*
p_usart
)
-
Disable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_DisableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_EOB
(
USART_TypeDef
*
p_usart
)
-
Disable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_DisableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFE
(
USART_TypeDef
*
p_usart
)
-
Disable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_DisableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFF
(
USART_TypeDef
*
p_usart
)
-
Disable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_DisableIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_LBD
(
USART_TypeDef
*
p_usart
)
-
Disable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_DisableIT_CR3
CR3 CTSIE LL_USART_DisableIT_CR3
CR3 TXFTIE LL_USART_DisableIT_CR3
CR3 TCBGTIE LL_USART_DisableIT_CR3
CR3 RXFTIE LL_USART_DisableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_ERROR
(
USART_TypeDef
*
p_usart
)
-
Disable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CTS
(
USART_TypeDef
*
p_usart
)
-
Disable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_DisableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFT
(
USART_TypeDef
*
p_usart
)
-
Disable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_DisableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Disable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_DisableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFT
(
USART_TypeDef
*
p_usart
)
-
Disable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_DisableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledIT_IDLE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART IDLE Interrupt source is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_IsEnabledIT_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX Not Empty and USART RX FIFO Not Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_IsEnabledIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TC
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmission Complete Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_IsEnabledIT_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX Empty and USART TX FIFO Not Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_IsEnabledIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_PE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Parity Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_IsEnabledIT_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CM
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Character Match Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_IsEnabledIT_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RTO
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receiver Timeout Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_IsEnabledIT_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_EOB
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART End Of Block Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_IsEnabledIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_IsEnabledIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_IsEnabledIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_LBD
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART LIN Break Detection Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_IsEnabledIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_ERROR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_IsEnabledIT_ERROR
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_IsEnabledIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if USART TX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_IsEnabledIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TCBGT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the Smartcard Transmission Complete Before Guard Time Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_IsEnabledIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if USART RX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_IsEnabledIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
- group USART_LL_EF_IT_Management
-
Functions
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_CR1
CR1 TCIE LL_USART_EnableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_CR1
CR1 PEIE LL_USART_EnableIT_CR1
CR1 CMIE LL_USART_EnableIT_CR1
CR1 RTOIE LL_USART_EnableIT_CR1
CR1 EOBIE LL_USART_EnableIT_CR1
CR1 TXFEIE LL_USART_EnableIT_CR1
CR1 RXFFIE LL_USART_EnableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_IDLE
(
USART_TypeDef
*
p_usart
)
-
Enable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_EnableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
-
Enable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TC
(
USART_TypeDef
*
p_usart
)
-
Enable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_EnableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
-
Enable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_EnableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_PE
(
USART_TypeDef
*
p_usart
)
-
Enable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_EnableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CM
(
USART_TypeDef
*
p_usart
)
-
Enable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_EnableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RTO
(
USART_TypeDef
*
p_usart
)
-
Enable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_EnableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_EOB
(
USART_TypeDef
*
p_usart
)
-
Enable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_EnableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFE
(
USART_TypeDef
*
p_usart
)
-
Enable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_EnableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFF
(
USART_TypeDef
*
p_usart
)
-
Enable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_EnableIT_RXFF
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_LBD
(
USART_TypeDef
*
p_usart
)
-
Enable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_EnableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Enable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_EnableIT_CR3
CR3 CTSIE LL_USART_EnableIT_CR3
CR3 TXFTIE LL_USART_EnableIT_CR3
CR3 TCBGTIE LL_USART_EnableIT_CR3
CR3 RXFTIE LL_USART_EnableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to enable
-
-
void
LL_USART_EnableIT_ERROR
(
USART_TypeDef
*
p_usart
)
-
Enable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_CTS
(
USART_TypeDef
*
p_usart
)
-
Enable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_EnableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TXFT
(
USART_TypeDef
*
p_usart
)
-
Enable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_EnableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Enable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_EnableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_EnableIT_RXFT
(
USART_TypeDef
*
p_usart
)
-
Enable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_EnableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR1 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_CR1
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_CR1
CR1 TCIE LL_USART_DisableIT_CR1
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_CR1
CR1 PEIE LL_USART_DisableIT_CR1
CR1 CMIE LL_USART_DisableIT_CR1
CR1 RTOIE LL_USART_DisableIT_CR1
CR1 EOBIE LL_USART_DisableIT_CR1
CR1 TXFEIE LL_USART_DisableIT_CR1
CR1 RXFFIE LL_USART_DisableIT_CR1
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_IDLE
(
USART_TypeDef
*
p_usart
)
-
Disable IDLE Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_DisableIT_IDLE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXNE_RXFNE
(
USART_TypeDef
*
p_usart
)
-
Disable RX Not Empty and RX FIFO Not Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TC
(
USART_TypeDef
*
p_usart
)
-
Disable Transmission Complete Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_DisableIT_TC
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXE_TXFNF
(
USART_TypeDef
*
p_usart
)
-
Disable TX Empty and TX FIFO Not Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_DisableIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_PE
(
USART_TypeDef
*
p_usart
)
-
Disable Parity Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_DisableIT_PE
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CM
(
USART_TypeDef
*
p_usart
)
-
Disable Character Match Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_DisableIT_CM
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RTO
(
USART_TypeDef
*
p_usart
)
-
Disable Receiver Timeout Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_DisableIT_RTO
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_EOB
(
USART_TypeDef
*
p_usart
)
-
Disable End Of Block Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_DisableIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFE
(
USART_TypeDef
*
p_usart
)
-
Disable TX FIFO Empty Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_DisableIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFF
(
USART_TypeDef
*
p_usart
)
-
Disable RX FIFO Full Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_DisableIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR2
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR2 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_CR2
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_LBD
(
USART_TypeDef
*
p_usart
)
-
Disable LIN Break Detection Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_DisableIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CR3
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
-
Disable CR3 Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_DisableIT_CR3
CR3 CTSIE LL_USART_DisableIT_CR3
CR3 TXFTIE LL_USART_DisableIT_CR3
CR3 TCBGTIE LL_USART_DisableIT_CR3
CR3 RXFTIE LL_USART_DisableIT_CR3
- Parameters :
-
-
p_usart – USART Instance
-
mask – mask to disable
-
-
void
LL_USART_DisableIT_ERROR
(
USART_TypeDef
*
p_usart
)
-
Disable Error Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_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 p_usart ISR register). 0: Interrupt is inhibited 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the p_usart ISR register.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_CTS
(
USART_TypeDef
*
p_usart
)
-
Disable CTS Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_DisableIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TXFT
(
USART_TypeDef
*
p_usart
)
-
Disable TX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_DisableIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_TCBGT
(
USART_TypeDef
*
p_usart
)
-
Disable Smartcard Transmission Complete Before Guard Time Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_DisableIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableIT_RXFT
(
USART_TypeDef
*
p_usart
)
-
Disable RX FIFO Threshold Interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_DisableIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledIT_IDLE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART IDLE Interrupt source is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 IDLEIE LL_USART_IsEnabledIT_IDLE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXNE_RXFNE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX Not Empty and USART RX FIFO Not Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXNEIE_RXFNEIE LL_USART_IsEnabledIT_RXNE_RXFNE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TC
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Transmission Complete Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TCIE LL_USART_IsEnabledIT_TC
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXE_TXFNF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX Empty and USART TX FIFO Not Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXEIE_TXFNFIE LL_USART_IsEnabledIT_TXE_TXFNF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_PE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Parity Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 PEIE LL_USART_IsEnabledIT_PE
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CM
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Character Match Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 CMIE LL_USART_IsEnabledIT_CM
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RTO
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Receiver Timeout Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RTOIE LL_USART_IsEnabledIT_RTO
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_EOB
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART End Of Block Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 EOBIE LL_USART_IsEnabledIT_EOB
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFE
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART TX FIFO Empty Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 TXFEIE LL_USART_IsEnabledIT_TXFE
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFF
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART RX FIFO Full Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR1 RXFFIE LL_USART_IsEnabledIT_RXFF
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_LBD
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART LIN Break Detection Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR2 LBDIE LL_USART_IsEnabledIT_LBD
Note
Macro IS_UART_LIN_INSTANCE(p_usart) can be used to check whether or not LIN feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_ERROR
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART Error Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 EIE LL_USART_IsEnabledIT_ERROR
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_CTS
(
const
USART_TypeDef
*
p_usart
)
-
Check if the USART CTS Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 CTSIE LL_USART_IsEnabledIT_CTS
Note
Macro IS_UART_HWFLOW_INSTANCE(p_usart) can be used to check whether or not Hardware Flow control feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if USART TX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TXFTIE LL_USART_IsEnabledIT_TXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_TCBGT
(
const
USART_TypeDef
*
p_usart
)
-
Check if the Smartcard Transmission Complete Before Guard Time Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 TCBGTIE LL_USART_IsEnabledIT_TCBGT
Note
Macro IS_SMARTCARD_INSTANCE(p_usart) can be used to check whether or not Smartcard feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_IsEnabledIT_RXFT
(
const
USART_TypeDef
*
p_usart
)
-
Check if USART RX FIFO Threshold Interrupt is enabled or disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 RXFTIE LL_USART_IsEnabledIT_RXFT
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableIT_CR1
(
USART_TypeDef
*
p_usart
,
uint32_t
mask
)
DMA_Management ¶
- group USART_LL_EF_DMA_Management
-
Functions
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
¶
-
Enable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_EnableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
¶
-
Disable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_DisableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_RX
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if DMA Mode is enabled for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_IsEnabledDMAReq_RX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
¶
-
Enable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_EnableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
¶
-
Disable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_DisableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_TX
(
const
USART_TypeDef
*
p_usart
)
¶
-
Check if DMA Mode is enabled for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_IsEnabledDMAReq_TX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
¶
-
Enable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_EnableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
¶
-
Disable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_DisableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMADeactOnRxErr
(
const
USART_TypeDef
*
p_usart
)
¶
-
Indicate if DMA Disabling on Reception Error is disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_IsEnabledDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_DMA_GetRegAddr
(
const
USART_TypeDef
*
p_usart
,
uint32_t
direction
)
¶
-
Get the data register address used for DMA transfer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_DMA_GetRegAddr
TDR TDR LL_USART_DMA_GetRegAddr
- Parameters :
-
-
p_usart – USART Instance
-
direction – This parameter can be one of the following values:
-
- Return values :
-
Address – of data register
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
¶
- group USART_LL_EF_DMA_Management
-
Functions
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_EnableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_DisableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_RX
(
const
USART_TypeDef
*
p_usart
)
-
Check if DMA Mode is enabled for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_IsEnabledDMAReq_RX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_EnableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_DisableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_TX
(
const
USART_TypeDef
*
p_usart
)
-
Check if DMA Mode is enabled for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_IsEnabledDMAReq_TX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_EnableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_DisableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMADeactOnRxErr
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if DMA Disabling on Reception Error is disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_IsEnabledDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_DMA_GetRegAddr
(
const
USART_TypeDef
*
p_usart
,
uint32_t
direction
)
-
Get the data register address used for DMA transfer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_DMA_GetRegAddr
TDR TDR LL_USART_DMA_GetRegAddr
- Parameters :
-
-
p_usart – USART Instance
-
direction – This parameter can be one of the following values:
-
- Return values :
-
Address – of data register
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
- group USART_LL_EF_DMA_Management
-
Functions
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_EnableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Mode for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_DisableDMAReq_RX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_RX
(
const
USART_TypeDef
*
p_usart
)
-
Check if DMA Mode is enabled for reception.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAR LL_USART_IsEnabledDMAReq_RX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_EnableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMAReq_TX
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Mode for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_DisableDMAReq_TX
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMAReq_TX
(
const
USART_TypeDef
*
p_usart
)
-
Check if DMA Mode is enabled for transmission.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DMAT LL_USART_IsEnabledDMAReq_TX
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
void
LL_USART_EnableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
-
Enable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_EnableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_DisableDMADeactOnRxErr
(
USART_TypeDef
*
p_usart
)
-
Disable DMA Disabling on Reception Error.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_DisableDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
-
uint32_t
LL_USART_IsEnabledDMADeactOnRxErr
(
const
USART_TypeDef
*
p_usart
)
-
Indicate if DMA Disabling on Reception Error is disabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
CR3 DDRE LL_USART_IsEnabledDMADeactOnRxErr
- Parameters :
-
p_usart – USART Instance
- Return values :
-
State – of bit (1 or 0).
-
uint32_t
LL_USART_DMA_GetRegAddr
(
const
USART_TypeDef
*
p_usart
,
uint32_t
direction
)
-
Get the data register address used for DMA transfer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_DMA_GetRegAddr
TDR TDR LL_USART_DMA_GetRegAddr
- Parameters :
-
-
p_usart – USART Instance
-
direction – This parameter can be one of the following values:
-
- Return values :
-
Address – of data register
-
void
LL_USART_EnableDMAReq_RX
(
USART_TypeDef
*
p_usart
)
Data_Management ¶
- group USART_LL_EF_Data_Management
-
Functions
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
¶
-
Read Receiver Data register (Receive Data value, 8 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData8
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
uint16_t
LL_USART_ReceiveData9
(
const
USART_TypeDef
*
p_usart
)
¶
-
Read Receiver Data register (Receive Data value, 9 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData9
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
void
LL_USART_TransmitData8
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData8
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
-
void
LL_USART_TransmitData9
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData9
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
¶
- group USART_LL_EF_Data_Management
-
Functions
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
-
Read Receiver Data register (Receive Data value, 8 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData8
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
uint16_t
LL_USART_ReceiveData9
(
const
USART_TypeDef
*
p_usart
)
-
Read Receiver Data register (Receive Data value, 9 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData9
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
void
LL_USART_TransmitData8
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData8
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
-
void
LL_USART_TransmitData9
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData9
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
- group USART_LL_EF_Data_Management
-
Functions
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
-
Read Receiver Data register (Receive Data value, 8 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData8
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
uint16_t
LL_USART_ReceiveData9
(
const
USART_TypeDef
*
p_usart
)
-
Read Receiver Data register (Receive Data value, 9 bits)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RDR RDR LL_USART_ReceiveData9
- Parameters :
-
p_usart – USART Instance
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
void
LL_USART_TransmitData8
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData8
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0xFF
-
-
void
LL_USART_TransmitData9
(
USART_TypeDef
*
p_usart
,
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_USART_TransmitData9
- Parameters :
-
-
p_usart – USART Instance
-
Value – between Min_Data=0x00 and Max_Data=0x1FF
-
-
uint8_t
LL_USART_ReceiveData8
(
const
USART_TypeDef
*
p_usart
)
Execution ¶
- group USART_LL_EF_Execution
-
Functions
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)
¶
-
Set a Request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_SetRequest
RQR MMRQ LL_USART_SetRequest
RQR RXFRQ LL_USART_SetRequest
RQR TXFRQ LL_USART_SetRequest
RQR ABRRQ LL_USART_SetRequest
- Parameters :
-
-
p_usart – USART Instance
-
request – Request to set
-
-
void
LL_USART_RequestAutoBaudRate
(
USART_TypeDef
*
p_usart
)
¶
-
Request an Automatic Baud Rate measurement on next received data frame.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR ABRRQ LL_USART_RequestAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestBreakSending
(
USART_TypeDef
*
p_usart
)
¶
-
Request Break sending.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_RequestBreakSending
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestEnterMuteMode
(
USART_TypeDef
*
p_usart
)
¶
-
Put USART in mute mode and set the RWU flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR MMRQ LL_USART_RequestEnterMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestRxDataFlush
(
USART_TypeDef
*
p_usart
)
¶
-
Request a Receive Data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR RXFRQ LL_USART_RequestRxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
Note
Allows to discard the received data without reading them, and avoid an overrun condition.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestTxDataFlush
(
USART_TypeDef
*
p_usart
)
¶
-
Request a Transmit data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR TXFRQ LL_USART_RequestTxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)
¶
- group USART_LL_EF_Execution
-
Functions
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)
-
Set a Request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_SetRequest
RQR MMRQ LL_USART_SetRequest
RQR RXFRQ LL_USART_SetRequest
RQR TXFRQ LL_USART_SetRequest
RQR ABRRQ LL_USART_SetRequest
- Parameters :
-
-
p_usart – USART Instance
-
request – Request to set
-
-
void
LL_USART_RequestAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Request an Automatic Baud Rate measurement on next received data frame.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR ABRRQ LL_USART_RequestAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestBreakSending
(
USART_TypeDef
*
p_usart
)
-
Request Break sending.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_RequestBreakSending
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestEnterMuteMode
(
USART_TypeDef
*
p_usart
)
-
Put USART in mute mode and set the RWU flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR MMRQ LL_USART_RequestEnterMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestRxDataFlush
(
USART_TypeDef
*
p_usart
)
-
Request a Receive Data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR RXFRQ LL_USART_RequestRxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
Note
Allows to discard the received data without reading them, and avoid an overrun condition.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestTxDataFlush
(
USART_TypeDef
*
p_usart
)
-
Request a Transmit data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR TXFRQ LL_USART_RequestTxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)
- group USART_LL_EF_Execution
-
Functions
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)
-
Set a Request.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_SetRequest
RQR MMRQ LL_USART_SetRequest
RQR RXFRQ LL_USART_SetRequest
RQR TXFRQ LL_USART_SetRequest
RQR ABRRQ LL_USART_SetRequest
- Parameters :
-
-
p_usart – USART Instance
-
request – Request to set
-
-
void
LL_USART_RequestAutoBaudRate
(
USART_TypeDef
*
p_usart
)
-
Request an Automatic Baud Rate measurement on next received data frame.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR ABRRQ LL_USART_RequestAutoBaudRate
Note
Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(p_usart) can be used to check whether or not Auto Baud Rate detection feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestBreakSending
(
USART_TypeDef
*
p_usart
)
-
Request Break sending.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR SBKRQ LL_USART_RequestBreakSending
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestEnterMuteMode
(
USART_TypeDef
*
p_usart
)
-
Put USART in mute mode and set the RWU flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR MMRQ LL_USART_RequestEnterMuteMode
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestRxDataFlush
(
USART_TypeDef
*
p_usart
)
-
Request a Receive Data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR RXFRQ LL_USART_RequestRxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
Note
Allows to discard the received data without reading them, and avoid an overrun condition.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_RequestTxDataFlush
(
USART_TypeDef
*
p_usart
)
-
Request a Transmit data and FIFO flush.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RQR TXFRQ LL_USART_RequestTxDataFlush
Note
Macro IS_UART_FIFO_INSTANCE(p_usart) can be used to check whether or not FIFO mode feature is supported by the p_usart instance.
- Parameters :
-
p_usart – USART Instance
-
void
LL_USART_SetRequest
(
USART_TypeDef
*
p_usart
,
uint16_t
request
)