Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 3 | #include <sdbusplus/server.hpp> |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 4 | #include <xyz/openbmc_project/Control/FanPwm/server.hpp> |
| 5 | #include <xyz/openbmc_project/Control/FanSpeed/server.hpp> |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 6 | #include <xyz/openbmc_project/Sensor/Accuracy/server.hpp> |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 7 | #include <xyz/openbmc_project/Sensor/Threshold/Critical/server.hpp> |
| 8 | #include <xyz/openbmc_project/Sensor/Threshold/Warning/server.hpp> |
| 9 | #include <xyz/openbmc_project/Sensor/Value/server.hpp> |
| 10 | #include <xyz/openbmc_project/State/Decorator/OperationalStatus/server.hpp> |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 11 | |
Brad Bishop | d9f06ab | 2017-01-17 14:53:30 -0500 | [diff] [blame] | 12 | template <typename... T> |
Patrick Williams | ad6043f | 2022-07-22 19:26:56 -0500 | [diff] [blame] | 13 | using ServerObject = typename sdbusplus::server::object_t<T...>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 14 | |
| 15 | using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value; |
| 16 | using ValueObject = ServerObject<ValueInterface>; |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 17 | using WarningInterface = |
| 18 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning; |
| 19 | using WarningObject = ServerObject<WarningInterface>; |
| 20 | using CriticalInterface = |
| 21 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical; |
| 22 | using CriticalObject = ServerObject<CriticalInterface>; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 23 | using FanSpeedInterface = |
| 24 | sdbusplus::xyz::openbmc_project::Control::server::FanSpeed; |
| 25 | using FanSpeedObject = ServerObject<FanSpeedInterface>; |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 26 | using FanPwmInterface = |
| 27 | sdbusplus::xyz::openbmc_project::Control::server::FanPwm; |
| 28 | using FanPwmObject = ServerObject<FanPwmInterface>; |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 29 | using StatusInterface = sdbusplus::xyz::openbmc_project::State::Decorator:: |
| 30 | server::OperationalStatus; |
Matthew Barth | 3581938 | 2018-04-18 14:53:01 -0500 | [diff] [blame] | 31 | using StatusObject = ServerObject<StatusInterface>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 32 | |
Matt Spinler | e32ce16 | 2021-05-12 08:55:12 -0500 | [diff] [blame] | 33 | using SensorValueType = double; |
James Feist | ee73f5b | 2018-08-01 16:31:42 -0700 | [diff] [blame] | 34 | |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 35 | using AccuracyInterface = |
| 36 | sdbusplus::xyz::openbmc_project::Sensor::server::Accuracy; |
| 37 | using AccuracyObject = ServerObject<AccuracyInterface>; |
| 38 | |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 39 | enum class InterfaceType |
| 40 | { |
| 41 | VALUE, |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 42 | WARN, |
| 43 | CRIT, |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 44 | FAN_SPEED, |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 45 | FAN_PWM, |
Matthew Barth | 3581938 | 2018-04-18 14:53:01 -0500 | [diff] [blame] | 46 | STATUS, |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 47 | ACCURACY, |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 48 | }; |
| 49 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 50 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |