Index: firmware/App/Drivers/FlowSensor.h =================================================================== diff -u -r3edf8084a5028ee0d00a3fba496284e593e4254d -r3241c6b7f66889b6443e377ab1f5ecf2cedd2602 --- firmware/App/Drivers/FlowSensor.h (.../FlowSensor.h) (revision 3edf8084a5028ee0d00a3fba496284e593e4254d) +++ firmware/App/Drivers/FlowSensor.h (.../FlowSensor.h) (revision 3241c6b7f66889b6443e377ab1f5ecf2cedd2602) @@ -14,42 +14,42 @@ * @date (original) 21-Nov-2024 * ***************************************************************************/ - -#ifndef __FLOW_SENSOR_H__ -#define __FLOW_SENSOR_H__ - + +#ifndef __FLOW_SENSOR_H__ +#define __FLOW_SENSOR_H__ + #include "ROCommon.h" - -/** - * @defgroup FlowSensor FlowSensor + +/** + * @defgroup FlowSensor FlowSensor * @brief Flow sensors driver unit. Reads the flow rates and temperatures - * from the various RO flow sensors. - * - * @addtogroup FlowSensor - * @{ - */ - + * from the various RO flow sensors. + * + * @addtogroup FlowSensor + * @{ + */ + // ********** public definitions ********** - -/// Enumeration of flow sensors handled by this unit. -typedef enum FlowSensors -{ - FLOW_SENSOR_WATER_INLET = 0, ///< Water inlet flow sensor (FMS P7) - FLOW_SENSOR_FIRST = FLOW_SENSOR_WATER_INLET, ///< First flow - FLOW_SENSOR_RO_OUTLET, ///< RO outlet flow sensor (FMP P16) - NUM_OF_FLOW_SENSORS ///< Number of flow sensors -} FLOW_SENSORS_T; - -// ********** public function prototypes ********** - -void initFlowSensor( void ); + +/// Enumeration of flow sensors handled by this unit. +typedef enum FlowSensors +{ + P7_FLOW = 0, ///< Water inlet flow sensor (FMS P7) + FLOW_SENSOR_FIRST = P7_FLOW, ///< First flow + P16_FLOW, ///< RO outlet flow sensor (FMP P16) + NUM_OF_FLOW_SENSORS ///< Number of flow sensors +} FLOW_SENSORS_T; + +// ********** public function prototypes ********** + +void initFlowSensor( void ); void readFlowSensors( void ); F32 getFlowRate( FLOW_SENSORS_T sensor ); F32 getFlowTemperature( FLOW_SENSORS_T sensor ); BOOL testFlowSensorReadingsOverride( MESSAGE_T *message ); BOOL testFlowSensorTemperatureReadingsOverride( MESSAGE_T *message ); - -/**@}*/ - -#endif + +/**@}*/ + +#endif