Template Class HwMonitor

Class Documentation

template<class DEV>
class HwMonitor

HwMonFrontend published over the network hardware monitoring information for all requested devices using a single publisher. HwMonFrontend shall run on a dedicated thread as the retrieval of info can be blocking due to the regulation of concurrent access to the I2C bus.

Public Types

using device_pair = std::pair<std::shared_ptr<DEV>, std::shared_ptr<DEV>>

Public Functions

HwMonitor(const std::vector<device_pair> &device_pairs, const ConfigRegister &c)

open the device.

Parameters:
  • device_pairs -- pair of primary and secondary device of a card.

  • c -- configuration data structure.

bool publish_monitor_info()

publish monitoring information message over the network