|
modm API documentation
|
Functions | |
| template<class Timer , typename SignalA , typename SignalB , uint16_t PRESCALER = 4, std::signed_integral DeltaType = int16_t> | |
| modm::requires (std::numeric_limits< DeltaType >::max ()< std::pow (2, 31)) class EncoderInput | |
| Gray code decoder using STM32 Timer mode. More... | |
lbuild module: modm:driver:encoder_input
This driver decodes an AB (incremental) encoder signal.
| modm::requires | ( | ) |
Gray code decoder using STM32 Timer mode.
| Timer | STM32 General purpose timer |
| SignalA | First modm::platform::Gpio pin that connects to Timer::Ch1 |
| SignalB | Second modm::platform::Gpio pin that connects to Timer::Ch2 |
| PRESCALER | How many encoder pulses to count as one |
| DeltaType | For very fast or high resolution encoder, int32_t may be required |