dfti::RIO Class Reference
Serial driver to acquire data from a generic Remote I/O device. More...
#include <rio.hh>
Inheritance diagram for dfti::RIO:

Collaboration diagram for dfti::RIO:

Public Slots | |
void | readData (void) |
Slot to read in data over serial and parse complete packets. | |
![]() | |
virtual void | readData (void)=0 |
Slot to read in data over serial and parse complete packets. | |
Signals | |
void | measurementUpdate (RIOData data) |
Emitted to share new RIOData. | |
Public Member Functions | |
RIO (Settings *_settings, QObject *_parent=nullptr) | |
Constructor. More... | |
![]() | |
SerialSensor (Settings *_settings, QObject *_parent=nullptr) | |
Constructor. More... | |
~SerialSensor () | |
Destructor. | |
void | configureSerial (QString _portName) |
Set the serial port parameters. More... | |
void | init () |
Initialize the serial port. | |
bool | isOpen (void) |
Returns true if the serial port is open. More... | |
virtual void | open (void) |
Opens the serial port. More... | |
void | setBaudRate (quint32 rate) |
Set the serial port baud rate. More... | |
void | threadStart (void) |
Start the sensor in a thread. | |
Additional Inherited Members | |
![]() | |
QString | validateSerialPort (QString _port) |
Validates a proposed serial port. More... | |
![]() | |
QPointer< Settings > | settings = nullptr |
Settings object. | |
QString | portName {""} |
Serial port name. | |
QSerialPort::BaudRate | baudRate {QSerialPort::Baud115200} |
Serial port baud rate. | |
bool | _valid_serial = false |
Indicates if serial port passed validation. | |
QPointer< QSerialPort > | _port = nullptr |
Serial port object. | |
Detailed Description
Serial driver to acquire data from a generic Remote I/O device.
Reads in data from a generic RIO over a serial port and parses the data.
The data packet format is $$$field_1$field_2$...$field_n$checksum\r\n
with the checksum byte being represented in hex.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
_settings Pointer to settings object. _parent Pointer to parent QObject.
The documentation for this class was generated from the following files: