30#define UDP_STATUS_CMD "SGETAL"
31#define UDP_OUTPUT_CMD "S%1uO%03u"
32#define UDP_THRESHOLD_CMD "STHR%1u%1u"
33#define UDP_CALIBRATION_CMD "SCA%1u%1u%1u"
34#define UDP_LINK_CMD "SLINK%1u"
35#define UDP_AUTO_CMD "SAUTO%1u"
36#define UDP_AGGRESSIVITY_CMD "SAGGR%1u"
37#define UDP_IDENTIFY_CMD "SWHOIS"
38#define UDP_RESET_CMD "SEERAZ"
43#define UDP_DONE_RESPONSE "DONE"
67#define UDP_STATUS_RESPONSE "##%f/%f/%f/%f/%f/%u/%u/%u/%u/%u/%u/%u/%u/%u/%u/%u**"
68#define UDP_STATUS_START "##"
69#define UDP_STATUS_SEPARATOR "/"
70#define UDP_STATUS_END "**"
72#define UDP_IDENTIFY_RESPONSE "UDP2(%u)"
90 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
91 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
92 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
96 virtual bool SetPowerPort(
size_t port,
bool enabled)
override;
97 virtual bool SetDewPort(
size_t port,
bool enabled,
double dutyCycle)
override;
98 virtual bool SetVariablePort(
size_t port,
bool enabled,
double voltage)
override;
102 virtual bool SetUSBPort(
size_t port,
bool enabled)
override;
106 bool sendCommand(
const char *
cmd,
char *response);
115 bool setOutput(
unsigned int channel,
unsigned int value);
116 bool setCalibrations(
unsigned int ch1,
unsigned int ch2,
unsigned int ambient);
117 bool setThresholds(
unsigned int ch1,
unsigned int ch2);
118 bool setAutoMode(
bool enable);
119 bool setLinkMode(
bool enable);
120 bool setAggressivity(
unsigned int aggressivity);
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool SetUSBPort(size_t port, bool enabled) override
SetUSBPort Set USB port on/off.
virtual bool SetVariablePort(size_t port, bool enabled, double voltage) override
SetVariablePort Set variable voltage port.
virtual bool SetAutoDewEnabled(size_t port, bool enabled) override
SetAutoDewEnabled Enable/disable automatic dew control.
virtual bool SetPowerPort(size_t port, bool enabled) override
SetPowerPort Set power port on/off.
virtual ~USBDewpoint()=default
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool CyclePower() override
CyclePower Cycle power to all ports.
virtual bool SetLEDEnabled(bool enabled) override
SetLEDEnabled Enable/disable power LEDs.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual const char * getDefaultName() override
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool SetDewPort(size_t port, bool enabled, double dutyCycle) override
SetDewPort Set DEW/Dew port duty cycle.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...