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

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