Index: firmware/App/Controllers/UVReactors.h =================================================================== diff -u -rccf1219089b835ab2f9d401c0be0d2000be9010a -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 --- firmware/App/Controllers/UVReactors.h (.../UVReactors.h) (revision ccf1219089b835ab2f9d401c0be0d2000be9010a) +++ firmware/App/Controllers/UVReactors.h (.../UVReactors.h) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) @@ -1,3 +1,19 @@ +/************************************************************************** +* +* Copyright (c) 2020-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 UVReactors.h +* +* @author (last) Dara Navaei +* @date (last) 17-Jan-2023 +* +* @author (original) Dara Navaei +* @date (original) 24-Nov-2020 +* +***************************************************************************/ #ifndef APP_CONTROLLERS_UVREACTORS_H_ #define APP_CONTROLLERS_UVREACTORS_H_ @@ -17,11 +33,27 @@ /// UV reactors names typedef enum uv_reactors_names { - INLET_UV_REACTOR = 0, ///< Inlet UV reactor - OUTLET_UV_REACTOR, ///< Outlet UV reactor - NUM_OF_UV_REACTORS, ///< Number of UV reactors + INLET_UV_REACTOR = 0, ///< Inlet UV reactor + OUTLET_UV_REACTOR, ///< Outlet UV reactor + NUM_OF_UV_REACTORS, ///< Number of UV reactors } UV_REACTORS_T; +/// List of reactor states. +typedef enum Switch_States +{ + TURN_OFF = 0, ///< Turn off + TURN_ON, ///< Turn on +} UV_REACTOR_STATES_T; + +/// UV reactors health status +typedef enum uv_reactors_health_status +{ + UV_REACTOR_NOT_HEALTHY = 0, ///< UV reactor unhealthy + UV_REACTOR_HEALTHY, ///< UV reactor healthy + UV_REACTOR_OFF, ///< UV reactor off + NUM_OF_REACTORS_HEALTH_STATUS, ///< Number of UV reactors health status +}UV_REACTORS_HEALTH_STATUS_T; + /// UV reactors data publish typedef struct { @@ -37,16 +69,18 @@ void execUVReactors( void ); -BOOL getUVReactorHealth( UV_REACTORS_T reactor ); +UV_REACTORS_HEALTH_STATUS_T getUVReactorHealth( UV_REACTORS_T reactor ); BOOL turnOnUVReactor( UV_REACTORS_T reactor ); BOOL turnOffUVReactor( UV_REACTORS_T reactor ); +void resetUVReactorsPOSTState( void ); + BOOL testSetReactorsDataPublishInterval( U32 value ); BOOL testResetReactorsDataPublishInterval( void ); -BOOL testSetUVReactorHealthOverride( U32 reactor, BOOL health ); +BOOL testSetUVReactorHealthOverride( U32 reactor, U32 health ); BOOL testResetUVReactorHealthOverride( U32 reactor ); /**@}*/