Index: firmware/App/Modes/StateTxBloodPrime.h =================================================================== diff -u -r2fe1bfe77e53e5b92dae1b89c726c59b7b95939f -rcc925371f5081d8b486e65f942d9608e6e0b8d31 --- firmware/App/Modes/StateTxBloodPrime.h (.../StateTxBloodPrime.h) (revision 2fe1bfe77e53e5b92dae1b89c726c59b7b95939f) +++ firmware/App/Modes/StateTxBloodPrime.h (.../StateTxBloodPrime.h) (revision cc925371f5081d8b486e65f942d9608e6e0b8d31) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2021-2025 Diality Inc. - All Rights Reserved. +* Copyright (c) 2026-2026 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * -* @file BloodPrime.h +* @file StateTxBloodPrime.h * * @author (last) Varshini Nagabooshanam -* @date (last) 26-Dec-2025 +* @date (last) 15-Jan-2026 * * @author (original) Varshini Nagabooshanam -* @date (original) 22-Dec-2025 +* @date (original) 09-Jan-2026 * ***************************************************************************/ @@ -22,7 +22,7 @@ #include "TDDefs.h" /** - * @defgroup BloodPrime BloodPrime + * @defgroup StateTxBloodPrime StateTxBloodPrime * @brief Blood prime sub-mode of treatment mode. * The blood prime state is where we go when treatment is first started or * when returning to treatment after a rinseback. @@ -36,13 +36,13 @@ // ********** public definitions ****************** -#define TUBING_BLOOD_PRIME_VOLUME_ML 106.6F ///< Tubing portion of blood prime volume to prime the blood side circuit (in mL). - /// Payload record structure for a blood prime data broadcast message. typedef struct { F32 targetBloodPrimeVolumeMl; ///< Target blood prime volume in mL. F32 deliveredBloodPrimeVolumeMl; ///< Delivered blood prime volume in mL. + U32 bloodPrimeTimeoutSec; ///< Blood prime timeout in seconds. + U32 bloodPrimeCountdownSec; ///< Blood prime count down in seconds. } BLOOD_PRIME_DATA_PAYLOAD_T; // ********** public function prototypes ********** @@ -52,9 +52,11 @@ void execBloodPrime( void ); // Execute the blood prime sub-mode state machine BLOOD_PRIME_STATE_T getCurrentBloodPrimeState( void ); // Get the current treatment sub-mode state +BOOL bloodPrimeHandleCmdRequest( MESSAGE_T *message ); // Handle blood prime command from UI +BOOL bloodPrimeHandleBloodFlowChangeRequest( MESSAGE_T *message ); // Handle blood prime command from UI -BOOL testSetBloodPrimeVolumeOverride( MESSAGE_T *message ); -BOOL testSetBloodPrimePublishIntervalOverride( MESSAGE_T *message ); +BOOL testBloodPrimePublishIntervalOverride( MESSAGE_T *message ); +BOOL testBloodPrimeVolumeOverride( MESSAGE_T *message ); /**@}*/