xref: /openbmc/phosphor-pid-control/sensors/builder.hpp (revision 19300276908a940479ba717b1463c14bfca4ce88)
15e929093SPatrick Venture #pragma once
25e929093SPatrick Venture 
3cfbf62b5SPatrick Venture #include "conf.hpp"
45e929093SPatrick Venture #include "sensors/manager.hpp"
55e929093SPatrick Venture #include "sensors/sensor.hpp"
65e929093SPatrick Venture 
7cfbf62b5SPatrick Venture #include <sdbusplus/bus.hpp>
8cfbf62b5SPatrick Venture 
9da4a5dd1SPatrick Venture #include <map>
10da4a5dd1SPatrick Venture #include <string>
11da4a5dd1SPatrick Venture 
12a076487aSPatrick Venture namespace pid_control
13a076487aSPatrick Venture {
14a076487aSPatrick Venture 
155e929093SPatrick Venture /**
165e929093SPatrick Venture  * Build the sensors and associate them with a SensorManager.
175e929093SPatrick Venture  */
18*19300276SPatrick Williams SensorManager buildSensors(
19*19300276SPatrick Williams     const std::map<std::string, conf::SensorConfig>& config,
20b228bc30SPatrick Williams     sdbusplus::bus_t& passive, sdbusplus::bus_t& host);
21a076487aSPatrick Venture 
22a076487aSPatrick Venture } // namespace pid_control
23