STM32L486xx HAL User Manual
Functions
Trigger Configuration
LPTIM Exported Functions

Functions

__STATIC_INLINE void LL_LPTIM_EnableTimeout (LPTIM_TypeDef *LPTIMx)
 Enable the timeout function.
__STATIC_INLINE void LL_LPTIM_DisableTimeout (LPTIM_TypeDef *LPTIMx)
 Disable the timeout function.
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout (LPTIM_TypeDef *LPTIMx)
 Indicate whether the timeout function is enabled.
__STATIC_INLINE void LL_LPTIM_TrigSw (LPTIM_TypeDef *LPTIMx)
 Start the LPTIM counter.
__STATIC_INLINE void LL_LPTIM_ConfigTrigger (LPTIM_TypeDef *LPTIMx, uint32_t Source, uint32_t Filter, uint32_t Polarity)
 Configure the external trigger used as a trigger event for the LPTIM.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger source.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger filter.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity (LPTIM_TypeDef *LPTIMx)
 Get actual external trigger polarity.

Function Documentation

__STATIC_INLINE void LL_LPTIM_ConfigTrigger ( LPTIM_TypeDef *  LPTIMx,
uint32_t  Source,
uint32_t  Filter,
uint32_t  Polarity 
)

Configure the external trigger used as a trigger event for the LPTIM.

Note:
This function must be called when the LPTIM instance is disabled.
An internal clock source must be present when a digital filter is required for the trigger.
Reference Manual to LL API cross reference:
CFGR TRIGSEL LL_LPTIM_ConfigTrigger
CFGR TRGFLT LL_LPTIM_ConfigTrigger
CFGR TRIGEN LL_LPTIM_ConfigTrigger
Parameters:
LPTIMxLow-Power Timer instance
SourceThis parameter can be one of the following values:
FilterThis parameter can be one of the following values:
PolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 769 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE void LL_LPTIM_DisableTimeout ( LPTIM_TypeDef *  LPTIMx)

Disable the timeout function.

Note:
This function must be called when the LPTIM instance is disabled.
A trigger event arriving when the timer is already started will be ignored.
Reference Manual to LL API cross reference:
CFGR TIMOUT LL_LPTIM_DisableTimeout
Parameters:
LPTIMxLow-Power Timer instance
Return values:
None

Definition at line 712 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE void LL_LPTIM_EnableTimeout ( LPTIM_TypeDef *  LPTIMx)

Enable the timeout function.

Note:
This function must be called when the LPTIM instance is disabled.
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer will restart.
The timeout value corresponds to the compare value; if no trigger occurs within the expected time frame, the MCU is waked-up by the compare match event.
Reference Manual to LL API cross reference:
CFGR TIMOUT LL_LPTIM_EnableTimeout
Parameters:
LPTIMxLow-Power Timer instance
Return values:
None

Definition at line 698 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter ( LPTIM_TypeDef *  LPTIMx)

Get actual external trigger filter.

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

Definition at line 803 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity ( LPTIM_TypeDef *  LPTIMx)

Get actual external trigger polarity.

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

Definition at line 817 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource ( LPTIM_TypeDef *  LPTIMx)

Get actual external trigger source.

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

Definition at line 788 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout ( LPTIM_TypeDef *  LPTIMx)

Indicate whether the timeout function is enabled.

Reference Manual to LL API cross reference:
CFGR TIMOUT LL_LPTIM_IsEnabledTimeout
Parameters:
LPTIMxLow-Power Timer instance
Return values:
Stateof bit (1 or 0).

Definition at line 723 of file stm32l4xx_ll_lptim.h.

__STATIC_INLINE void LL_LPTIM_TrigSw ( LPTIM_TypeDef *  LPTIMx)

Start the LPTIM counter.

Note:
This function must be called when the LPTIM instance is disabled.
Reference Manual to LL API cross reference:
CFGR TRIGEN LL_LPTIM_TrigSw
Parameters:
LPTIMxLow-Power Timer instance
Return values:
None

Definition at line 735 of file stm32l4xx_ll_lptim.h.