#pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MDDCalibrationD12DialysatePumpRecordResponse class * \details The DD calibration Pressure response model * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:---------------------: | * |0x1250| 0x070 | Rsp | Y | DD | UI | Get DD Calib D12 pump | * * | Payload || * | || * | #1:(U32) | \ref Data::mAccepted | * | #2:(U32) | \ref Data::mReason | * | #3:(F32) | \ref Data::mTargetPumpSpeed | * | #4:(U32) | \ref Data::mCalTime | *targetPumpSpeed * \sa Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | DD | * | infoText | DDCalibrationD12DialysatePumpResponseData | * */ class MDDCalibrationD12DialysatePumpRecordResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mAccepted ; Types::U32 mReason ; Types::F32 mTargetPumpSpeed ; Types::U32 mCalTime ; } _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("DDalibrationD12DialysatePump") ; } struct Data { quint32 mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ float mTargetPumpSpeed = 0; quint32 mCalTime = 0; }; MDDCalibrationD12DialysatePumpRecordResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MDDCalibrationD12DialysatePumpRecordResponse::Data DDCalibrationD12DialysatePumpResponseData;