From 35b156b79c1314de79e4728ef313f5164ae2ec32 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Thu, 27 Apr 2017 12:35:23 -0500 Subject: Fan monitor data This commit contains the data that will be used by the monitor code. The generated.cpp file will later be generated during the build by a python script. Change-Id: I4dc4552ae8e58cd27478416888dd3363e7c2bf3f Signed-off-by: Matt Spinler --- monitor/types.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 monitor/types.hpp (limited to 'monitor/types.hpp') diff --git a/monitor/types.hpp b/monitor/types.hpp new file mode 100644 index 0000000..dbdebd9 --- /dev/null +++ b/monitor/types.hpp @@ -0,0 +1,33 @@ +#pragma once + +#include +#include +#include + +namespace phosphor +{ +namespace fan +{ +namespace monitor +{ + +constexpr auto sensorNameField = 0; +constexpr auto hasTargetField = 1; + +using SensorDefinition = std::tuple; + +constexpr auto fanNameField = 0; +constexpr auto timeoutField = 1; +constexpr auto fanDeviationField = 2; +constexpr auto numSensorFailsForNonfuncField = 3; +constexpr auto sensorListField = 4; + +using FanDefinition = std::tuple>; + +} +} +} -- cgit v1.2.1