LL USART Generic Driver
Reference Manual to
LL API cross
reference:
LL_USART_IsEnabledLIN
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_USART_ConfigAsyncMode
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
1266/1371
CR2 LINEN LL_USART_DisableLIN
__STATIC_INLINE uint32_t LL_USART_IsEnabledLIN
(USART_TypeDef * USARTx)
Indicate if LIN mode is enabled.
USARTx: USART Instance
State: of bit (1 or 0).
Macro IS_UART_LIN_INSTANCE(USARTx) can be used to
check whether or not LIN feature is supported by the USARTx
instance.
CR2 LINEN LL_USART_IsEnabledLIN
__STATIC_INLINE void LL_USART_ConfigAsyncMode
(USART_TypeDef * USARTx)
Perform basic configuration of USART for enabling use in
Asynchronous Mode (UART)
USARTx: USART Instance
None:
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.
Call of this function is equivalent to following function call
sequence : Clear LINEN in CR2 using
LL_USART_DisableLIN() functionClear CLKEN in CR2 using
LL_USART_DisableSCLKOutput() functionClear SCEN in
CR3 using LL_USART_DisableSmartcard() functionClear
IREN in CR3 using LL_USART_DisableIrda() functionClear
HDSEL in CR3 using LL_USART_DisableHalfDuplex()
function
Other remaining configurations items related to Asynchronous
Mode (as Baud Rate, Word length, Parity, ...) should be set
using dedicated 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
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers