#ifndef PORT_H #define PORT_H #include #include #include #include #include #include "portParametersGeneric.h" struct _modbus; typedef _modbus modbus_t; class Port { private: std::shared_ptr modbus_context; std::mutex *modbus_context_mutex; uint16_t portStartAddress; uint16_t *readArray; int readArraySize; std::vector> parameters; void populateParameters(); public: Port(std::shared_ptr modbus_context, std::mutex *modbus_context_mutex, uint16_t portStartAddress); void updateParameters(); }; #endif