Added support for CAN FD frames to the SERIALBUS

This commit is contained in:
Bohdan Buinich
2022-10-11 22:18:58 +03:00
parent 677d9ba9f8
commit 2c82535ca7
5 changed files with 42 additions and 8 deletions
+3 -1
View File
@@ -16,16 +16,18 @@ public:
bool listenOnly;
bool singleWire;
bool active; //is this bus turned on?
bool canFD;
void setSpeed(int); // new speed
void setListenOnly(bool); //bool for whether to only listen
void setSingleWire(bool); //bool for whether to use single wire mode
void setActive(bool); //whether this bus should be enabled or not.
void setCanFD(bool); // enable or disable CANFD support
int getSpeed();
bool isListenOnly();
bool isSingleWire();
bool isActive();
bool isCanFD();
};
QDataStream& operator<<( QDataStream & pStream, const CANBus& pCanBus );