Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -rac6532c81f2a6d4ad1c67420c22d59f6aeeaae13 -r40e0116bbada6d1780bfa832a9c4684ba9fcfcc8 --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision ac6532c81f2a6d4ad1c67420c22d59f6aeeaae13) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 40e0116bbada6d1780bfa832a9c4684ba9fcfcc8) @@ -81,6 +81,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 @@ -96,6 +106,7 @@ 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 getActualTreatmentTimeMins( void ); // Determine the actual treatment duration in minutes 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