Index: Common.h =================================================================== diff -u -radab2bae581c8421a4f92855519984497824ff0c -r6b3109b7090a207d9ec7ab67006bd95389ea0b28 --- Common.h (.../Common.h) (revision adab2bae581c8421a4f92855519984497824ff0c) +++ Common.h (.../Common.h) (revision 6b3109b7090a207d9ec7ab67006bd95389ea0b28) @@ -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)