add filters & callback support

This commit is contained in:
canpadawan
2016-06-20 17:34:30 +02:00
parent 8216e152c9
commit 1a195fe360
6 changed files with 172 additions and 52 deletions
-12
View File
@@ -18,18 +18,6 @@ public:
SocketCan(QString portName);
virtual ~SocketCan();
signals:
void error(const QString &);
void status(CANCon::status);
void deviceInfo(int, int); //First param = driver version (or version of whatever you want), second param a status byte
//bus number, bus speed, status (bit 0 = enabled, 1 = single wire, 2 = listen only)
//3 = Use value stored for enabled, 4 = use value passed for single wire, 5 = use value passed for listen only
//6 = use value passed for speed. This allows bus status to be updated but set that some things aren't really
//being passed. Just set for things that really are being updated.
void busStatus(int, int, int);
protected:
virtual void piStarted();