17#ifndef SBL_HW_COMPONENTS_INPUT_ENCODER_HPP_
18#define SBL_HW_COMPONENTS_INPUT_ENCODER_HPP_
33 Encoder() : state_(0), delta_(0), position_(0) {}
46 uint8_t new_state = (b ? 2u : 0u) | (a ? 1u : 0u);
49 uint8_t idx = (state_ << 2) | new_state;
53 static constexpr int8_t table[16] = {
64 int8_t step = table[idx];
Root namespace for all Sound Byte Libs code.