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
Initializes the default properties for the focuser device. Sets up standard INDI properties,...
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
Updates the state and definition of properties based on the current connection status....
void TimerHit() override
Callback function to be called once SetTimer duration elapses.
bool saveConfigItems(FILE *fp) override
virtual bool Handshake() override
Performs a device-specific handshake after a connection is established. This method should be overrid...
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Processes incoming new switch states from the client for this device. Handles updates to FocuserInter...
Number vector property descriptor.
Switch vector property descriptor.