![]() |
API Documentation
|
A ConnectionBackend that allows the software to interface with QSerialPort for communicating with SerialPort devices. More...
#include <SerialPortConnection.h>
Public Member Functions | |
| virtual uint04 | bytesAvailable () const override |
| virtual void | close () override |
| void | handleSerialPortError (int error, ProgressInfo *log) |
| virtual bool | isOpen () const override |
| virtual TranslatedString | lastError () const override |
| virtual bool | open (const ConnectionInfo &request) override |
| virtual uint04 | peek (char *s, uint04 size) const override |
| virtual uint04 | rx (char *, uint04 size=Constant< uint04 >::Max) override |
| SerialPortConnection (ProgressInfo *log) | |
| bool | setSerialPort (QSerialPort *serial_port, ConnectionOpenType connection_type=ConnectionOpenType::e_read_write, ProgressInfo *log=nullptr) |
| String | threadID () const override |
| virtual void | tx (const String &command) override |
| virtual bool | waitForReadyRead (const TimeSpan &span) override |
| ~SerialPortConnection () | |
Public Member Functions inherited from ConnectionBackend | |
| ConnectionBackend (ProgressInfo *log) | |
Static Public Member Functions | |
| static ConnectionInfo | CreateInfo (const QSerialPort &value) |
| static ConnectionInfo | CreateInfo (const QSerialPortInfo &value) |
| static void | FromString (const String &string, QSerialPort &value) |
| static void | ToString (const QSerialPort &value, String &string) |
Protected Attributes | |
| TranslatedString | m_last_error |
| QSerialPort * | m_serial_port = nullptr |
Protected Attributes inherited from ConnectionBackend | |
| ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
| void | connectionStateChangedSignal (ConnectionState state) |
| void | dataAvailableSignal () |
A ConnectionBackend that allows the software to interface with QSerialPort for communicating with SerialPort devices.
| SerialPortConnection | ( | ProgressInfo * | log | ) |
| ~SerialPortConnection | ( | ) |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
static |
|
static |
|
static |
| void handleSerialPortError | ( | int | error, |
| ProgressInfo * | log ) |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
Implements ConnectionBackend.
Implements ConnectionBackend.
| bool setSerialPort | ( | QSerialPort * | serial_port, |
| ConnectionOpenType | connection_type = ConnectionOpenType::e_read_write, | ||
| ProgressInfo * | log = nullptr ) |
|
overridevirtual |
Reimplemented from ConnectionBackend.
|
static |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
protected |
|
protected |