TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization functions

Initialization and de-initialization functions
[LPUART Exported Functions]

Functions

ErrorStatus LL_LPUART_DeInit (USART_TypeDef *LPUARTx)
 De-initialize LPUART registers (Registers restored to their default values).
ErrorStatus LL_LPUART_Init (USART_TypeDef *LPUARTx, LL_LPUART_InitTypeDef *LPUART_InitStruct)
 Initialize LPUART registers according to the specified parameters in LPUART_InitStruct.
void LL_LPUART_StructInit (LL_LPUART_InitTypeDef *LPUART_InitStruct)
 Set each LL_LPUART_InitTypeDef field to default value.

Function Documentation

ErrorStatus LL_LPUART_DeInit ( USART_TypeDef *  LPUARTx )

De-initialize LPUART registers (Registers restored to their default values).

Parameters:
LPUARTxLPUART Instance
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: LPUART registers are de-initialized
  • ERROR: not applicable

Definition at line 129 of file stm32l4xx_ll_lpuart.c.

ErrorStatus LL_LPUART_Init ( USART_TypeDef *  LPUARTx,
LL_LPUART_InitTypeDef LPUART_InitStruct 
)

Initialize LPUART registers according to the specified parameters in LPUART_InitStruct.

Note:
As some bits in LPUART configuration registers can only be written when the LPUART is disabled (USART_CR1_UE bit =0), LPUART IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Baud rate value stored in LPUART_InitStruct BaudRate field, should be valid (different from 0).
Parameters:
LPUARTxLPUART Instance
LPUART_InitStructpointer to a LL_LPUART_InitTypeDef structure that contains the configuration information for the specified LPUART peripheral.
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: LPUART registers are initialized according to LPUART_InitStruct content
  • ERROR: Problem occurred during LPUART Registers initialization

Definition at line 158 of file stm32l4xx_ll_lpuart.c.

void LL_LPUART_StructInit ( LL_LPUART_InitTypeDef LPUART_InitStruct )

Set each LL_LPUART_InitTypeDef field to default value.

Parameters:
LPUART_InitStructpointer to a LL_LPUART_InitTypeDef structure whose fields will be set to default values.
Return values:
None

Definition at line 227 of file stm32l4xx_ll_lpuart.c.