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