Index: sources/canbus/caninterface.h =================================================================== diff -u -r94f7349bd073a732dba5295250fc0e26f740743c -rbb8f39a014644c70b832dd2a784f62fa9f6b6106 --- sources/canbus/caninterface.h (.../caninterface.h) (revision 94f7349bd073a732dba5295250fc0e26f740743c) +++ sources/canbus/caninterface.h (.../caninterface.h) (revision bb8f39a014644c70b832dd2a784f62fa9f6b6106) @@ -19,7 +19,9 @@ // Project #include "main.h" +#include "messageglobals.h" + // Define #define _CanInterface Can::CanInterface::I() @@ -60,9 +62,9 @@ QThread *_thread = nullptr; bool _init = false; - typedef quint64 FrameCount; FrameCount _rxFrameCount = 0; FrameCount _txFrameCount = 0; + FrameCount _erFrameCount = 0; // Singleton SINGLETON(CanInterface) @@ -94,6 +96,7 @@ FrameCount rxCount(); FrameCount txCount(); + FrameCount erCount(); static QString frameFlags(const QCanBusFrame &vFrame); @@ -120,6 +123,15 @@ */ void didFrameTransmit(bool ok); + /*! + * \brief didFrameWritten + * \details After the frame transmission is done + * and acknowledged by a node on the CANBus, + * this signal is emmited. + * \param vCount is the number of frame which has been written + */ + void didFrameWritten(qint64 vCount); + public slots: private slots: void onFrameTransmit (const QCanBusFrame &vFrame);