32 lines
635 B
C++
32 lines
635 B
C++
#ifndef ISOTP_DECODER_H
|
|
#define ISOTP_DECODER_H
|
|
|
|
#include <QObject>
|
|
#include <QDebug>
|
|
#include "can_structs.h"
|
|
|
|
class ISOTP_DECODER : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ISOTP_DECODER(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
|