blob: 14eabadf38d87e52761693bcfea994106d55da08 [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
Patrick Venture1df9e872020-10-08 15:35:01 -070019 buildSensors(const std::map<std::string, conf::SensorConfig>& config,
Patrick Williamsb228bc32022-07-22 19:26:56 -050020 sdbusplus::bus_t& passive, sdbusplus::bus_t& host);
Patrick Venturea0764872020-08-08 07:48:43 -070021
22} // namespace pid_control