/*! * * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright * 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 MAdjustDDVersionsResponse.h * \author (last) Behrouz NematiPour * \date (last) 27-Jun-2022 * \author (original) Behrouz NematiPour * \date (original) 16-Apr-2021 * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustVersionsDDResponse class * \details The DD versions data model * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:------:|:------:|:----:|:---:|:---:|:----:|:-----------:| * | 0x0F00 | 0x101 | Rsp | Y | DD | All | DD Versions Data | * * | Payload || * | || * | #1:(U08) | \ref Data::mMajor | * | #2:(U08) | \ref Data::mMinor | * | #3:(U08) | \ref Data::mMicro | * | #4:(U16) | \ref Data::mBuild | * | #5:(U08) | \ref Data::mFPGAId | * | #6:(U08) | \ref Data::mFPGAMajor | * | #7:(U08) | \ref Data::mFPGAMinor | * | #8:(U08) | \ref Data::mFPGALab | * | #9:(U32) | \ref Data::mCompatibilty Rev | * * \sa Data * \sa MAdjustVersionsDDResponse : DD Versions Response Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | DD | * | infoText | Version | * */ class MAdjustVersionsDDResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U08 mMajor ; Types::U08 mMinor ; Types::U08 mMicro ; Types::U16 mBuild ; Types::U08 mFPGAId ; Types::U08 mFPGAMajor ; Types::U08 mFPGAMinor ; Types::U08 mFPGALab ; Types::U32 mCompatibilityRev ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eEvent ; } Unit_Enum unitText () const override { return Unit_Enum::eDD ; } QString infoText () const override { return QString("VersionRsp") ; } struct Data { quint8 mMajor = 0; /*!< DD Versions Major value of type quint8 extracted out */ quint8 mMinor = 0; /*!< DD Versions Minor value of type quint8 extracted out */ quint8 mMicro = 0; /*!< DD Versions Micro value of type quint8 extracted out */ quint16 mBuild = 0; /*!< DD Versions Build value of type quint16 extracted out */ quint8 mFPGAId = 0; /*!< DD Versions FPGA ID value of type quint8 extracted out */ quint8 mFPGAMajor = 0; /*!< DD Versions FPGA Major value of type quint8 extracted out */ quint8 mFPGAMinor = 0; /*!< DD Versions FPGA Minor value of type quint8 extracted out */ quint8 mFPGALab = 0; /*!< DD Versions FPGA Lab value of type quint8 extracted out */ quint32 mCompatibilityRev = 0; /*!< DD Compatibility Revision */ }; MAdjustVersionsDDResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustVersionsDDResponse::Data AdjustVersionsDDResponseData;