8#ifndef SHIFTERANALOG_H_
9#define SHIFTERANALOG_H_
32 mode,
x12,
x56,
y135,
y246,
revbtn,
cspin,
xchan,
ychan,
vals,
gear
37 const std::array<std::string, number_of_modes>
mode_names {
"G29-H",
"G29 Sequential",
"G27-H",
"G27 Sequential"};
38 static constexpr std::array<bool, number_of_modes>
mode_uses_spi {
false,
false,
true,
true};
58 virtual std::string
getHelpstring(){
return "Analog 6+1 gear shifter button source";}
100 void setCSPin(uint8_t new_cs_pin_num);
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies) override
const std::array< std::string, number_of_modes > mode_names
std::unique_ptr< G27ShifterButtonClient > g27ShifterButtonClient
const ClassType getClassType() override
returns the used classchooser selection id of this instance
static ClassIdentifier info
int getUserButtons(uint64_t *buf)
void updateReverseState()
void saveFlash() override
static constexpr std::array< bool, number_of_modes > mode_uses_local_reverse
virtual std::string getHelpstring()
void restoreFlash() override
void setCSPin(uint8_t new_cs_pin_num)
static bool isG27Mode(ShifterMode m)
static constexpr int number_of_modes
const ClassIdentifier getInfo()
static bool isCreatable()
uint8_t readButtons(uint64_t *buf) override
void setMode(ShifterMode newMode)
static constexpr std::array< bool, number_of_modes > mode_uses_spi