Converted more code to be easier to generalize to larger CAN payloads
for CAN-FD. Improved some code to be faster. Fixed up some compile time warnings.
This commit is contained in:
@@ -3,21 +3,16 @@
|
||||
|
||||
#include <Qt>
|
||||
#include <QVector>
|
||||
#include <can_structs.h>
|
||||
|
||||
//the same as the CANFrame struct but with arbitrary data size.
|
||||
class ISOTP_MESSAGE
|
||||
//Now a child class of CANFrame. We just add the ability to track how long it was supposed to be and other
|
||||
//ISOTP related details. But, mostly just CANFrame.
|
||||
class ISOTP_MESSAGE : public CANFrame
|
||||
{
|
||||
public:
|
||||
uint32_t ID;
|
||||
int bus;
|
||||
bool extended;
|
||||
bool isReceived;
|
||||
int len; //# of bytes this message should have (as reported)
|
||||
int actualSize; //# we actually got
|
||||
int reportedLength;
|
||||
int lastSequence;
|
||||
bool isMultiframe;
|
||||
QVector<unsigned char> data;
|
||||
uint64_t timestamp;
|
||||
};
|
||||
|
||||
#endif // ISOTP_MESSAGE_H
|
||||
|
||||
Reference in New Issue
Block a user