38 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
39 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
53 bool isMotionComplete();
54 bool getPA(uint16_t &PA);
55 int getReverseStatus();
56 bool setSteppingMode(uint8_t mode);
57 bool setRotationRate(uint8_t rate);
58 bool sleepController();
59 bool wakeupController();
60 std::string getVersion() ;
71 enum { FULL_STEP, HALF_STEP};
76 enum { POWER_SLEEP, POWER_WAKEUP};
79 IText FirmwareT[1] {};
84 uint16_t targetPA = {0};
virtual IPState HomeRotator() override
HomeRotator Go to home position.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
const char * getDefaultName() override
virtual IPState MoveRotator(double angle) override
MoveRotator Go to specific angle.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool ReverseRotator(bool enabled) override
ReverseRotator Reverse the direction of the rotator. CW is usually the normal direction,...
virtual bool Handshake() override
perform handshake with device to check communication
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.