#include <MIDI_Outputs/Abstract/EncoderState.hpp>
Class to keep track of relative position changes of rotary encoders.
Definition at line 11 of file EncoderState.hpp.
Public Member Functions | |
EncoderState (int16_t speedMultiply, uint8_t pulsesPerStep) | |
int16_t | update (Enc_t encval) |
void | setSpeedMultiply (int16_t speedMultiply) |
int16_t | getSpeedMultiply () const |
Private Types | |
using | SignedEnc_t = typename std::make_signed<Enc_t>::type |
Private Attributes | |
int16_t | speedMultiply |
uint8_t | pulsesPerStep |
int16_t | remainder = 0 |
Enc_t | deltaOffset = 0 |
|
private |
Definition at line 13 of file EncoderState.hpp.
|
inline |
Definition at line 20 of file EncoderState.hpp.
|
inline |
Definition at line 23 of file EncoderState.hpp.
|
inline |
Definition at line 40 of file EncoderState.hpp.
|
inline |
Definition at line 45 of file EncoderState.hpp.
|
private |
Definition at line 14 of file EncoderState.hpp.
|
private |
Definition at line 15 of file EncoderState.hpp.
|
private |
Definition at line 16 of file EncoderState.hpp.
|
private |
Definition at line 17 of file EncoderState.hpp.