Added an ISO-TP decoder. At the moment it tries to decode all frames

and that leads to odd results.
This commit is contained in:
Collin Kidder
2016-03-06 20:44:25 -05:00
parent f6fe53163c
commit 66675e47b3
11 changed files with 412 additions and 5 deletions
+36
View File
@@ -0,0 +1,36 @@
#ifndef ISOTP_INTERPRETERWINDOW_H
#define ISOTP_INTERPRETERWINDOW_H
#include <QDialog>
#include "can_structs.h"
#include "isotp_decoder.h"
namespace Ui {
class ISOTP_InterpreterWindow;
}
class ISOTP_InterpreterWindow : public QDialog
{
Q_OBJECT
public:
explicit ISOTP_InterpreterWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~ISOTP_InterpreterWindow();
void showEvent(QShowEvent*);
private slots:
void newISOMessage(ISOTP_MESSAGE &msg);
private:
Ui::ISOTP_InterpreterWindow *ui;
ISOTP_DECODER *decoder;
const QVector<CANFrame> *modelFrames;
QVector<ISOTP_MESSAGE> messages;
void closeEvent(QCloseEvent *event);
void readSettings();
void writeSettings();
};
#endif // ISOTP_INTERPRETERWINDOW_H