STM32L486xx HAL User Manual
Defines
TIM Encoder Mode
TIM Exported Constants

Defines

#define TIM_ENCODERMODE_TI1   TIM_SMCR_SMS_0
#define TIM_ENCODERMODE_TI2   TIM_SMCR_SMS_1
#define TIM_ENCODERMODE_TI12   (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)

Define Documentation

#define TIM_ENCODERMODE_TI1   TIM_SMCR_SMS_0

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

Definition at line 652 of file stm32l4xx_hal_tim.h.

#define TIM_ENCODERMODE_TI12   (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)

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

Definition at line 654 of file stm32l4xx_hal_tim.h.

#define TIM_ENCODERMODE_TI2   TIM_SMCR_SMS_1

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

Definition at line 653 of file stm32l4xx_hal_tim.h.