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. | |
Public Slots inherited from dfti::SerialSensor | |
| 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... | |
Public Member Functions inherited from dfti::SerialSensor | |
| 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 | |
Protected Member Functions inherited from dfti::SerialSensor | |
| QString | validateSerialPort (QString _port) |
| Validates a proposed serial port. More... | |
Protected Attributes inherited from dfti::SerialSensor | |
| 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:

Public Slots inherited from
1.8.11