Brad Bishop | 26b815f | 2017-01-04 13:32:47 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 2 | |
| 3 | #include <string> |
| 4 | |
| 5 | namespace hwmon |
| 6 | { |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 7 | namespace entry |
| 8 | { |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 9 | static constexpr auto cinput = "input"; |
| 10 | static constexpr auto clabel = "label"; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 11 | static constexpr auto ctarget = "target"; |
Matt Spinler | 0a8de64 | 2017-05-11 10:59:39 -0500 | [diff] [blame] | 12 | static constexpr auto cenable = "enable"; |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 13 | |
| 14 | static const std::string input = cinput; |
| 15 | static const std::string label = clabel; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 16 | static const std::string target = ctarget; |
Matt Spinler | 0a8de64 | 2017-05-11 10:59:39 -0500 | [diff] [blame] | 17 | static const std::string enable = cenable; |
| 18 | } |
| 19 | |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 20 | namespace type |
| 21 | { |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 22 | static constexpr auto cfan = "fan"; |
| 23 | static constexpr auto ctemp = "temp"; |
| 24 | static constexpr auto cvolt = "in"; |
Jaghathiswari Rankappagounder Natarajan | e49b6a0 | 2017-07-27 16:50:05 -0700 | [diff] [blame] | 25 | static constexpr auto ccurr = "curr"; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 26 | static constexpr auto cenergy = "energy"; |
| 27 | static constexpr auto cpower = "power"; |
Matt Spinler | 0a8de64 | 2017-05-11 10:59:39 -0500 | [diff] [blame] | 28 | static constexpr auto cpwm = "pwm"; |
| 29 | |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 30 | |
| 31 | static const std::string fan = cfan; |
| 32 | static const std::string temp = ctemp; |
| 33 | static const std::string volt = cvolt; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 34 | static const std::string curr = ccurr; |
| 35 | static const std::string energy = cenergy; |
| 36 | static const std::string power = cpower; |
Matt Spinler | 0a8de64 | 2017-05-11 10:59:39 -0500 | [diff] [blame] | 37 | static const std::string pwm = cpwm; |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 38 | } |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 39 | } |
| 40 | |
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 41 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |