Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r9c833ef5623ce842267e284d958820ac0dc3a7fc -rb56dffdfe60950630de83b03eb8527a1e10e1f63 --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 9c833ef5623ce842267e284d958820ac0dc3a7fc) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision b56dffdfe60950630de83b03eb8527a1e10e1f63) @@ -98,9 +98,9 @@ #pragma pack(pop) /// Maximum time in this mode before blood sitting alarm given (in general task intervals). -#define MAX_TIME_BLOOD_SITTING ( ( 5 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) +#define MAX_TIME_BLOOD_SITTING ( ( 5 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) //TODO: Replace with Maximum Blood Pump Allowable Stop Time institutional setting when implemented /// Maximum time in this mode before blood sitting warning given (in general task intervals). -#define WARN_TIME_BLOOD_SITTING ( ( 4 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) +#define WARN_TIME_BLOOD_SITTING ( ( 4 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) //TODO: Replace with Maximum Blood Pump Allowable Stop Time institutional setting when implemented // ********** public function prototypes ********** @@ -111,6 +111,8 @@ void signalAlarmActionToTreatmentMode( ALARM_ACTION_T action ); // Execute alarm action as appropriate for treatment mode void signalEndTreatment( void ); // Requesting transition to post-treatment mode void signalBloodPrimeToDialysis( void ); // Blood prime sub-mode is signaling to move on to dialysis sub-mode +void signalRinsebackToRecirc( void ); // Rinseback sub-mode is signaling to move on to re-circ sub-mode +void signalGoToBloodPrime( void ); // Re-circ sub-mode is signaling to return to treatment blood prime sub-mode void broadcastTreatmentTimeAndState( void ); // Broadcast the times and states of this treatment void updateTreatmentBroadcastData( F32 ufRateLhr ); // Update treatment broadcast data from current treatment parameters @@ -122,6 +124,9 @@ U32 getActualTreatmentTimeSecs( void ); // Determine the actual treatment duration in seconds 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) BOOL getBloodIsPrimed( void ); // Determine whether the blood-side circuit of the dialyzer has been primed with blood +void setRinsebackIsCompleted( BOOL flag ); // Set whether a rinseback has been completed (TD blocks rinseback option) +BOOL getRinsebackIsCompleted( void ); // Determine whether a rinseback has been completed +BOOL isRecircAllowed( void ); // Determine whether the re-circulation is allowed or not. U32 getTreatmentStartTimeStamp( void ); // Get the treatment start time stamp U32 getTreatmentEndTimeStamp( void ); // Get the treatment end time stamp