52 virtual bool Connect()
override;
60 virtual std::string
name()
override
62 return "CONNECTION_SERIAL";
65 virtual std::string
label()
override
81 virtual uint32_t
baud();
106 virtual bool ISNewText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n)
override;
107 virtual bool ISNewSwitch(
const char *dev,
const char *
name,
ISState *states,
char *names[],
int n)
override;
113 bool Refresh(
bool silent =
false);
The Interface class is the base class for all INDI connection plugins.
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
ISwitchVectorProperty RefreshSP
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
virtual std::string name() override
BaudRate
Supported baud rates.
ITextVectorProperty PortTP
std::vector< std::string > m_SystemPorts
virtual void Activated() override
Activated Function called by the framework when the plugin is activated (i.e. selected by the user)....
bool Refresh(bool silent=false)
ISwitchVectorProperty BaudRateSP
void setWordSize(const uint8_t &value)
setWordSize Set word size to be used in the serial connection. Default 8
void setDefaultBaudRate(BaudRate newRate)
setDefaultBaudRate Set default baud rate. The default baud rate is 9600 unless otherwise changed by t...
virtual void Deactivated() override
Deactivated Function called by the framework when the plugin is deactivated. It is usually used to de...
uint8_t getWordSize() const
ISwitchVectorProperty SystemPortSP
ISwitchVectorProperty AutoSearchSP
Serial(INDI::DefaultDevice *dev)
virtual bool Disconnect() override
Disconnect Disconnect from device.
void setParity(const uint8_t &value)
setParity Set parity to be used in the serial connection. Default 0 (NONE)
virtual bool saveConfigItems(FILE *fp) override
void setDefaultPort(const char *port)
setDefaultPort Set default port. Call this function in initProperties() of your driver if you want to...
virtual bool Connect() override
Connect Connect to device via the implemented communication medium. Do not perform any handshakes.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
uint8_t getParity() const
uint8_t getStopBits() const
void setStopBits(const uint8_t &value)
setStopBits Set stop bits to be used in the serial connection. Default 0
virtual bool processHandshake()
virtual std::string label() override
virtual const char * port()
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...
Switch vector property descriptor.
Text vector property descriptor.