#ifndef PORT_H #define PORT_H #include #include #include #include "portParametersGeneric.h" #include "modbus.h" class Port { private: void populateParameters(); void fixCurrent(); bool currentFixed; // void increaseParametersAge(); public: Port(int portStartAddress); int portStartAddress; std::vector> parameters; std::pair, bool> getParameterByName(std::string name); // void updateParameters(std::vector ¶metersToGet, bool allParameters); void setParametersFromMicroinverterArray(uint16_t *registers, int addressOffset); void printParameters(std::vector ¶metersToGet, bool allParameters, bool shortNames); }; #endif