Introduce a vector of commands currently sent to device controller.

This commit is contained in:
Gerhard Hoffmann 2024-10-15 09:54:09 +02:00
parent de61de85f1
commit 9daa5e17cb

View File

@ -7,6 +7,7 @@
//#include <QString> //#include <QString>
#include <QTimer> #include <QTimer>
#include <QSerialPort> #include <QSerialPort>
#include <QVector>
#include "tslib.h" #include "tslib.h"
#include "controlBus.h" #include "controlBus.h"
#include "interfaces.h" #include "interfaces.h"
@ -32,6 +33,10 @@ class T_com : public QObject //, public QPlainTextEdit
// QSerialPort *CatSerial = nullptr; // QSerialPort *CatSerial = nullptr;
QSerialPort *CatSerial; QSerialPort *CatSerial;
QVector<uint16_t> readCmds; // list of active commands sent to DC
//char oeffneSerialPort(); //char oeffneSerialPort();
char open_Serial_Port(); char open_Serial_Port();
void closeSerialPort(); void closeSerialPort();
@ -61,6 +66,9 @@ public:
bool readFromSerial(QByteArray &data, uint16_t &sendLength); bool readFromSerial(QByteArray &data, uint16_t &sendLength);
// retval: true: data available // retval: true: data available
QVector<uint16_t> &getReadCmds() { return readCmds; }
QVector<uint16_t> const &getReadCmds() const { return readCmds; }
/* /*
uint8_t getAllPortPins(void); uint8_t getAllPortPins(void);
// rs232pins: all signals bitwise coded in one byte: // rs232pins: all signals bitwise coded in one byte: