Index: firmware/App/Controllers/DGInterface.h =================================================================== diff -u -rf2cecb1dae0cfccc768b321f1d0cdec9a73c5824 -r8f4112033e1c247f629202cdc97389ffd5cb0170 --- firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision f2cecb1dae0cfccc768b321f1d0cdec9a73c5824) +++ firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 8f4112033e1c247f629202cdc97389ffd5cb0170) @@ -55,6 +55,12 @@ F32 setPWMDutyCyclePct; ///< RO pump set PWM duty cycle percent } DG_RO_PUMP_DATA_PAYLOAD_T; +/// Dialysate flow meter data struct. +typedef struct +{ + F32 measuredDialysateFlowRate; ///< Dialysate flow meter rate average measurement +} DIALYSATE_FLOW_METER_DATA_T; + /// Payload record structure for a drain pump data message. typedef struct { @@ -149,7 +155,8 @@ BOOL hasDGCompletedReservoirSwitch( void ); F32 getDGPressure( DG_PRESSURE_SENSORS_T sensorID ); U32 getDGROPumpPressureSetPt( void ); -F32 getDGROPumpFlowRateMlMin( void ); +F32 getDGROPumpFlowRateMlMin( void ); +F32 getDGDialysateFlowRateMlMin( void ); U32 getDGDrainPumpRPMSetPt( void ); F32 getLoadCellWeight( LOAD_CELL_ID_T loadCellID ); F32 getReservoirWeight( DG_RESERVOIR_ID_T resID ); @@ -162,7 +169,8 @@ void setDGDialysateTemperatures( F32 primaryHtrTemp, F32 trimmerHtrTemp ); void setDGReservoirsData( DG_RESERVOIR_ID_T resID, U32 fillVol, U32 drainVol ); void setDGPressures( F32 roIn, F32 roOut, F32 drainIn, F32 drainOut ); -void setDGROPumpData( U32 presSetPt, F32 flowRate ); +void setDGROPumpData( U32 presSetPt, F32 flowRate ); +void setDialysateFlowData( F32 flowRate ); void setDGDrainPumpData( U32 rpmSetPt ); void setNewLoadCellReadings( F32 res1Primary, F32 res1Backup, F32 res2Primary, F32 res2Backup ); void setDGDisinfectsStates( DG_DISINFECT_UI_STATES_T states );