43 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
78 bool readTemperature();
85 bool setStepping(SteppingMode mode);
101 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
110 void hexDump(
char * buf,
const char * data,
int size);
116 bool getStartupValues();
126 int32_t m_TargetDiff { 0 };
127 uint16_t m_TemperatureCounter { 0 };
132 static constexpr
const char * STEPPING_TAB =
"Stepping";
134 static const char DRIVER_STOP_CHAR { 0x23 };
137 static constexpr
const uint8_t DRIVER_TEMPERATURE_FREQ {10};
139 static constexpr
const uint8_t DRIVER_TIMEOUT {3};
141 static constexpr
const uint8_t DRIVER_LEN {64};
bool SyncFocuser(uint32_t ticks) override
SyncFocuser Set current position to ticks without moving the focuser.
const char * getDefaultName() override
bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
IPState MoveRelFocuser(FocusDirection dir, uint32_t ticks) override
MoveFocuser the focuser to an relative position.
IPState MoveAbsFocuser(uint32_t targetTicks) override
MoveFocuser the focuser to an absolute position.
bool AbortFocuser() override
AbortFocuser all focus motion.
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
bool saveConfigItems(FILE *fp) override
saveConfigItems Saves the Device Port and Focuser Presets in the configuration file
virtual bool Handshake() override
perform handshake with device to check communication
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
Number vector property descriptor.
Switch vector property descriptor.