| #include <Thresholds.hpp> |
| #include <sdbusplus/asio/object_server.hpp> |
| class ADCSensor : public Sensor |
| std::string configuration; |
| ADCSensor(const std::string &path, |
| sdbusplus::asio::object_server &objectServer, |
| std::shared_ptr<sdbusplus::asio::connection> &conn, |
| boost::asio::io_service &io, const std::string &sensor_name, |
| std::vector<thresholds::Threshold> &&thresholds, |
| const double scale_factor, |
| const std::string &sensorConfiguration); |
| sdbusplus::asio::object_server &objServer; |
| boost::asio::posix::stream_descriptor input_dev; |
| boost::asio::deadline_timer wait_timer; |
| boost::asio::streambuf read_buf; |
| void handle_response(const boost::system::error_code &err); |
| void check_thresholds(void); |
| void update_value(const double &new_value); |
| void set_initial_properties( |
| std::shared_ptr<sdbusplus::asio::connection> &conn); |