14#ifndef SBL_HAL_ENCODER_INPUT_HPP_
15#define SBL_HAL_ENCODER_INPUT_HPP_
35template<
typename Driver>
37 enc.
update(Driver::read(a), Driver::read(b));
Quadrature encoder with Gray code state machine and position tracking.
void update(bool a, bool b)
Feed quadrature signals.
Quadrature encoder component — Gray code state machine.
void read(Encoder &enc, const GpioHandle &a, const GpioHandle &b)
Read quadrature GPIO pins and feed into Encoder.
Root namespace for all Sound Byte Libs functionality.
GPIO pin handle with port, pin number, and polarity.
Common types for SBL hardware abstraction.