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
Encoder Mode
[LPTIM Exported Functions]
Functions | |
__STATIC_INLINE void | LL_LPTIM_SetEncoderMode (LPTIM_TypeDef *LPTIMx, uint32_t EncoderMode) |
Configure the encoder mode. | |
__STATIC_INLINE uint32_t | LL_LPTIM_GetEncoderMode (LPTIM_TypeDef *LPTIMx) |
Get actual encoder mode. | |
__STATIC_INLINE void | LL_LPTIM_EnableEncoderMode (LPTIM_TypeDef *LPTIMx) |
Enable the encoder mode. | |
__STATIC_INLINE void | LL_LPTIM_DisableEncoderMode (LPTIM_TypeDef *LPTIMx) |
Disable the encoder mode. | |
__STATIC_INLINE uint32_t | LL_LPTIM_IsEnabledEncoderMode (LPTIM_TypeDef *LPTIMx) |
Indicates whether the LPTIM operates in encoder mode. |
Function Documentation
__STATIC_INLINE void LL_LPTIM_DisableEncoderMode | ( | LPTIM_TypeDef * | LPTIMx ) |
Disable the encoder mode.
- Note:
- This function must be called when the LPTIM instance is disabled. CFGR ENC LL_LPTIM_DisableEncoderMode
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
None
Definition at line 979 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE void LL_LPTIM_EnableEncoderMode | ( | LPTIM_TypeDef * | LPTIMx ) |
Enable the encoder mode.
- Note:
- This function must be called when the LPTIM instance is disabled.
- In this mode the LPTIM instance must be clocked by an internal clock source. Also, the prescaler division ratio must be equal to 1.
- LPTIM instance must be configured in continuous mode prior enabling the encoder mode. CFGR ENC LL_LPTIM_EnableEncoderMode
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
None
Definition at line 967 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_GetEncoderMode | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual encoder mode.
CFGR CKPOL LL_LPTIM_GetEncoderMode
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value can be one of the following values: - LL_LPTIM_ENCODER_MODE_RISING
- LL_LPTIM_ENCODER_MODE_FALLING
- LL_LPTIM_ENCODER_MODE_RISING_FALLING
Definition at line 951 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE uint32_t LL_LPTIM_IsEnabledEncoderMode | ( | LPTIM_TypeDef * | LPTIMx ) |
Indicates whether the LPTIM operates in encoder mode.
CFGR ENC LL_LPTIM_IsEnabledEncoderMode
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
State of bit (1 or 0).
Definition at line 990 of file stm32l4xx_ll_lptim.h.
__STATIC_INLINE void LL_LPTIM_SetEncoderMode | ( | LPTIM_TypeDef * | LPTIMx, |
uint32_t | EncoderMode | ||
) |
Configure the encoder mode.
- Note:
- This function must be called when the LPTIM instance is disabled. CFGR CKPOL LL_LPTIM_SetEncoderMode
- Parameters:
-
LPTIMx Low-Power Timer instance EncoderMode This parameter can be one of the following values: - LL_LPTIM_ENCODER_MODE_RISING
- LL_LPTIM_ENCODER_MODE_FALLING
- LL_LPTIM_ENCODER_MODE_RISING_FALLING
- Return values:
-
None
Definition at line 937 of file stm32l4xx_ll_lptim.h.
Generated on Tue Jul 12 2022 17:38:57 by
