Index: firmware/App/Controllers/UVReactors.h =================================================================== diff -u -rccf1219089b835ab2f9d401c0be0d2000be9010a -r86eec09ab556fbd970ddcae9dc622727928ee757 --- firmware/App/Controllers/UVReactors.h (.../UVReactors.h) (revision ccf1219089b835ab2f9d401c0be0d2000be9010a) +++ firmware/App/Controllers/UVReactors.h (.../UVReactors.h) (revision 86eec09ab556fbd970ddcae9dc622727928ee757) @@ -17,11 +17,20 @@ /// 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; +/// 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,7 +46,7 @@ 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 ); @@ -46,7 +55,7 @@ BOOL testSetReactorsDataPublishInterval( U32 value ); BOOL testResetReactorsDataPublishInterval( void ); -BOOL testSetUVReactorHealthOverride( U32 reactor, BOOL health ); +BOOL testSetUVReactorHealthOverride( U32 reactor, U32 health ); BOOL testResetUVReactorHealthOverride( U32 reactor ); /**@}*/