35 lines
651 B
C++
35 lines
651 B
C++
#ifndef PCANINTERFACE_H
|
|
#define PCANINTERFACE_H
|
|
|
|
#include <QObject>
|
|
#include "CANMessage.h"
|
|
#include "PCANBasic.h"
|
|
|
|
#include <QList>
|
|
|
|
|
|
//class CCANMessage;
|
|
|
|
class CPCANInterface : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CPCANInterface(QObject *parent = 0);
|
|
int Init(TPCANHandle CANDeviceChannel, TPCANBaudrate CANBaudRate);
|
|
int DeInit();
|
|
bool IsInterfaceOpened(){return CANInterfaceOpened;}
|
|
|
|
bool CANInterfaceOpened;
|
|
QList<CCANMessage*> ReadCANFullBuffer(unsigned short Channel);
|
|
|
|
private:
|
|
TPCANBaudrate mInterfaceBaudrate;
|
|
TPCANHandle mInterfaceCANHandle;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
|
|
#endif // PCANINTERFACE_H
|