sadge but more worky
This commit is contained in:
parent
32d9dfff98
commit
34313ef4bc
16 changed files with 169 additions and 65 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "portParametersGeneric.h"
|
||||
#include "portParameters.h"
|
||||
#include "modbus.h"
|
||||
|
||||
class Port {
|
||||
|
|
@ -22,15 +23,27 @@ class Port {
|
|||
|
||||
int portStartAddress;
|
||||
|
||||
int statusPortStartAddress;
|
||||
|
||||
std::vector<std::shared_ptr<PortParameter>> parameters;
|
||||
|
||||
std::vector<std::shared_ptr<PortParameter>> statusParameters;
|
||||
|
||||
std::pair<std::shared_ptr<PortParameter>, bool> getParameterByName(std::string name);
|
||||
|
||||
std::pair<std::shared_ptr<PortParameter>, bool> getStatusByName(std::string name);
|
||||
|
||||
// void updateParameters(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
|
||||
void setParametersFromMicroinverterArray(uint16_t *registers, int addressOffset);
|
||||
|
||||
void setStatusesFromMicroinverterArray(uint16_t *registers, int addressOffset);
|
||||
|
||||
void printParameters(std::vector<std::string> ¶metersToGet, bool allParameters, bool shortNames);
|
||||
|
||||
void turnOff(class modbus &modbus);
|
||||
|
||||
bool isOff(class modbus &modbus);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue