sadge but more worky
This commit is contained in:
parent
32d9dfff98
commit
34313ef4bc
16 changed files with 169 additions and 65 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
class PortParameterMicroinverterSerialNumber : public PortParameterInt {
|
||||
private:
|
||||
void setValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
void getValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
|
||||
public:
|
||||
PortParameterMicroinverterSerialNumber();
|
||||
|
|
@ -81,4 +81,14 @@ class PortParameterLinkStatus : public PortParameterInt {
|
|||
PortParameterLinkStatus();
|
||||
};
|
||||
|
||||
class PortParameterOnOff : public PortParameterInt {
|
||||
public:
|
||||
PortParameterOnOff();
|
||||
};
|
||||
|
||||
class PortParameterLimitActivePower : public PortParameterInt {
|
||||
public:
|
||||
PortParameterLimitActivePower();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -42,9 +42,11 @@ class PortParameter {
|
|||
|
||||
std::pair<PortParameterValue, PortParameterValueType> getValue();
|
||||
|
||||
PortParameter& writeValue(uint16_t value, class modbus& modbus, int portStartAddress);
|
||||
|
||||
virtual std::string getOutputValue();
|
||||
|
||||
virtual void setValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
virtual void getValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
|
||||
// void updateValue(std::shared_ptr<class modbus> modubs, uint16_t portStartAddress);
|
||||
};
|
||||
|
|
@ -58,7 +60,7 @@ class PortParameterFloat : public PortParameter {
|
|||
|
||||
std::string getOutputValue();
|
||||
|
||||
virtual void setValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
virtual void getValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
};
|
||||
|
||||
class PortParameterInt : public PortParameter {
|
||||
|
|
@ -69,7 +71,7 @@ class PortParameterInt : public PortParameter {
|
|||
|
||||
std::string getOutputValue();
|
||||
|
||||
virtual void setValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
virtual void getValueFromRegisters(uint16_t *registers, int addressOffset);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue