Index: sources/model/MDGDebugText.h =================================================================== diff -u -r56e378f7504701b9e9a9dccaf205aef2fd52c58e -r12e7b6dda53cf8db7707c7fa55dcf6137e7d6997 --- sources/model/MDGDebugText.h (.../MDGDebugText.h) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) +++ sources/model/MDGDebugText.h (.../MDGDebugText.h) (revision 12e7b6dda53cf8db7707c7fa55dcf6137e7d6997) @@ -5,11 +5,9 @@ * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file MDGDebugText.h - * \author (last) Behrouz NematiPour - * \date (last) 03-Aug-2020 - * \author (original) Behrouz NemaiPour - * \date (original) 13-Jul-2020 + * \file MDGDebugText.h + * \date 7/9/2020 + * \author Behrouz NematiPour * */ #pragma once @@ -26,19 +24,34 @@ namespace Model { +/*! + * \brief The MDGDebugText class + * \details the Debug Text Message from DG + * + * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | Payload | + * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:---------------------------------------:|:----------------------------------------------------------:| + * |0xFFF2| 0x070 | 17 | Event| N | DG | UI | DG debug text for UI to log ASCII text | 40 bytes, null term text + msg overhead will take 6 frames | + * + * Logging info : + * + * | typeText | unitText | infoText | + * |:---------:|:--------:|:--------:| + * | Datum | HD | Debug | + * + * \sa Data + */ class MDGDebugText : public MAbstract { // friends friend class ::tst_models; - // DG Drain Pump Data (U32) Set pt. RPM (U32) DAC value QVariantList parameters() const override; QString _data; public: - Type_Enum typeText () const override { return Type_Enum::eEvent; } + Type_Enum typeText () const override { return Type_Enum::eDatum; } Unit_Enum unitText () const override { return Unit_Enum::eDG ; } QString infoText () const override { return QString("Debug") ; } @@ -47,9 +60,8 @@ }; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; - Data data ( ) const; + Data data ( ) const ; }; - } typedef Model::MDGDebugText::Data DGDebugTextData;