RTEMS 6.1-rc5
|
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) |
#define TIM_ENCODERMODE_TI1 TIM_SMCR_SMS_0 |
Quadrature encoder mode 1, x2 mode, counts up/down on TI1FP1 edge depending on TI2FP2 level
#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.
#define TIM_ENCODERMODE_TI2 TIM_SMCR_SMS_1 |
Quadrature encoder mode 2, x2 mode, counts up/down on TI2FP2 edge depending on TI1FP1 level.