STM32L486xx HAL User Manual
Defines
Encoder Mode
TIM Exported Constants

Defines

#define LL_TIM_ENCODERMODE_X2_TI1   TIM_SMCR_SMS_0
#define LL_TIM_ENCODERMODE_X2_TI2   TIM_SMCR_SMS_1
#define LL_TIM_ENCODERMODE_X4_TI12   (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)

Define Documentation

#define LL_TIM_ENCODERMODE_X2_TI1   TIM_SMCR_SMS_0

Quadrature encoder mode 1, x2 mode - Counter counts up/down on TI1FP1 edge depending on TI2FP2 level

Definition at line 838 of file stm32l4xx_ll_tim.h.

Referenced by LL_TIM_ENCODER_StructInit().

#define LL_TIM_ENCODERMODE_X2_TI2   TIM_SMCR_SMS_1

Quadrature encoder mode 2, x2 mode - Counter counts up/down on TI2FP2 edge depending on TI1FP1 level

Definition at line 839 of file stm32l4xx_ll_tim.h.

#define LL_TIM_ENCODERMODE_X4_TI12   (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)

Quadrature encoder mode 3, x4 mode - Counter counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input

Definition at line 840 of file stm32l4xx_ll_tim.h.