James Feist | 139cb57 | 2018-09-10 15:26:18 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/asio/object_server.hpp> |
| 4 | |
| 5 | class PwmSensor |
| 6 | { |
| 7 | public: |
| 8 | PwmSensor(const std::string& sysPath, |
| 9 | sdbusplus::asio::object_server& objectServer); |
| 10 | ~PwmSensor(); |
| 11 | |
| 12 | private: |
| 13 | std::string sysPath; |
| 14 | sdbusplus::asio::object_server& objectServer; |
| 15 | std::string name; |
| 16 | std::shared_ptr<sdbusplus::asio::dbus_interface> sensorInterface; |
| 17 | std::shared_ptr<sdbusplus::asio::dbus_interface> controlInterface; |
| 18 | void setValue(uint32_t value); |
| 19 | uint32_t getValue(bool errThrow = true); |
| 20 | }; |