rio.hh File Reference

Remote I/O logging interface. More...

#include <vector>
#include <QByteArray>
#include <QDebug>
#include <QObject>
#include "sensor/serialsensor.hh"
#include "settings/settings.hh"
Include dependency graph for rio.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dfti::RIOData
 Structure to hold control effector data. More...
 
class  dfti::RIO
 Serial driver to acquire data from a generic Remote I/O device. More...
 

Macros

#define ONE_BYTE   2
 Byte length for hex characters (1 byte is two hex chars, e.g. 0xFF).
 

Functions

bool dfti::validateRIOChecksum (QByteArray pkt)
 Validate the RIO packet checksum. More...
 

Variables

const char dfti::rioSep = '$'
 RIO packet separator.
 
const char dfti::rioTerm = '\n'
 RIO packet terminator.
 
const QString dfti::rioStart {"$$$"}
 RIO packet start.
 
const QString dfti::rioTermStr {"\r\n"}
 RIO packet terminator string.
 

Detailed Description

Remote I/O logging interface.

Author
Joshua Harris
License
BSD 2-Clause License

Function Documentation

bool dfti::validateRIOChecksum ( QByteArray  pkt)

Validate the RIO packet checksum.

The checksum is a simple byte-wise XOR up to but not including the checksum byte itself.

Parameters
pktA full packet to validate.
Returns
True if the packet checksum is correct.