Fix libnymea-sunspec byteorder initialization
This commit is contained in:
parent
2da631710f
commit
1de0cd9ac5
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecaggregatormodel.h"
|
#include "sunspecaggregatormodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecAggregatorModel::SunSpecAggregatorModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecAggregatorModel::SunSpecAggregatorModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 2, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 2, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecAggregatorModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecAggregatorModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecAggregatorModel() override;
|
~SunSpecAggregatorModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecbasemetmodel.h"
|
#include "sunspecbasemetmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecBaseMetModel::SunSpecBaseMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecBaseMetModel::SunSpecBaseMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 307, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 307, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecBaseMetModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecBaseMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecBaseMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecBaseMetModel() override;
|
~SunSpecBaseMetModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecbatterymodel.h"
|
#include "sunspecbatterymodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecBatteryModel::SunSpecBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecBatteryModel::SunSpecBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 802, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 802, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecBatteryModel() override;
|
~SunSpecBatteryModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspeccommonmodel.h"
|
#include "sunspeccommonmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecCommonModel::SunSpecCommonModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecCommonModel::SunSpecCommonModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 1, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 1, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecCommonModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecCommonModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecCommonModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecCommonModel() override;
|
~SunSpecCommonModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspeccontrolsmodel.h"
|
#include "sunspeccontrolsmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecControlsModel::SunSpecControlsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecControlsModel::SunSpecControlsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 123, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 123, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ public:
|
|||||||
};
|
};
|
||||||
Q_ENUM(Varpct_ena)
|
Q_ENUM(Varpct_ena)
|
||||||
|
|
||||||
explicit SunSpecControlsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecControlsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecControlsModel() override;
|
~SunSpecControlsModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecdeltaconnectthreephaseabcmetermodel.h"
|
#include "sunspecdeltaconnectthreephaseabcmetermodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecDeltaConnectThreePhaseAbcMeterModel::SunSpecDeltaConnectThreePhaseAbcMeterModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecDeltaConnectThreePhaseAbcMeterModel::SunSpecDeltaConnectThreePhaseAbcMeterModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 214, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 214, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecDeltaConnectThreePhaseAbcMeterModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecDeltaConnectThreePhaseAbcMeterModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecDeltaConnectThreePhaseAbcMeterModel() override;
|
~SunSpecDeltaConnectThreePhaseAbcMeterModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecenergystoragebasemodeldeprecatedmodel.h"
|
#include "sunspecenergystoragebasemodeldeprecatedmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecEnergyStorageBaseModelDeprecatedModel::SunSpecEnergyStorageBaseModelDeprecatedModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecEnergyStorageBaseModelDeprecatedModel::SunSpecEnergyStorageBaseModelDeprecatedModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 801, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 801, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecEnergyStorageBaseModelDeprecatedModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecEnergyStorageBaseModelDeprecatedModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecEnergyStorageBaseModelDeprecatedModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecEnergyStorageBaseModelDeprecatedModel() override;
|
~SunSpecEnergyStorageBaseModelDeprecatedModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecextsettingsmodel.h"
|
#include "sunspecextsettingsmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecExtSettingsModel::SunSpecExtSettingsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecExtSettingsModel::SunSpecExtSettingsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 145, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 145, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecExtSettingsModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecExtSettingsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecExtSettingsModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecExtSettingsModel() override;
|
~SunSpecExtSettingsModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -80,8 +80,8 @@ void SunSpecFlowBatteryModelRepeatingBlock::processBlockData(const QVector<quint
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecFlowBatteryModel::SunSpecFlowBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFlowBatteryModel::SunSpecFlowBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 806, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 806, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class SunSpecFlowBatteryModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecFlowBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFlowBatteryModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFlowBatteryModel() override;
|
~SunSpecFlowBatteryModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -80,8 +80,8 @@ void SunSpecFlowBatteryModuleModelRepeatingBlock::processBlockData(const QVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecFlowBatteryModuleModel::SunSpecFlowBatteryModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFlowBatteryModuleModel::SunSpecFlowBatteryModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 808, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 808, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class SunSpecFlowBatteryModuleModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecFlowBatteryModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFlowBatteryModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFlowBatteryModuleModel() override;
|
~SunSpecFlowBatteryModuleModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -80,8 +80,8 @@ void SunSpecFlowBatteryStackModelRepeatingBlock::processBlockData(const QVector<
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecFlowBatteryStackModel::SunSpecFlowBatteryStackModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFlowBatteryStackModel::SunSpecFlowBatteryStackModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 809, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 809, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class SunSpecFlowBatteryStackModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecFlowBatteryStackModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFlowBatteryStackModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFlowBatteryStackModel() override;
|
~SunSpecFlowBatteryStackModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -467,8 +467,8 @@ void SunSpecFlowBatteryStringModelRepeatingBlock::processBlockData(const QVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecFlowBatteryStringModel::SunSpecFlowBatteryStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFlowBatteryStringModel::SunSpecFlowBatteryStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 807, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 807, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -303,7 +303,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt2Flags, Evt2)
|
Q_DECLARE_FLAGS(Evt2Flags, Evt2)
|
||||||
Q_FLAG(Evt2)
|
Q_FLAG(Evt2)
|
||||||
|
|
||||||
explicit SunSpecFlowBatteryStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFlowBatteryStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFlowBatteryStringModel() override;
|
~SunSpecFlowBatteryStringModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1727,8 +1727,8 @@ void SunSpecFreqWattModelRepeatingBlock::processBlockData(const QVector<quint16>
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecFreqWattModel::SunSpecFreqWattModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFreqWattModel::SunSpecFreqWattModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 134, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 134, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -335,7 +335,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecFreqWattModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFreqWattModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFreqWattModel() override;
|
~SunSpecFreqWattModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecfreqwattparammodel.h"
|
#include "sunspecfreqwattparammodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecFreqWattParamModel::SunSpecFreqWattParamModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecFreqWattParamModel::SunSpecFreqWattParamModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 127, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 127, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecFreqWattParamModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecFreqWattParamModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecFreqWattParamModel() override;
|
~SunSpecFreqWattParamModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHfrtcModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHfrtcModel::SunSpecHfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHfrtcModel::SunSpecHfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 142, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 142, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHfrtcModel() override;
|
~SunSpecHfrtcModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHfrtModelRepeatingBlock::processBlockData(const QVector<quint16> blo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHfrtModel::SunSpecHfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHfrtModel::SunSpecHfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 136, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 136, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHfrtModel() override;
|
~SunSpecHfrtModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHfrtxModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHfrtxModel::SunSpecHfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHfrtxModel::SunSpecHfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 144, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 144, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -300,7 +300,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHfrtxModel() override;
|
~SunSpecHfrtxModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHvrtcModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHvrtcModel::SunSpecHvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHvrtcModel::SunSpecHvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 138, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 138, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHvrtcModel() override;
|
~SunSpecHvrtcModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHvrtModelRepeatingBlock::processBlockData(const QVector<quint16> blo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHvrtModel::SunSpecHvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHvrtModel::SunSpecHvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 130, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 130, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHvrtModel() override;
|
~SunSpecHvrtModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecHvrtxModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecHvrtxModel::SunSpecHvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecHvrtxModel::SunSpecHvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 140, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 140, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -300,7 +300,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecHvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecHvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecHvrtxModel() override;
|
~SunSpecHvrtxModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinvertersinglephasefloatmodel.h"
|
#include "sunspecinvertersinglephasefloatmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterSinglePhaseFloatModel::SunSpecInverterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterSinglePhaseFloatModel::SunSpecInverterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 111, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 111, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterSinglePhaseFloatModel() override;
|
~SunSpecInverterSinglePhaseFloatModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinvertersinglephasemodel.h"
|
#include "sunspecinvertersinglephasemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterSinglePhaseModel::SunSpecInverterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterSinglePhaseModel::SunSpecInverterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 101, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 101, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterSinglePhaseModel() override;
|
~SunSpecInverterSinglePhaseModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinvertersplitphasefloatmodel.h"
|
#include "sunspecinvertersplitphasefloatmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterSplitPhaseFloatModel::SunSpecInverterSplitPhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterSplitPhaseFloatModel::SunSpecInverterSplitPhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 112, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 112, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterSplitPhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterSplitPhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterSplitPhaseFloatModel() override;
|
~SunSpecInverterSplitPhaseFloatModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinvertersplitphasemodel.h"
|
#include "sunspecinvertersplitphasemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterSplitPhaseModel::SunSpecInverterSplitPhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterSplitPhaseModel::SunSpecInverterSplitPhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 102, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 102, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterSplitPhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterSplitPhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterSplitPhaseModel() override;
|
~SunSpecInverterSplitPhaseModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinverterthreephasefloatmodel.h"
|
#include "sunspecinverterthreephasefloatmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterThreePhaseFloatModel::SunSpecInverterThreePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterThreePhaseFloatModel::SunSpecInverterThreePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 113, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 113, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterThreePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterThreePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterThreePhaseFloatModel() override;
|
~SunSpecInverterThreePhaseFloatModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecinverterthreephasemodel.h"
|
#include "sunspecinverterthreephasemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecInverterThreePhaseModel::SunSpecInverterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecInverterThreePhaseModel::SunSpecInverterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 103, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 103, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecInverterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecInverterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecInverterThreePhaseModel() override;
|
~SunSpecInverterThreePhaseModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -156,8 +156,8 @@ void SunSpecIrradianceModelRepeatingBlock::processBlockData(const QVector<quint1
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecIrradianceModel::SunSpecIrradianceModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecIrradianceModel::SunSpecIrradianceModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 302, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 302, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class SunSpecIrradianceModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecIrradianceModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecIrradianceModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecIrradianceModel() override;
|
~SunSpecIrradianceModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLfrtcModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLfrtcModel::SunSpecLfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLfrtcModel::SunSpecLfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 141, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 141, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLfrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLfrtcModel() override;
|
~SunSpecLfrtcModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLfrtModelRepeatingBlock::processBlockData(const QVector<quint16> blo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLfrtModel::SunSpecLfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLfrtModel::SunSpecLfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 135, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 135, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLfrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLfrtModel() override;
|
~SunSpecLfrtModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLfrtxModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLfrtxModel::SunSpecLfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLfrtxModel::SunSpecLfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 143, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 143, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -300,7 +300,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLfrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLfrtxModel() override;
|
~SunSpecLfrtxModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -585,8 +585,8 @@ void SunSpecLithiumIonBankModelRepeatingBlock::processBlockData(const QVector<qu
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLithiumIonBankModel::SunSpecLithiumIonBankModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLithiumIonBankModel::SunSpecLithiumIonBankModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 803, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 803, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -264,7 +264,7 @@ class SunSpecLithiumIonBankModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecLithiumIonBankModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLithiumIonBankModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLithiumIonBankModel() override;
|
~SunSpecLithiumIonBankModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -121,8 +121,8 @@ void SunSpecLithiumIonModuleModelRepeatingBlock::processBlockData(const QVector<
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLithiumIonModuleModel::SunSpecLithiumIonModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLithiumIonModuleModel::SunSpecLithiumIonModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 805, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 805, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class SunSpecLithiumIonModuleModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecLithiumIonModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLithiumIonModuleModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLithiumIonModuleModel() override;
|
~SunSpecLithiumIonModuleModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -377,8 +377,8 @@ void SunSpecLithiumIonStringModelRepeatingBlock::processBlockData(const QVector<
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLithiumIonStringModel::SunSpecLithiumIonStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLithiumIonStringModel::SunSpecLithiumIonStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 804, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 804, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -214,7 +214,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
Q_DECLARE_FLAGS(Evt1Flags, Evt1)
|
||||||
Q_FLAG(Evt1)
|
Q_FLAG(Evt1)
|
||||||
|
|
||||||
explicit SunSpecLithiumIonStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLithiumIonStringModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLithiumIonStringModel() override;
|
~SunSpecLithiumIonStringModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspeclocationmodel.h"
|
#include "sunspeclocationmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecLocationModel::SunSpecLocationModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLocationModel::SunSpecLocationModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 305, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 305, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecLocationModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecLocationModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLocationModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLocationModel() override;
|
~SunSpecLocationModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLvrtcModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLvrtcModel::SunSpecLvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLvrtcModel::SunSpecLvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 137, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 137, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLvrtcModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLvrtcModel() override;
|
~SunSpecLvrtcModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLvrtModelRepeatingBlock::processBlockData(const QVector<quint16> blo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLvrtModel::SunSpecLvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLvrtModel::SunSpecLvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 129, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 129, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLvrtModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLvrtModel() override;
|
~SunSpecLvrtModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -1465,8 +1465,8 @@ void SunSpecLvrtxModelRepeatingBlock::processBlockData(const QVector<quint16> bl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecLvrtxModel::SunSpecLvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecLvrtxModel::SunSpecLvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 139, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 139, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -300,7 +300,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecLvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecLvrtxModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecLvrtxModel() override;
|
~SunSpecLvrtxModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmetersinglephasefloatmodel.h"
|
#include "sunspecmetersinglephasefloatmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterSinglePhaseFloatModel::SunSpecMeterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterSinglePhaseFloatModel::SunSpecMeterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 211, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 211, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterSinglePhaseFloatModel() override;
|
~SunSpecMeterSinglePhaseFloatModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmetersinglephasemodel.h"
|
#include "sunspecmetersinglephasemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterSinglePhaseModel::SunSpecMeterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterSinglePhaseModel::SunSpecMeterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 201, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 201, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterSinglePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterSinglePhaseModel() override;
|
~SunSpecMeterSinglePhaseModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmetersplitsinglephaseabnmodel.h"
|
#include "sunspecmetersplitsinglephaseabnmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterSplitSinglePhaseAbnModel::SunSpecMeterSplitSinglePhaseAbnModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterSplitSinglePhaseAbnModel::SunSpecMeterSplitSinglePhaseAbnModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 202, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 202, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterSplitSinglePhaseAbnModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterSplitSinglePhaseAbnModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterSplitSinglePhaseAbnModel() override;
|
~SunSpecMeterSplitSinglePhaseAbnModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmetersplitsinglephasefloatmodel.h"
|
#include "sunspecmetersplitsinglephasefloatmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterSplitSinglePhaseFloatModel::SunSpecMeterSplitSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterSplitSinglePhaseFloatModel::SunSpecMeterSplitSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 212, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 212, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterSplitSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterSplitSinglePhaseFloatModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterSplitSinglePhaseFloatModel() override;
|
~SunSpecMeterSplitSinglePhaseFloatModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmeterthreephasedeltaconnectmodel.h"
|
#include "sunspecmeterthreephasedeltaconnectmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterThreePhaseDeltaConnectModel::SunSpecMeterThreePhaseDeltaConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterThreePhaseDeltaConnectModel::SunSpecMeterThreePhaseDeltaConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 204, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 204, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterThreePhaseDeltaConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterThreePhaseDeltaConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterThreePhaseDeltaConnectModel() override;
|
~SunSpecMeterThreePhaseDeltaConnectModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmeterthreephasemodel.h"
|
#include "sunspecmeterthreephasemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterThreePhaseModel::SunSpecMeterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterThreePhaseModel::SunSpecMeterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 203, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 203, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterThreePhaseModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterThreePhaseModel() override;
|
~SunSpecMeterThreePhaseModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecmeterthreephasewyeconnectmodel.h"
|
#include "sunspecmeterthreephasewyeconnectmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMeterThreePhaseWyeConnectModel::SunSpecMeterThreePhaseWyeConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMeterThreePhaseWyeConnectModel::SunSpecMeterThreePhaseWyeConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 213, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 213, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMeterThreePhaseWyeConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMeterThreePhaseWyeConnectModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMeterThreePhaseWyeConnectModel() override;
|
~SunSpecMeterThreePhaseWyeConnectModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecminimetmodel.h"
|
#include "sunspecminimetmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecMiniMetModel::SunSpecMiniMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMiniMetModel::SunSpecMiniMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 308, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 308, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class SunSpecMiniMetModel : public SunSpecModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SunSpecMiniMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMiniMetModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMiniMetModel() override;
|
~SunSpecMiniMetModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -104,314 +104,190 @@ SunSpecModel *SunSpecModelFactory::createModel(SunSpecConnection *connection, qu
|
|||||||
{
|
{
|
||||||
switch(modelId) {
|
switch(modelId) {
|
||||||
case ModelIdCommon: {
|
case ModelIdCommon: {
|
||||||
SunSpecCommonModel *model = new SunSpecCommonModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecCommonModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdAggregator: {
|
case ModelIdAggregator: {
|
||||||
SunSpecAggregatorModel *model = new SunSpecAggregatorModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecAggregatorModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterSinglePhase: {
|
case ModelIdInverterSinglePhase: {
|
||||||
SunSpecInverterSinglePhaseModel *model = new SunSpecInverterSinglePhaseModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterSinglePhaseModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterSplitPhase: {
|
case ModelIdInverterSplitPhase: {
|
||||||
SunSpecInverterSplitPhaseModel *model = new SunSpecInverterSplitPhaseModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterSplitPhaseModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterThreePhase: {
|
case ModelIdInverterThreePhase: {
|
||||||
SunSpecInverterThreePhaseModel *model = new SunSpecInverterThreePhaseModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterThreePhaseModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterSinglePhaseFloat: {
|
case ModelIdInverterSinglePhaseFloat: {
|
||||||
SunSpecInverterSinglePhaseFloatModel *model = new SunSpecInverterSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterSplitPhaseFloat: {
|
case ModelIdInverterSplitPhaseFloat: {
|
||||||
SunSpecInverterSplitPhaseFloatModel *model = new SunSpecInverterSplitPhaseFloatModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterSplitPhaseFloatModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdInverterThreePhaseFloat: {
|
case ModelIdInverterThreePhaseFloat: {
|
||||||
SunSpecInverterThreePhaseFloatModel *model = new SunSpecInverterThreePhaseFloatModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecInverterThreePhaseFloatModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdNameplate: {
|
case ModelIdNameplate: {
|
||||||
SunSpecNameplateModel *model = new SunSpecNameplateModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecNameplateModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdSettings: {
|
case ModelIdSettings: {
|
||||||
SunSpecSettingsModel *model = new SunSpecSettingsModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecSettingsModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdStatus: {
|
case ModelIdStatus: {
|
||||||
SunSpecStatusModel *model = new SunSpecStatusModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecStatusModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdControls: {
|
case ModelIdControls: {
|
||||||
SunSpecControlsModel *model = new SunSpecControlsModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecControlsModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdStorage: {
|
case ModelIdStorage: {
|
||||||
SunSpecStorageModel *model = new SunSpecStorageModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecStorageModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdEnergyStorageBaseDeprecated: {
|
case ModelIdEnergyStorageBaseDeprecated: {
|
||||||
SunSpecEnergyStorageBaseModelDeprecatedModel *model = new SunSpecEnergyStorageBaseModelDeprecatedModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecEnergyStorageBaseModelDeprecatedModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdPricing: {
|
case ModelIdPricing: {
|
||||||
SunSpecPricingModel *model = new SunSpecPricingModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecPricingModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdVoltVar: {
|
case ModelIdVoltVar: {
|
||||||
SunSpecVoltVarModel *model = new SunSpecVoltVarModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecVoltVarModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFreqWattParam: {
|
case ModelIdFreqWattParam: {
|
||||||
SunSpecFreqWattParamModel *model = new SunSpecFreqWattParamModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFreqWattParamModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdReactiveCurrent: {
|
case ModelIdReactiveCurrent: {
|
||||||
SunSpecReactiveCurrentModel *model = new SunSpecReactiveCurrentModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecReactiveCurrentModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLvrt: {
|
case ModelIdLvrt: {
|
||||||
SunSpecLvrtModel *model = new SunSpecLvrtModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLvrtModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHvrt: {
|
case ModelIdHvrt: {
|
||||||
SunSpecHvrtModel *model = new SunSpecHvrtModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHvrtModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdWattPf: {
|
case ModelIdWattPf: {
|
||||||
SunSpecWattPfModel *model = new SunSpecWattPfModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecWattPfModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdVoltWatt: {
|
case ModelIdVoltWatt: {
|
||||||
SunSpecVoltWattModel *model = new SunSpecVoltWattModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecVoltWattModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdSchedule: {
|
case ModelIdSchedule: {
|
||||||
SunSpecScheduleModel *model = new SunSpecScheduleModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecScheduleModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFreqWatt: {
|
case ModelIdFreqWatt: {
|
||||||
SunSpecFreqWattModel *model = new SunSpecFreqWattModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFreqWattModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLfrt: {
|
case ModelIdLfrt: {
|
||||||
SunSpecLfrtModel *model = new SunSpecLfrtModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLfrtModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHfrt: {
|
case ModelIdHfrt: {
|
||||||
SunSpecHfrtModel *model = new SunSpecHfrtModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHfrtModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLvrtc: {
|
case ModelIdLvrtc: {
|
||||||
SunSpecLvrtcModel *model = new SunSpecLvrtcModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLvrtcModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHvrtc: {
|
case ModelIdHvrtc: {
|
||||||
SunSpecHvrtcModel *model = new SunSpecHvrtcModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHvrtcModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLvrtx: {
|
case ModelIdLvrtx: {
|
||||||
SunSpecLvrtxModel *model = new SunSpecLvrtxModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLvrtxModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHvrtx: {
|
case ModelIdHvrtx: {
|
||||||
SunSpecHvrtxModel *model = new SunSpecHvrtxModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHvrtxModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLfrtc: {
|
case ModelIdLfrtc: {
|
||||||
SunSpecLfrtcModel *model = new SunSpecLfrtcModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLfrtcModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHfrtc: {
|
case ModelIdHfrtc: {
|
||||||
SunSpecHfrtcModel *model = new SunSpecHfrtcModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHfrtcModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLfrtx: {
|
case ModelIdLfrtx: {
|
||||||
SunSpecLfrtxModel *model = new SunSpecLfrtxModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLfrtxModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdHfrtx: {
|
case ModelIdHfrtx: {
|
||||||
SunSpecHfrtxModel *model = new SunSpecHfrtxModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecHfrtxModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdExtSettings: {
|
case ModelIdExtSettings: {
|
||||||
SunSpecExtSettingsModel *model = new SunSpecExtSettingsModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecExtSettingsModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMppt: {
|
case ModelIdMppt: {
|
||||||
SunSpecMpptModel *model = new SunSpecMpptModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMpptModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterSinglePhase: {
|
case ModelIdMeterSinglePhase: {
|
||||||
SunSpecMeterSinglePhaseModel *model = new SunSpecMeterSinglePhaseModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterSinglePhaseModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterSplitSinglePhaseAbn: {
|
case ModelIdMeterSplitSinglePhaseAbn: {
|
||||||
SunSpecMeterSplitSinglePhaseAbnModel *model = new SunSpecMeterSplitSinglePhaseAbnModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterSplitSinglePhaseAbnModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterThreePhase: {
|
case ModelIdMeterThreePhase: {
|
||||||
SunSpecMeterThreePhaseModel *model = new SunSpecMeterThreePhaseModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterThreePhaseModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterThreePhaseDeltaConnect: {
|
case ModelIdMeterThreePhaseDeltaConnect: {
|
||||||
SunSpecMeterThreePhaseDeltaConnectModel *model = new SunSpecMeterThreePhaseDeltaConnectModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterThreePhaseDeltaConnectModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterSinglePhaseFloat: {
|
case ModelIdMeterSinglePhaseFloat: {
|
||||||
SunSpecMeterSinglePhaseFloatModel *model = new SunSpecMeterSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterSplitSinglePhaseFloat: {
|
case ModelIdMeterSplitSinglePhaseFloat: {
|
||||||
SunSpecMeterSplitSinglePhaseFloatModel *model = new SunSpecMeterSplitSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterSplitSinglePhaseFloatModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMeterThreePhaseWyeConnect: {
|
case ModelIdMeterThreePhaseWyeConnect: {
|
||||||
SunSpecMeterThreePhaseWyeConnectModel *model = new SunSpecMeterThreePhaseWyeConnectModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMeterThreePhaseWyeConnectModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdDeltaConnectThreePhaseAbcMeter: {
|
case ModelIdDeltaConnectThreePhaseAbcMeter: {
|
||||||
SunSpecDeltaConnectThreePhaseAbcMeterModel *model = new SunSpecDeltaConnectThreePhaseAbcMeterModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecDeltaConnectThreePhaseAbcMeterModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdSecureAcMeterSelectedReadings: {
|
case ModelIdSecureAcMeterSelectedReadings: {
|
||||||
SunSpecSecureAcMeterSelectedReadingsModel *model = new SunSpecSecureAcMeterSelectedReadingsModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecSecureAcMeterSelectedReadingsModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdIrradiance: {
|
case ModelIdIrradiance: {
|
||||||
SunSpecIrradianceModel *model = new SunSpecIrradianceModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecIrradianceModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLocation: {
|
case ModelIdLocation: {
|
||||||
SunSpecLocationModel *model = new SunSpecLocationModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLocationModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdRefPoint: {
|
case ModelIdRefPoint: {
|
||||||
SunSpecRefPointModel *model = new SunSpecRefPointModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecRefPointModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdBaseMet: {
|
case ModelIdBaseMet: {
|
||||||
SunSpecBaseMetModel *model = new SunSpecBaseMetModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecBaseMetModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdMiniMet: {
|
case ModelIdMiniMet: {
|
||||||
SunSpecMiniMetModel *model = new SunSpecMiniMetModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecMiniMetModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdStringCombinerCurrent: {
|
case ModelIdStringCombinerCurrent: {
|
||||||
SunSpecStringCombinerCurrentModel *model = new SunSpecStringCombinerCurrentModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecStringCombinerCurrentModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdStringCombinerAdvanced: {
|
case ModelIdStringCombinerAdvanced: {
|
||||||
SunSpecStringCombinerAdvancedModel *model = new SunSpecStringCombinerAdvancedModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecStringCombinerAdvancedModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdSolarModule: {
|
case ModelIdSolarModule: {
|
||||||
SunSpecSolarModuleModel *model = new SunSpecSolarModuleModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecSolarModuleModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdTrackerController: {
|
case ModelIdTrackerController: {
|
||||||
SunSpecTrackerControllerModel *model = new SunSpecTrackerControllerModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecTrackerControllerModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdBattery: {
|
case ModelIdBattery: {
|
||||||
SunSpecBatteryModel *model = new SunSpecBatteryModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecBatteryModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLithiumIonBank: {
|
case ModelIdLithiumIonBank: {
|
||||||
SunSpecLithiumIonBankModel *model = new SunSpecLithiumIonBankModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLithiumIonBankModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLithiumIonString: {
|
case ModelIdLithiumIonString: {
|
||||||
SunSpecLithiumIonStringModel *model = new SunSpecLithiumIonStringModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLithiumIonStringModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdLithiumIonModule: {
|
case ModelIdLithiumIonModule: {
|
||||||
SunSpecLithiumIonModuleModel *model = new SunSpecLithiumIonModuleModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecLithiumIonModuleModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFlowBattery: {
|
case ModelIdFlowBattery: {
|
||||||
SunSpecFlowBatteryModel *model = new SunSpecFlowBatteryModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFlowBatteryModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFlowBatteryString: {
|
case ModelIdFlowBatteryString: {
|
||||||
SunSpecFlowBatteryStringModel *model = new SunSpecFlowBatteryStringModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFlowBatteryStringModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFlowBatteryModule: {
|
case ModelIdFlowBatteryModule: {
|
||||||
SunSpecFlowBatteryModuleModel *model = new SunSpecFlowBatteryModuleModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFlowBatteryModuleModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
case ModelIdFlowBatteryStack: {
|
case ModelIdFlowBatteryStack: {
|
||||||
SunSpecFlowBatteryStackModel *model = new SunSpecFlowBatteryStackModel(connection, modbusStartRegister, modelLength, connection);
|
return new SunSpecFlowBatteryStackModel(connection, modbusStartRegister, modelLength, byteOrder, connection);
|
||||||
model->setByteOrder(byteOrder);
|
|
||||||
return model;
|
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
@ -241,8 +241,8 @@ void SunSpecMpptModelRepeatingBlock::processBlockData(const QVector<quint16> blo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SunSpecMpptModel::SunSpecMpptModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecMpptModel::SunSpecMpptModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 160, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 160, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixedAndRepeating;
|
||||||
|
|
||||||
|
|||||||
@ -169,7 +169,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
Q_DECLARE_FLAGS(EvtFlags, Evt)
|
||||||
Q_FLAG(Evt)
|
Q_FLAG(Evt)
|
||||||
|
|
||||||
explicit SunSpecMpptModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecMpptModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecMpptModel() override;
|
~SunSpecMpptModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecnameplatemodel.h"
|
#include "sunspecnameplatemodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecNameplateModel::SunSpecNameplateModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecNameplateModel::SunSpecNameplateModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 120, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 120, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ public:
|
|||||||
};
|
};
|
||||||
Q_ENUM(Dertyp)
|
Q_ENUM(Dertyp)
|
||||||
|
|
||||||
explicit SunSpecNameplateModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecNameplateModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecNameplateModel() override;
|
~SunSpecNameplateModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecpricingmodel.h"
|
#include "sunspecpricingmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecPricingModel::SunSpecPricingModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecPricingModel::SunSpecPricingModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 125, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 125, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecPricingModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecPricingModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecPricingModel() override;
|
~SunSpecPricingModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecreactivecurrentmodel.h"
|
#include "sunspecreactivecurrentmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecReactiveCurrentModel::SunSpecReactiveCurrentModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecReactiveCurrentModel::SunSpecReactiveCurrentModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 128, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 128, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public:
|
|||||||
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
Q_DECLARE_FLAGS(ModenaFlags, Modena)
|
||||||
Q_FLAG(Modena)
|
Q_FLAG(Modena)
|
||||||
|
|
||||||
explicit SunSpecReactiveCurrentModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent = nullptr);
|
explicit SunSpecReactiveCurrentModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent = nullptr);
|
||||||
~SunSpecReactiveCurrentModel() override;
|
~SunSpecReactiveCurrentModel() override;
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
#include "sunspecrefpointmodel.h"
|
#include "sunspecrefpointmodel.h"
|
||||||
#include "sunspecconnection.h"
|
#include "sunspecconnection.h"
|
||||||
|
|
||||||
SunSpecRefPointModel::SunSpecRefPointModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, QObject *parent) :
|
SunSpecRefPointModel::SunSpecRefPointModel(SunSpecConnection *connection, quint16 modbusStartRegister, quint16 modelLength, SunSpecDataPoint::ByteOrder byteOrder, QObject *parent) :
|
||||||
SunSpecModel(connection, modbusStartRegister, 306, modelLength, parent)
|
SunSpecModel(connection, modbusStartRegister, 306, modelLength, byteOrder, parent)
|
||||||
{
|
{
|
||||||
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
m_modelBlockType = SunSpecModel::ModelBlockTypeFixed;
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user