modm API documentation
|
This driver decodes a AB (incremental) encoder signal. More...
#include <modm/driver/encoder/bitbang_encoder_input.hpp>
Public Typedefs | |
using | InputType = modm::platform::Gpio::InputType |
Public Member Functions | |
void | initialize (const modm::platform::Gpio::InputType inputType=modm::platform::Gpio::InputType::PullUp) |
void | update () |
DeltaType | getDelta () |
This driver decodes a AB (incremental) encoder signal.
SignalA | First modm::platform::Gpio pin to input the encoder signal. |
SignalB | Second modm::platform::Gpio pin to input the encoder signal. |
PRESCALER | n_cycles to count as one in-/decrement. |
DeltaType | Must be signed integral and fit at least PRESCALER. The Bigger DeltaType, the more inc-/decrements can be stored temporarily. |
ValueType | Must be unsigned integral. |