12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef BASECAN_H
- #define BASECAN_H
- #include <QThread>
- #include "ivfault.h"
- #include "ivlog.h"
- class basecan_msg
- {
- public:
- unsigned int id;
- bool isExtern;
- bool isRemote;
- unsigned char nLen;
- unsigned char data[8];
- };
- class basecan : public QThread
- {
- Q_OBJECT
- public:
- basecan();
- ~basecan();
- virtual int GetMessage(const int nch,basecan_msg * pMsg,const int nCap);
- virtual int SetMessage(const int nch,basecan_msg * pMsg); //Send Message
- virtual void startdev();
- virtual void stopdev();
- virtual bool IsOpen() = 0;
- iv::Ivfault *mfault = nullptr;
- iv::Ivlog *mivlog = nullptr;
- signals:
- void SIG_CANOPENSTATE(bool bCAN,int nR,const char * strres);
- void SIGTEST();
- };
- #endif // BASECAN_H
|