Reworked value reading.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <QMutex>
|
||||
#include <atomic>
|
||||
|
||||
#include <bcdataitem.h>
|
||||
#include <bcdatavalue.h>
|
||||
#include <bccandrivertinycan.h>
|
||||
|
||||
// template ...
|
||||
@@ -18,13 +18,13 @@ public:
|
||||
|
||||
explicit BCTransmitter(QObject *parent = nullptr);
|
||||
|
||||
uint32_t readRawValue( BCDevice::ID deviceID, BC::ID registerID ) const override;
|
||||
void writeRawValue(BCDevice::ID deviceID, BC::ID registerID, uint8_t value ) const override;
|
||||
uint32_t readRawByte( uint32_t deviceID, uint8_t registerID ) const override;
|
||||
void writeRawByte( uint32_t deviceID, uint8_t registerID, uint8_t value ) const override;
|
||||
|
||||
public slots:
|
||||
|
||||
void onToggleConnectionState( bool connect );
|
||||
void enqueueValueOp(BC::OpID opID, const BCDataItem* value );
|
||||
void enqueueValueOp(BC::OpID opID, const BCDataValue* value );
|
||||
void processValueOp(BC::OpID opID);
|
||||
|
||||
signals:
|
||||
@@ -34,7 +34,7 @@ signals:
|
||||
|
||||
private:
|
||||
|
||||
using BCDataQueue = QQueue<const BCDataItem*>;
|
||||
using BCDataQueue = QQueue<const BCDataValue*>;
|
||||
|
||||
BCDataQueue _valueQueue;
|
||||
QMutex _mutex;
|
||||
|
||||
Reference in New Issue
Block a user