39 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
40 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
84 bool sendCommand(
const char *
cmd,
char * res =
nullptr,
int cmd_len = -1,
int res_len = -1);
85 void hexDump(
char * buf,
const char * data, uint32_t size);
94 static constexpr const uint8_t DRIVER_STOP_CHAR {0x23};
95 static constexpr const uint8_t DRIVER_TIMEOUT {2};
96 static constexpr const uint8_t DRIVER_LEN {64};
bool SyncRotator(double degrees) override
SyncRotator Set current angle as the supplied angle without moving the rotator.
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
bool Handshake() override
perform handshake with device to check communication
const char * getDefaultName() override
bool saveConfigItems(FILE *fp) override
Save configuration items.
bool AbortRotator() override
AbortRotator Abort all motion.
bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
IPState MoveRotator(double degrees) override
MoveRotator Go to specific angle.
virtual ~Camelot()=default
void TimerHit() override
Callback function to be called once SetTimer duration elapses.