2024-03-16 22:51:32 +01:00
|
|
|
#ifndef PORTPARAMETERS_H
|
|
|
|
|
#define PORTPARAMETERS_H
|
|
|
|
|
|
|
|
|
|
#include "portParametersGeneric.h"
|
|
|
|
|
|
|
|
|
|
class PortParameterMicroinverterSerialNumber : public PortParameterInt {
|
2024-03-20 19:55:36 +01:00
|
|
|
private:
|
2024-04-06 00:32:49 +02:00
|
|
|
void getValueFromRegisters(uint16_t *registers, int addressOffset);
|
2024-03-17 21:33:21 +01:00
|
|
|
|
2024-03-16 22:51:32 +01:00
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterMicroinverterSerialNumber();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterPortNumber : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterPortNumber();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterPvVoltage : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterPvVoltage();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterPvCurrentMi : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterPvCurrentMi();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterPvCurrentHm : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterPvCurrentHm();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterGridVoltage : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterGridVoltage();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterGridFrequency : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterGridFrequency();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterPvPower : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterPvPower();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterTodayProduction : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterTodayProduction();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterTotalProduction : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterTotalProduction();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterTemperature : public PortParameterFloat {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterTemperature();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterOperatingStatus : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterOperatingStatus();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterAlarmCode : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterAlarmCode();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterAlarmCount : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterAlarmCount();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterLinkStatus : public PortParameterInt {
|
|
|
|
|
public:
|
2024-03-20 19:55:36 +01:00
|
|
|
PortParameterLinkStatus();
|
2024-03-16 22:51:32 +01:00
|
|
|
};
|
|
|
|
|
|
2024-04-06 00:32:49 +02:00
|
|
|
class PortParameterOnOff : public PortParameterInt {
|
|
|
|
|
public:
|
|
|
|
|
PortParameterOnOff();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PortParameterLimitActivePower : public PortParameterInt {
|
|
|
|
|
public:
|
|
|
|
|
PortParameterLimitActivePower();
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-16 22:51:32 +01:00
|
|
|
#endif
|