My Project
Loading...
Searching...
No Matches

Macros

#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)
 

Detailed Description

Macro Definition Documentation

◆ TIM_ENCODERMODE_TI1

#define TIM_ENCODERMODE_TI1   TIM_SMCR_SMS_0

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

◆ TIM_ENCODERMODE_TI12

#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.

◆ TIM_ENCODERMODE_TI2

#define TIM_ENCODERMODE_TI2   TIM_SMCR_SMS_1

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