STM32L486xx HAL User Manual
Defines
Encoder Mode
LPTIM Exported Constants

Defines

#define LL_LPTIM_ENCODER_MODE_RISING   0x00000000U
#define LL_LPTIM_ENCODER_MODE_FALLING   LPTIM_CFGR_CKPOL_0
#define LL_LPTIM_ENCODER_MODE_RISING_FALLING   LPTIM_CFGR_CKPOL_1

Define Documentation

#define LL_LPTIM_ENCODER_MODE_FALLING   LPTIM_CFGR_CKPOL_0

The falling edge is the active edge used for counting

Definition at line 273 of file stm32l4xx_ll_lptim.h.

#define LL_LPTIM_ENCODER_MODE_RISING   0x00000000U

The rising edge is the active edge used for counting

Definition at line 272 of file stm32l4xx_ll_lptim.h.

#define LL_LPTIM_ENCODER_MODE_RISING_FALLING   LPTIM_CFGR_CKPOL_1

Both edges are active edges

Definition at line 274 of file stm32l4xx_ll_lptim.h.