Introduce a vector of commands currently sent to device controller.
This commit is contained in:
parent
de61de85f1
commit
9daa5e17cb
@ -7,6 +7,7 @@
|
||||
//#include <QString>
|
||||
#include <QTimer>
|
||||
#include <QSerialPort>
|
||||
#include <QVector>
|
||||
#include "tslib.h"
|
||||
#include "controlBus.h"
|
||||
#include "interfaces.h"
|
||||
@ -32,6 +33,10 @@ class T_com : public QObject //, public QPlainTextEdit
|
||||
// QSerialPort *CatSerial = nullptr;
|
||||
QSerialPort *CatSerial;
|
||||
|
||||
QVector<uint16_t> readCmds; // list of active commands sent to DC
|
||||
|
||||
|
||||
|
||||
//char oeffneSerialPort();
|
||||
char open_Serial_Port();
|
||||
void closeSerialPort();
|
||||
@ -61,6 +66,9 @@ public:
|
||||
bool readFromSerial(QByteArray &data, uint16_t &sendLength);
|
||||
// retval: true: data available
|
||||
|
||||
QVector<uint16_t> &getReadCmds() { return readCmds; }
|
||||
QVector<uint16_t> const &getReadCmds() const { return readCmds; }
|
||||
|
||||
/*
|
||||
uint8_t getAllPortPins(void);
|
||||
// rs232pins: all signals bitwise coded in one byte:
|
||||
|
Loading…
Reference in New Issue
Block a user