QCanBusFrame so that things are more compatible with other Qt based CAN bus code. Not complete yet but getting there.
24 lines
484 B
C++
24 lines
484 B
C++
#ifndef ISOTP_MESSAGE_H
|
|
#define ISOTP_MESSAGE_H
|
|
|
|
#include <Qt>
|
|
#include <QVector>
|
|
|
|
//the same as the CANFrame struct but with arbitrary data size.
|
|
class ISOTP_MESSAGE
|
|
{
|
|
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 lastSequence;
|
|
bool isMultiframe;
|
|
QVector<unsigned char> data;
|
|
uint64_t timestamp;
|
|
};
|
|
|
|
#endif // ISOTP_MESSAGE_H
|