|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <encoder_step.hpp>
Public Member Functions | |
| EncoderStep (int8_t divisor=4) | |
| int8_t | process (int32_t raw_delta) |
| Feed raw encoder delta, returns step (-1, 0, or +1). | |
| int8_t | accumulator () const |
| Current accumulator value. | |
| void | reset () |
| Reset accumulator to zero. | |
Definition at line 23 of file encoder_step.hpp.
|
inlineexplicit |
| divisor | Pulses per detent (e.g., 4 for EC11). Must be >= 1. |
Definition at line 26 of file encoder_step.hpp.
|
inline |
Current accumulator value.
Definition at line 44 of file encoder_step.hpp.
|
inline |
Feed raw encoder delta, returns step (-1, 0, or +1).
Definition at line 30 of file encoder_step.hpp.
|
inline |
Reset accumulator to zero.
Definition at line 47 of file encoder_step.hpp.