Index: firmware/App/Controllers/Switches.h =================================================================== diff -u -r69b93e39861c5493d273f25d9e43cacd0b5819e2 -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Controllers/Switches.h (.../Switches.h) (revision 69b93e39861c5493d273f25d9e43cacd0b5819e2) +++ firmware/App/Controllers/Switches.h (.../Switches.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,13 +1,28 @@ +/************************************************************************** +* +* Copyright (c) 2021-2024 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 Switches.h +* +* @author (last) Sean Nash +* @date (last) 13-Jul-2022 +* +* @author (original) Dara Navaei +* @date (original) 25-Jul-2021 +* +***************************************************************************/ - #ifndef APP_CONTROLLERS_SWITCHES_H_ #define APP_CONTROLLERS_SWITCHES_H_ #include "Common.h" /** * @defgroup Switches Switches - * @brief Switches module. Monitors the status of the front door switch. + * @brief Switches module. Monitors the status of the front door and the pump track switch. * * @addtogroup Switches * @{ @@ -23,11 +38,11 @@ NUM_OF_DOORS_AND_SWITCHES ///< Number of doors and switches } SWITCH_T; -/// DG doors and caps data publish structure +/// HD switches data publish structure typedef struct { U32 frontDoor; ///< Front door - U32 cartrdigeLatch; ///< Cartridge latch + U32 pumpTrackSwitch; ///< Pump track switch } SWITCHES_DATA_T; // ********** public function prototypes ********** @@ -37,6 +52,7 @@ void execSwitches( void ); OPN_CLS_STATE_T getSwitchStatus( SWITCH_T switchId ); +void doorClosedRequired( BOOL door, BOOL pumpTrack ); BOOL testSetSwitchesDataPublishIntervalOverride( U32 value ); BOOL testResetSwitchesDataPublishIntervalOverrid( void );