STM32L486xx HAL User Manual
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 103 of file stm32l4xx_ll_lptim.c.

References assert_param, LL_APB1_GRP1_ForceReset(), LL_APB1_GRP1_PERIPH_LPTIM1, LL_APB1_GRP1_ReleaseReset(), LL_APB1_GRP2_ForceReset(), LL_APB1_GRP2_PERIPH_LPTIM2, and LL_APB1_GRP2_ReleaseReset().

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 155 of file stm32l4xx_ll_lptim.c.

References assert_param, LL_LPTIM_InitTypeDef::ClockSource, IS_LL_LPTIM_CLOCK_PRESCALER, IS_LL_LPTIM_CLOCK_SOURCE, IS_LL_LPTIM_OUTPUT_POLARITY, IS_LL_LPTIM_WAVEFORM, LL_LPTIM_IsEnabled(), LL_LPTIM_InitTypeDef::Polarity, LL_LPTIM_InitTypeDef::Prescaler, and LL_LPTIM_InitTypeDef::Waveform.

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 136 of file stm32l4xx_ll_lptim.c.

References LL_LPTIM_InitTypeDef::ClockSource, LL_LPTIM_CLK_SOURCE_INTERNAL, LL_LPTIM_OUTPUT_POLARITY_REGULAR, LL_LPTIM_OUTPUT_WAVEFORM_PWM, LL_LPTIM_PRESCALER_DIV1, LL_LPTIM_InitTypeDef::Polarity, LL_LPTIM_InitTypeDef::Prescaler, and LL_LPTIM_InitTypeDef::Waveform.