Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -rc65ad0538ff99c3e13d7d7866ac15e38a1ef6002 -r8466e63f95f65a3ffb18c3af85ac99328e41167b --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision c65ad0538ff99c3e13d7d7866ac15e38a1ef6002) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 8466e63f95f65a3ffb18c3af85ac99328e41167b) @@ -82,6 +82,16 @@ S32 venHighLimit; } PRESSURE_LIMIT_CHANGE_RESPONSE_T; +/// Payload record structure for the treatment log 30 minutes periodic data. +typedef struct +{ + F32 avgBloodFlowRate; + F32 avgDialysateFlowRate; + F32 avgUFRate; + F32 avgArterialPressure; + F32 avgVenousPressure; +} TREATMENT_LOG_DATA_PERIODIC_T; + // ********** public function prototypes ********** void initTreatmentMode( void ); // Initialize this module @@ -97,11 +107,21 @@ TREATMENT_STATE_T getTreatmentState( void ); // Determine the current treatment sub-mode (state) BOOL isTreatmentCompleted( void ); // Determine whether the treatment has completed U32 getTreatmentTimeRemainingSecs( void ); // Determine number of seconds remaining in the treatment +U32 getActualTreatmentTimeSecs( void ); // Determine the actual treatment duration in seconds BOOL getRinsebackCompleted( void ); // Determine whether a rinseback has been completed void setRinsebackIsCompleted( BOOL flag ); // Set whether a rinseback has been completed (T blocks rinseback option) BOOL getBloodIsPrimed( void ); // Determine whether the blood-side circuit of the dialyzer has been primed with blood void setBloodIsPrimed( BOOL flag ); // Set whether the blood-side circuit of the dialyzer has been primed with blood (F causes Tx start/resume to do blood prime first) +F32 getTreatmentAvgBloodFlowRate( void ); // Get the average blood flow rate during treatment +F32 getTreatmentAvgDialysateFlowRate( void ); // Get the average dialysate flow rate during treatment +F32 getTreatmentAvgDialysateTemp( void ); // Get the average dialysate temperature during treatment +F32 getTreatmentAvgArterialPressure( void ); // Get the average arterial pressure during treatment +F32 getTreatmentAvgVenousPressure( void ); // Get the average venous pressure during treatment + +U32 getTreatmentStartTimeStamp( void ); // Get the treatment start time stamp +U32 getTreatmentEndTimeStamp( void ); // Get the treatment end time stamp + void broadcastTreatmentTimeAndState( void ); // Broadcast the times and states of this treatment BOOL verifyTreatmentDurationSettingChange( U32 treatmentTime );