Index: Common.h =================================================================== diff -u -radab2bae581c8421a4f92855519984497824ff0c -r0f1d0c443daee3e30ae823711e85f3410bbf49fe --- Common.h (.../Common.h) (revision adab2bae581c8421a4f92855519984497824ff0c) +++ Common.h (.../Common.h) (revision 0f1d0c443daee3e30ae823711e85f3410bbf49fe) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file Common.h * -* @author (last) Sean Nash -* @date (last) 08-Sep-2020 +* @author (last) Dara Navaei +* @date (last) 02-Dec-2020 * * @author (original) Sean * @date (original) 04-Feb-2020 @@ -78,11 +78,18 @@ /// List of pump control modes. typedef enum Pump_Control_Modes { - PUMP_CONTROL_MODE_CLOSED_LOOP = 0, ///< Pump controlled based on set point and feedback - PUMP_CONTROL_MODE_OPEN_LOOP, ///< Pump controlled to set PWM duty cycle - NUM_OF_PUMP_CONTROL_MODES ///< Number of pump control modes + PUMP_CONTROL_MODE_CLOSED_LOOP = 0, ///< Pump controlled based on set point and feedback + PUMP_CONTROL_MODE_OPEN_LOOP, ///< Pump controlled to set PWM duty cycle + NUM_OF_PUMP_CONTROL_MODES ///< Number of pump control modes } PUMP_CONTROL_MODE_T; +/// List of switch states. +typedef enum Switch_States +{ + TURN_OFF = 0, ///< Turn off + TURN_ON, ///< Turn on +} SWITCH_STATES_T; + // **** Common Definitions **** #define NEARLY_ZERO 0.00000001 ///< Value that is nearly zero. Used for floating point zero comparisons (e.g. divide by zero checks)