51 virtual bool ISNewSwitch(
const char *dev,
const char *name,
52 ISState *states,
char *names[],
int n)
override;
53 virtual bool ISNewNumber(
const char *dev,
const char *name,
54 double values[],
char *names[],
int n)
override;
65 bool setMaximumSpeed(
int value);
66 bool setRelativeCommand(
SET_COMMAND command,
int value);
70 bool getStartupData();
71 bool getFirmwareInfo();
72 bool getSettingInfo();
74 bool getFilterPosition();
75 bool getMaximumSpeed();
78 bool getMaxFilterSlots();
82 bool getOffset(
int filter);
83 bool setOffset(
int filter,
int shift);
86 bool reset(
int value);
91 bool receiveResponse(
char * res,
bool optional =
false);
92 bool sendCommand(
const char *
cmd,
char * res);
93 void hexDump(
char * buf,
const char * data,
int size);
101 IText FirmwareInfoT[3] {};
131 COMMAND_CLEAR_CALIBRATION,
132 COMMAND_PERFORM_CALIBRAITON,
135 uint8_t m_FirmwareVersion { 0 };
140 static constexpr
const char * SETTINGS_TAB =
"Settings";
143 static const char DRIVER_STOP_CHAR { 0xA };
146 static constexpr
const int DRIVER_TIMEOUT {15};
149 static constexpr
const int OPTIONAL_TIMEOUT {1};
152 static constexpr
const int DRIVER_LEN {64};
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
bool Handshake() override
perform handshake with device to check communication
virtual ~XAGYLWheel() override
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
bool SelectFilter(int) override
Select a new filter position.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
const char * getDefaultName() override
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.