STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Trigger Configuration:

Functions

__STATIC_INLINE void LL_LPTIM_EnableTimeout (LPTIM_TypeDef *LPTIMx)
 Enable the timeout function. More...
 
__STATIC_INLINE void LL_LPTIM_DisableTimeout (LPTIM_TypeDef *LPTIMx)
 Disable the timeout function. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout (const LPTIM_TypeDef *LPTIMx)
 Indicate whether the timeout function is enabled. @rmtoll CFGR TIMOUT LL_LPTIM_IsEnabledTimeout. More...
 
__STATIC_INLINE void LL_LPTIM_TrigSw (LPTIM_TypeDef *LPTIMx)
 Start the LPTIM counter. More...
 
__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. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource (const LPTIM_TypeDef *LPTIMx)
 Get actual external trigger source. @rmtoll CFGR TRIGSEL LL_LPTIM_GetTriggerSource. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter (const LPTIM_TypeDef *LPTIMx)
 Get actual external trigger filter. @rmtoll CFGR TRGFLT LL_LPTIM_GetTriggerFilter. More...
 
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity (const LPTIM_TypeDef *LPTIMx)
 Get actual external trigger polarity. @rmtoll CFGR TRIGEN LL_LPTIM_GetTriggerPolarity. More...
 

Detailed Description

Function Documentation

◆ LL_LPTIM_ConfigTrigger()

__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. @rmtoll 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:
  • LL_LPTIM_TRIG_SOURCE_GPIO
  • LL_LPTIM_TRIG_SOURCE_RTCALARMA
  • LL_LPTIM_TRIG_SOURCE_RTCALARMB
  • LL_LPTIM_TRIG_SOURCE_RTCTAMP1
  • LL_LPTIM_TRIG_SOURCE_TIM1_TRGO
  • LL_LPTIM_TRIG_SOURCE_TIM5_TRGO
FilterThis parameter can be one of the following values:
  • LL_LPTIM_TRIG_FILTER_NONE
  • LL_LPTIM_TRIG_FILTER_2
  • LL_LPTIM_TRIG_FILTER_4
  • LL_LPTIM_TRIG_FILTER_8
PolarityThis parameter can be one of the following values:
  • LL_LPTIM_TRIG_POLARITY_RISING
  • LL_LPTIM_TRIG_POLARITY_FALLING
  • LL_LPTIM_TRIG_POLARITY_RISING_FALLING
Return values
None

Definition at line 743 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_DisableTimeout()

__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. @rmtoll CFGR TIMOUT LL_LPTIM_DisableTimeout
Parameters
LPTIMxLow-Power Timer instance
Return values
None

Definition at line 688 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_EnableTimeout()

__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. @rmtoll CFGR TIMOUT LL_LPTIM_EnableTimeout
Parameters
LPTIMxLow-Power Timer instance
Return values
None

Definition at line 674 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_GetTriggerFilter()

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter ( const LPTIM_TypeDef *  LPTIMx)

Get actual external trigger filter. @rmtoll CFGR TRGFLT LL_LPTIM_GetTriggerFilter.

Parameters
LPTIMxLow-Power Timer instance
Return values
Returnedvalue can be one of the following values:
  • LL_LPTIM_TRIG_FILTER_NONE
  • LL_LPTIM_TRIG_FILTER_2
  • LL_LPTIM_TRIG_FILTER_4
  • LL_LPTIM_TRIG_FILTER_8

Definition at line 775 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_GetTriggerPolarity()

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity ( const LPTIM_TypeDef *  LPTIMx)

Get actual external trigger polarity. @rmtoll CFGR TRIGEN LL_LPTIM_GetTriggerPolarity.

Parameters
LPTIMxLow-Power Timer instance
Return values
Returnedvalue can be one of the following values:
  • LL_LPTIM_TRIG_POLARITY_RISING
  • LL_LPTIM_TRIG_POLARITY_FALLING
  • LL_LPTIM_TRIG_POLARITY_RISING_FALLING

Definition at line 789 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_GetTriggerSource()

__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource ( const LPTIM_TypeDef *  LPTIMx)

Get actual external trigger source. @rmtoll CFGR TRIGSEL LL_LPTIM_GetTriggerSource.

Parameters
LPTIMxLow-Power Timer instance
Return values
Returnedvalue can be one of the following values:
  • LL_LPTIM_TRIG_SOURCE_GPIO
  • LL_LPTIM_TRIG_SOURCE_RTCALARMA
  • LL_LPTIM_TRIG_SOURCE_RTCALARMB
  • LL_LPTIM_TRIG_SOURCE_RTCTAMP1
  • LL_LPTIM_TRIG_SOURCE_TIM1_TRGO
  • LL_LPTIM_TRIG_SOURCE_TIM5_TRGO

Definition at line 760 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_IsEnabledTimeout()

__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout ( const LPTIM_TypeDef *  LPTIMx)

Indicate whether the timeout function is enabled. @rmtoll CFGR TIMOUT LL_LPTIM_IsEnabledTimeout.

Parameters
LPTIMxLow-Power Timer instance
Return values
Stateof bit (1 or 0).

Definition at line 699 of file stm32f4xx_ll_lptim.h.

◆ LL_LPTIM_TrigSw()

__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. @rmtoll CFGR TRIGEN LL_LPTIM_TrigSw
Parameters
LPTIMxLow-Power Timer instance
Return values
None

Definition at line 711 of file stm32f4xx_ll_lptim.h.