Partial implementation of a more generic and multi-threaded version of
the frame sender. Now a simplified interface is attached to the main window as well. Doesn't necessarily work just yet...
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "can_structs.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QUuid>
|
||||
|
||||
enum TriggerMask
|
||||
{
|
||||
@@ -38,6 +39,7 @@ public:
|
||||
//If ID is -1 then this is the temporary storage register. This is a shadow
|
||||
//register used to accumulate the results of a multi operation modifier.
|
||||
//if ID is -2 then this is a look up of our own data bytes stored in the class data.
|
||||
//Of course, if the ID is positive then we grab bytes or signals from newest message with that ID
|
||||
class ModifierOperand
|
||||
{
|
||||
public:
|
||||
@@ -45,6 +47,7 @@ public:
|
||||
int bus;
|
||||
int databyte;
|
||||
bool notOper; //should a bitwise NOT be applied to this prior to doing the actual calculation?
|
||||
QString signalName; //if ID is positive and there is text in here then we'll look up the signal and use its value
|
||||
};
|
||||
|
||||
//list of operations that can be done between the two operands
|
||||
@@ -73,7 +76,8 @@ public:
|
||||
class Modifier
|
||||
{
|
||||
public:
|
||||
int destByte;
|
||||
int destByte; //if -1 then target one of this ID's signals instead
|
||||
QString signalName;
|
||||
QList<ModifierOp> operations;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user