Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
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. CFGR TRIGSEL LL_LPTIM_ConfigTrigger
CFGR TRGFLT LL_LPTIM_ConfigTrigger
CFGR TRIGEN LL_LPTIM_ConfigTrigger
- Parameters:
-
LPTIMx Low-Power Timer instance Source This 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_RTCTAMP2
- LL_LPTIM_TRIG_SOURCE_RTCTAMP3
- LL_LPTIM_TRIG_SOURCE_COMP1
- LL_LPTIM_TRIG_SOURCE_COMP2
Filter This 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
Polarity This 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 773 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. CFGR TIMOUT LL_LPTIM_DisableTimeout
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
None
Definition at line 716 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. CFGR TIMOUT LL_LPTIM_EnableTimeout
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
None
Definition at line 702 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerFilter | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual external trigger filter.
CFGR TRGFLT LL_LPTIM_GetTriggerFilter
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value 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 807 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerPolarity | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual external trigger polarity.
CFGR TRIGEN LL_LPTIM_GetTriggerPolarity
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value 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 821 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_GetTriggerSource | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual external trigger source.
CFGR TRIGSEL LL_LPTIM_GetTriggerSource
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value 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_RTCTAMP2
- LL_LPTIM_TRIG_SOURCE_RTCTAMP3
- LL_LPTIM_TRIG_SOURCE_COMP1
- LL_LPTIM_TRIG_SOURCE_COMP2
Definition at line 792 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledTimeout | ( | LPTIM_TypeDef * | LPTIMx ) |
Indicate whether the timeout function is enabled.
CFGR TIMOUT LL_LPTIM_IsEnabledTimeout
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
State of bit (1 or 0).
Definition at line 727 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. CFGR TRIGEN LL_LPTIM_TrigSw
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
None
Definition at line 739 of file stm32l4xx_ll_lptim.h.
Generated on Tue Jul 12 2022 17:38:57 by
