STM32L486xx HAL User Manual
Functions
Clock Configuration
LPTIM Exported Functions

Functions

__STATIC_INLINE void LL_LPTIM_SetClockSource (LPTIM_TypeDef *LPTIMx, uint32_t ClockSource)
 Set the source of the clock used by the LPTIM instance.
__STATIC_INLINE uint32_t LL_LPTIM_GetClockSource (LPTIM_TypeDef *LPTIMx)
 Get actual LPTIM instance clock source.
__STATIC_INLINE void LL_LPTIM_ConfigClock (LPTIM_TypeDef *LPTIMx, uint32_t ClockFilter, uint32_t ClockPolarity)
 Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.
__STATIC_INLINE uint32_t LL_LPTIM_GetClockPolarity (LPTIM_TypeDef *LPTIMx)
 Get actual clock polarity.
__STATIC_INLINE uint32_t LL_LPTIM_GetClockFilter (LPTIM_TypeDef *LPTIMx)
 Get actual clock digital filter.

Function Documentation

__STATIC_INLINE void LL_LPTIM_ConfigClock ( LPTIM_TypeDef *  LPTIMx,
uint32_t  ClockFilter,
uint32_t  ClockPolarity 
)

Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.

Note:
This function must be called when the LPTIM instance is disabled.
When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency.
An internal clock source must be present when a digital filter is required for external clock.
Reference Manual to LL API cross reference:
CFGR CKFLT LL_LPTIM_ConfigClock
CFGR CKPOL LL_LPTIM_ConfigClock
Parameters:
LPTIMxLow-Power Timer instance
ClockFilterThis parameter can be one of the following values:
ClockPolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 880 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetClockFilter ( LPTIM_TypeDef *  LPTIMx)

Get actual clock digital filter.

Reference Manual to LL API cross reference:
CFGR CKFLT LL_LPTIM_GetClockFilter
Parameters:
LPTIMxLow-Power Timer instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 909 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetClockPolarity ( LPTIM_TypeDef *  LPTIMx)

Get actual clock polarity.

Reference Manual to LL API cross reference:
CFGR CKPOL LL_LPTIM_GetClockPolarity
Parameters:
LPTIMxLow-Power Timer instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 894 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetClockSource ( LPTIM_TypeDef *  LPTIMx)

Get actual LPTIM instance clock source.

Reference Manual to LL API cross reference:
CFGR CKSEL LL_LPTIM_GetClockSource
Parameters:
LPTIMxLow-Power Timer instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 853 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE void LL_LPTIM_SetClockSource ( LPTIM_TypeDef *  LPTIMx,
uint32_t  ClockSource 
)

Set the source of the clock used by the LPTIM instance.

Note:
This function must be called when the LPTIM instance is disabled.
Reference Manual to LL API cross reference:
CFGR CKSEL LL_LPTIM_SetClockSource
Parameters:
LPTIMxLow-Power Timer instance
ClockSourceThis parameter can be one of the following values:
Return values:
None

Definition at line 840 of file stm32l4xx_ll_lptim.h.