summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-29 11:43:45 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-07-06 17:25:12 -0500
commita956184bfe6afa6803fc4456eea1f5b6742d8f80 (patch)
tree490a45ef4feb71435d28860c4758c8a416318137 /control/types.hpp
parentb4a7cb99bb82f602d3cff848a1f14ade1da2ddb5 (diff)
downloadphosphor-fan-presence-a956184bfe6afa6803fc4456eea1f5b6742d8f80.tar.gz
phosphor-fan-presence-a956184bfe6afa6803fc4456eea1f5b6742d8f80.zip
Add increase & decrease timer values in seconds
Support setting the increase delay time(in seconds) for each zone from the zone yaml file. Speed increases use a delay type timer where the amount of time given delays additional increase requests from happening until the fans within the zone reach the highest net increase in speeds. Support setting the decrease interval time(in seconds) for each zone from the zone yaml file. Since decreasing is done on an interval, a decrease interval time of zero disables the decrease interval timer causing no decreases in speed to occur. Speed decreases use an interval type timer to decrease the fan speeds within the zone when no speed increase requests exist on the given time interval. Change-Id: I88334a313b6e2820b768fa7e3f1cb65887f29258 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/control/types.hpp b/control/types.hpp
index 6e99950..b6a031f 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -59,11 +59,15 @@ using EventData = std::tuple<Group, Handler, Action>;
constexpr auto zoneNumPos = 0;
constexpr auto fullSpeedPos = 1;
constexpr auto floorSpeedPos = 2;
-constexpr auto fanListPos = 3;
-constexpr auto setSpeedEventsPos = 4;
+constexpr auto incDelayPos = 3;
+constexpr auto decIntervalPos = 4;
+constexpr auto fanListPos = 5;
+constexpr auto setSpeedEventsPos = 6;
using ZoneDefinition = std::tuple<size_t,
uint64_t,
uint64_t,
+ size_t,
+ size_t,
std::vector<FanDefinition>,
std::vector<SetSpeedEvent>>;
OpenPOWER on IntegriCloud