/************************************************************************** * * Copyright (c) 2024-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 FPModeFault.c * * @author (last) Michael Garthwaite * @date (last) 28-Feb-2025 * * @author (original) Michael Garthwaite * @date (original) 28-Feb-2025 * ***************************************************************************/ #include "FPModeFault.h" #include "FPModeStandby.h" #include "FPOperationModes.h" #include "BoostPump.h" #include "ModePreGenPermeateDefeatured.h" #include "ModePreGenPermeate.h" #include "PersistentAlarm.h" #include "ROPump.h" #include "SystemCommFP.h" #include "TaskGeneral.h" #include "Valves.h" /** * @addtogroup FPFaultMode * @{ */ // ********** private data ********** /*********************************************************************//** * @brief * The initFaultMode function initializes the fault mode unit. * @details \b Inputs: none * @details \b Outputs:unit variables initialized. * @return none *************************************************************************/ void initFaultMode( void ) { } /*********************************************************************//** * @brief * The transitionToFaultMode function prepares for transition to fault mode. * while transition, deenergize all actuators. * @details \b Inputs: none * @details \b Outputs: Re-initialized Init and POST mode * @return initial state *************************************************************************/ U32 transitionToFaultMode( void ) { setValveState( M4_VALV,VALVE_STATE_CLOSED ); setValveState( P6_VALV,VALVE_STATE_CLOSED ); setValveState( P11_VALV,VALVE_STATE_CLOSED ); setValveState( P33_VALV, VALVE_STATE_CLOSED ); setValveState( P34_VALV,VALVE_STATE_CLOSED ); setValveState( P37_VALV, VALVE_STATE_CLOSED ); setValveState( P39_VALV,VALVE_STATE_CLOSED ); if (TRUE == isBoostPumpInstalled()) { signalBoostPumpHardStop(); } signalROPumpHardStop(); return 0; } /*********************************************************************//** * @brief * The execFaultMode function executes the fault mode state machine. * @details \b Inputs: none * @details \b Outputs: Fault mode state machine executed * @return current state *************************************************************************/ U32 execFaultMode( void ) { return 0; } /**@}*/