Index: sources/canbus/messageglobals.h =================================================================== diff -u -r56eea041fb0995182b3d3ea0c0ac19e4933a2d3d -rbb8f39a014644c70b832dd2a784f62fa9f6b6106 --- sources/canbus/messageglobals.h (.../messageglobals.h) (revision 56eea041fb0995182b3d3ea0c0ac19e4933a2d3d) +++ sources/canbus/messageglobals.h (.../messageglobals.h) (revision bb8f39a014644c70b832dd2a784f62fa9f6b6106) @@ -31,14 +31,20 @@ #define SEQUENCE_MAX INT16_MAX /*! + * \brief FrameCount + * \details The maximum unsigned integer value to be used as the frame count + */ +typedef quint64 FrameCount; + +/*! * \brief Payload Length * \details List of each ActionID required data (in byte) length in the message. * So the data collector has to collect this amount of bytes as payload of a message. */ const QHash payloadLen { {Gui::GuiActionType::PowerOff , 1 }, {Gui::GuiActionType::PowerOffBroadcast , 0 }, - {Gui::GuiActionType::KeepAlive , 0 }, + {Gui::GuiActionType::KeepAlive , 255 }, // 0 => 255 to be able to run a multi-frame test. {Gui::GuiActionType::BloodFlow , 7 * 4 }, // 7 parameters each 4bytes {Gui::GuiActionType::DialysateInletFlow , 7 * 4 }, // 7 parameters each 4bytes {Gui::GuiActionType::DialysateOutletFlow, 7 * 4 }, // 7 parameters each 4bytes @@ -82,7 +88,9 @@ * \details The Valid Can Bus MessageID of each frame */ enum Can_Id : quint16 { - eChlid_NONE = 0x000, + eChlid_LOWEST = 0x7FF, + eChlid_NONE = 0x7FF, + // Broadcasts //// Alarm eChlid_HD_Alarm = 0x001, ///< HD alarm broadcast