summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-24 21:59:42 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-04 00:52:54 -0500
commit7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7 (patch)
treeec559561bf42b049a5beddf6ce77a9e8bcc3730f /control/zone.hpp
parent4f2f08d447147fdfe88366c4c9a7cf013e12c5e2 (diff)
downloadphosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.tar.gz
phosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.zip
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index cd7e5d6..2185afa 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -19,11 +19,13 @@ namespace control
* The mode fan control will run in:
* - init - only do the initialization steps
* - control - run normal control algorithms
+ * - init - shutdown fans, stopping all rotors
*/
enum class Mode
{
init,
- control
+ control,
+ shutdown
};
/**
@@ -70,6 +72,12 @@ class Zone
void setFullSpeed();
/**
+ * Disables the zone and stops all zone fans regardless of
+ * zone's active state
+ */
+ void disableRotors();
+
+ /**
* @brief Sets the automatic fan control allowed active state
*
* @param[in] group - A group that affects the active state
OpenPOWER on IntegriCloud