#ifndef PCANINTERFACE_H #define PCANINTERFACE_H #include #include "CANMessage.h" #include "PCANBasic.h" #include //class CCANMessage; class CPCANInterface : public QObject { Q_OBJECT public: explicit CPCANInterface(QObject *parent = 0); int Init(TPCANHandle CANDeviceHandle, TPCANBaudrate CANBaudRate); int DeInit(); bool IsInterfaceOpened(){return CANInterfaceOpened;} int GetDeviceHandle(quint8 DeviceID, TPCANHandle &Handle); bool CANInterfaceOpened; QList ReadCANFullBuffer(unsigned short Channel); int SendCANMessage(unsigned short Channel,CCANMessage Msg); private: TPCANBaudrate mInterfaceBaudrate; TPCANHandle mInterfaceCANHandle; signals: public slots: }; #endif // PCANINTERFACE_H