Index: firmware/App/Controllers/DialysateFlow.h =================================================================== diff -u -r41f49a0643c7cfa35c9c99fb9ac4e6410c968dc5 -r1c2f96bf994157b11c0c32ddaf96fc91a9a1da1d --- firmware/App/Controllers/DialysateFlow.h (.../DialysateFlow.h) (revision 41f49a0643c7cfa35c9c99fb9ac4e6410c968dc5) +++ firmware/App/Controllers/DialysateFlow.h (.../DialysateFlow.h) (revision 1c2f96bf994157b11c0c32ddaf96fc91a9a1da1d) @@ -8,7 +8,7 @@ * @file DialysateFlow.h * * @author (last) H. Nguyen -* @date (last) 19-Oct-2021 +* @date (last) 21-Oct-2021 * * @author (original) H. Nguyen * @date (original) 19-Oct-2021 @@ -23,15 +23,15 @@ /** * @defgroup Dialysate Flow Meter * @brief Dialysate flow rate monitor module. Monitors the dialysate flow meter. - * The dialysate flow meter is manufactured by ?, PN: ? + * The dialysate flow meter is manufactured by Swiss Flow, PN: 0045 * * @addtogroup Dialysate Flow Meter * @{ */ // ********** public definitions ********** -#define MAX_DIALYSATE_FLOWRATE_LPM 1.4 ///< Maximum target Dialysate flow rate in L/min. -#define MIN_DIALYSATE_FLOWRATE_LPM 0.2 ///< Minimum target Dialysate flow rate in L/min. +#define MAX_DIALYSATE_FLOWRATE_LPM 2.00 ///< Maximum target Dialysate flow rate in L/min. +#define MIN_DIALYSATE_FLOWRATE_LPM 0.05 ///< Minimum target Dialysate flow rate in L/min. /// Dialysate flow meter data struct. typedef struct @@ -41,13 +41,19 @@ // ********** public function prototypes ********** +void initDialysateFlowMeter( void ); + void execDialysateFlowMeterMonitor( void ); + F32 getMeasuredDialysateFlowRate( void ); -void initDialysateFlowMeter( void ); -//BOOL isDialysateFlowMeterRunning( void ); -BOOL testSetDialysateMeterDataPublishIntervalOverride( U32 value ); -BOOL testSetTargetDialysateMeterFlow( F32 flow ); +BOOL testSetDialysateFlowDataPublishIntervalOverride( U32 value ); +BOOL testResetDialysateFlowDataPublishIntervalOverride( void ); + +BOOL testSetMeasuredDialysateFlowRateOverride( F32 flow ); +BOOL testResetMeasuredDialysateFlowRateOverride( void ); + + /**@}*/ #endif