Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r96604b790636c66ef21980a4f13ee9f987f12fee -r52787cd53986cfd0abb7e674bf096898e5070f9a --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 96604b790636c66ef21980a4f13ee9f987f12fee) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 52787cd53986cfd0abb7e674bf096898e5070f9a) @@ -7,8 +7,8 @@ * * @file ModeTreatment.h * -* @author (last) Raghu Kallala -* @date (last) 06-Apr-2026 +* @author (last) Praneeth Bunne +* @date (last) 04-Jun-2026 * * @author (original) Sean Nash * @date (original) 21-Apr-2025 @@ -55,7 +55,7 @@ U32 rinsebackState; ///< Rinse back state. U32 txRecircState; ///< Treatment recirc state. U32 txEndState; ///< Treatment end state. - U32 txSalBolusState; ///< Saline bolus state. + U32 txFluidBolusState; ///< Fluid bolus state. U32 txHepState; ///< Heparin state. } TREATMENT_STATE_DATA_T; @@ -113,26 +113,27 @@ // ********** public function prototypes ********** -void initTreatmentMode( void ); // Initialize this unit -U32 transitionToTreatmentMode( void ); // Prepares for transition to treatment mode -U32 execTreatmentMode( void ); // Execute the treatment mode state machine (call from OperationModes) +void initTreatmentMode( void ); // Initialize this unit +U32 transitionToTreatmentMode( void ); // Prepares for transition to treatment mode +U32 execTreatmentMode( void ); // Execute the treatment mode state machine (call from OperationModes) -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 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 broadcastTreatmentTimeAndState( void ); // Broadcast the times and states of this treatment +void broadcastTreatmentTimeAndState( void ); // Broadcast the times and states of this treatment +void updateTreatmentBroadcastData( F32 ufRateLhr ); // Update treatment broadcast data from current treatment parameters -TREATMENT_STATE_T getTreatmentState( void ); // Determine the current treatment sub-mode (state) -BOOL isTreatmentCompleted( void ); // Determine whether the treatment has completed -BOOL isTreatmentResumeBlocked( void ); // Determine whether the treatment is not allowed to be resumed. -U32 getTreatmentTimeRemainingSecs( void ); // Determine number of seconds remaining in the treatment -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 +TREATMENT_STATE_T getTreatmentState( void ); // Determine the current treatment sub-mode (state) +BOOL isTreatmentCompleted( void ); // Determine whether the treatment has completed +BOOL isTreatmentResumeBlocked( void ); // Determine whether the treatment is not allowed to be resumed. +U32 getTreatmentTimeRemainingSecs( void ); // Determine number of seconds remaining in the treatment +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 -U32 getTreatmentStartTimeStamp( void ); // Get the treatment start time stamp -U32 getTreatmentEndTimeStamp( void ); // Get the treatment end time stamp +U32 getTreatmentStartTimeStamp( void ); // Get the treatment start time stamp +U32 getTreatmentEndTimeStamp( void ); // Get the treatment end time stamp BOOL setIsolatedUFSettings( U32 durationMin, F32 ufVolumeMl ); // Set isolated UF duration, goal, and rate void signalStartIsolatedUF( BOOL midTreatment ); // Request transition to isolated UF