54 virtual bool Connect()
override;
62 virtual std::string
name()
override
64 return "CONNECTION_SERIAL";
67 virtual std::string
label()
override
77 return PortTP[0].getText();
83 virtual uint32_t
baud();
126 virtual bool ISNewText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n)
override;
133 bool Refresh(
bool silent =
false);
181 virtual bool Connect(
const char *port, uint32_t
baud);
Interface(INDI::DefaultDevice *dev, Type type=CONNECTION_NONE)
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.
Serial(INDI::DefaultDevice *dev, IPerm permission=IP_RW)
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...
IPerm
Permission hint, with respect to client.
*brief user defined string literal for JSON values *sa std::size_t n
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...