TUKS MCU Introductory course / TUKS-COURSE-TIMER
Embed: (wiki syntax)

« Back to documentation index

Initialisation and deinitialisation functions

Initialisation and deinitialisation functions
[LPTIM Exported Functions]

Functions

ErrorStatus LL_LPTIM_DeInit (LPTIM_TypeDef *LPTIMx)
 Set LPTIMx registers to their reset values.
void LL_LPTIM_StructInit (LL_LPTIM_InitTypeDef *LPTIM_InitStruct)
 Set each fields of the LPTIM_InitStruct structure to its default value.
ErrorStatus LL_LPTIM_Init (LPTIM_TypeDef *LPTIMx, LL_LPTIM_InitTypeDef *LPTIM_InitStruct)
 Configure the LPTIMx peripheral according to the specified parameters.

Function Documentation

ErrorStatus LL_LPTIM_DeInit ( LPTIM_TypeDef *  LPTIMx )

Set LPTIMx registers to their reset values.

Parameters:
LPTIMxLP Timer instance
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: LPTIMx registers are de-initialized
  • ERROR: invalid LPTIMx instance

Definition at line 105 of file stm32l4xx_ll_lptim.c.

ErrorStatus LL_LPTIM_Init ( LPTIM_TypeDef *  LPTIMx,
LL_LPTIM_InitTypeDef LPTIM_InitStruct 
)

Configure the LPTIMx peripheral according to the specified parameters.

Note:
LL_LPTIM_Init can only be called when the LPTIM instance is disabled.
LPTIMx can be disabled using unitary function LL_LPTIM_Disable().
Parameters:
LPTIMxLP Timer Instance
LPTIM_InitStructpointer to a LL_LPTIM_InitTypeDef structure
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: LPTIMx instance has been initialized
  • ERROR: LPTIMx instance hasn't been initialized

Definition at line 157 of file stm32l4xx_ll_lptim.c.

void LL_LPTIM_StructInit ( LL_LPTIM_InitTypeDef LPTIM_InitStruct )

Set each fields of the LPTIM_InitStruct structure to its default value.

Parameters:
LPTIM_InitStructpointer to a LL_LPTIM_InitTypeDef structure
Return values:
None

Definition at line 138 of file stm32l4xx_ll_lptim.c.