8#ifndef USEREXTENSIONS_SRC_MTENCODERSPI_H_
9#define USEREXTENSIONS_SRC_MTENCODERSPI_H_
19#define MAGNTEK_READ 0x80
41 uint32_t
getCpr()
override;
74 uint8_t
txbuf[4] = {0x03 | MAGNTEK_READ,0,0,0};
int32_t getPos() override
static bool isCreatable()
uint32_t getCpr() override
cpp_freertos::BinarySemaphore requestNewDataSem
void saveFlash() override
cpp_freertos::BinarySemaphore waitForUpdateSem
int32_t getPosAbs() override
void writeSpi(uint8_t addr, uint8_t data)
const ClassIdentifier getInfo()
Command handlers always have class infos. Works well with ChoosableClass.
void restoreFlash() override
EncoderType getEncoderType()
void spiTxRxCompleted(SPIPort *port)
uint8_t readSpi(uint8_t addr)
bool updateAngleStatusCb()
void setCsPin(uint8_t cspin)
static ClassIdentifier info
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies)
std::vector< OutputPin > & getFreeCsPins()