blob: bea3bd02904847173095e01c5236e17d810f69ff [file] [log] [blame]
Patrick Venture5e929092018-06-08 10:55:23 -07001#pragma once
2
Patrick Venturecfbf62b2020-08-10 09:05:06 -07003#include "conf.hpp"
Patrick Venture5e929092018-06-08 10:55:23 -07004#include "sensors/manager.hpp"
5#include "sensors/sensor.hpp"
6
Patrick Venturecfbf62b2020-08-10 09:05:06 -07007#include <sdbusplus/bus.hpp>
8
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07009#include <map>
10#include <string>
11
Patrick Venturea0764872020-08-08 07:48:43 -070012namespace pid_control
13{
14
Patrick Venture5e929092018-06-08 10:55:23 -070015/**
16 * Build the sensors and associate them with a SensorManager.
17 */
James Feist1fe08952019-05-07 09:17:16 -070018SensorManager
19 buildSensors(const std::map<std::string, struct conf::SensorConfig>& config,
20 sdbusplus::bus::bus& passive, sdbusplus::bus::bus& host);
Patrick Venturea0764872020-08-08 07:48:43 -070021
22} // namespace pid_control