Move isotp stuff to a new folder where more bus protocols will also be

supported
This commit is contained in:
Collin Kidder
2017-05-14 09:37:57 -04:00
parent 521009ec2b
commit d766d442b9
7 changed files with 32 additions and 3 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef ISOTP_DECODER_H
#define ISOTP_DECODER_H
#include <Qt>
#include <QObject>
#include <QDebug>
#include "can_structs.h"
struct CODE_STRUCT
{
int code;
QString shortDesc;
QString longDesc;
};
class ISOTP_HANDLER : public QObject
{
Q_OBJECT
public:
explicit ISOTP_HANDLER(const QVector<CANFrame> *frames, QObject *parent = 0);
void setExtendedAddressing(bool mode);
public slots:
void updatedFrames(int);
signals:
void newISOMessage(ISOTP_MESSAGE &msg);
private:
QList<ISOTP_MESSAGE> messageBuffer;
const QVector<CANFrame> *modelFrames;
bool useExtendedAddressing;
void processFrame(const CANFrame &frame);
void checkNeedFlush(uint64_t ID);
};
#endif // ISOTP_DECODER_H