Digitalisierte Elektroverteilung zur permanenten Verbraucherüberwachung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModbusDataInterface.h 928B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <vector>
  3. #include <string>
  4. #include <any>
  5. #include <sstream>
  6. #include <optional>
  7. #include "ts_queue.h"
  8. #include "ParameterDouble.h"
  9. #include "ParameterFloat.h"
  10. #include "ParameterUInt16.h"
  11. #include "ParameterUInt32.h"
  12. #include "ParameterCharP.h"
  13. #include "ParameterS16.h"
  14. class ModbusInterface;
  15. class ModbusDataInterface
  16. {
  17. private:
  18. const unsigned int id;
  19. protected:
  20. std::vector<ParameterFloat> modbusParamFP32;
  21. std::vector<ParameterDouble> modbusParamFP64;
  22. std::vector<ParameterUInt16> modbusParamU16;
  23. std::vector<ParameterUInt32> modbusParamU32;
  24. std::vector<ParameterS16> modbusParamS16;
  25. std::vector<ParameterCharP> modbusParamString;
  26. public:
  27. ModbusDataInterface(const unsigned int id) : id(id) { }
  28. ts_queue<ParameterSpecification>& modbusRegisterCat(const Category cat, ts_queue<ParameterSpecification>& queue, std::unique_ptr<ModbusInterface> &connection);
  29. void readAll();
  30. };