YULTek/Otarcik_CAN/Sources/CANDevice.h
2023-01-18 17:57:12 -05:00

36 lines
726 B
C++

#ifndef CANDEVICE_H
#define CANDEVICE_H
#include "defines.h"
#include <QObject>
#include "CANAnalyzer.h"
#include "CANMessage.h"
#include "PCANInterface.h"
#include "CANDatabase.h"
#include <QList>
class CCANDevice : public QObject
{
Q_OBJECT
public:
explicit CCANDevice(QObject *parent = 0);
~CCANDevice();
int Init(QString DatabaseFileName, unsigned short CANDeviceID, unsigned short CANDeviceBaudRate);
private:
QString mDeviceDatabaseFileName;
unsigned int mCANDeviceID;
CCANAnalyzer mCANAnalyzer; //The module that handles the USB puck and decodes the data
CCANDatabase mCANDatabase; //The device's database loaded from dbc file
signals:
public slots:
};
#endif // CANDEVICE_H