54 virtual bool Connect()
override;
62 virtual std::string
name()
override
64 return "CONNECTION_SERIAL";
67 virtual std::string
label()
override
83 virtual uint32_t
baud();
126 virtual bool ISNewText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n)
override;
127 virtual bool ISNewSwitch(
const char *dev,
const char *
name,
ISState *states,
char *names[],
int n)
override;
133 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 ...
INDI::PropertySwitch RefreshSP
std::string m_PortMatchPattern
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
virtual const char * port()
INDI::PropertySwitch AutoSearchSP
virtual std::string name() override
BaudRate
Supported baud rates.
INDI::PropertySwitch SystemPortSP
std::vector< std::string > m_SystemPorts
INDI::PropertySwitch BaudRateSP
virtual void Activated() override
Activated Function called by the framework when the plugin is activated (i.e. selected by the user)....
void setPortMatchPattern(const std::string &pattern)
setPortMatchPattern Set a regex pattern used to automatically select a serial port from the discovere...
bool Refresh(bool silent=false)
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
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
INDI::PropertyText PortTP
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
INDI::PropertyViewText * getText() const
IPerm
Permission hint, with respect to client.
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...