Index: firmware/App/Modes/TreatmentStop.h =================================================================== diff -u -r3135defd5053f5724eac7375ffd56ad1d129d5ae -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Modes/TreatmentStop.h (.../TreatmentStop.h) (revision 3135defd5053f5724eac7375ffd56ad1d129d5ae) +++ firmware/App/Modes/TreatmentStop.h (.../TreatmentStop.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +* Copyright (c) 2020-2024 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 TreatmentStop.h +* @file TreatmentStop.h * -* @author (last) Sean Nash -* @date (last) 29-May-2020 +* @author (last) Sean Nash +* @date (last) 12-Nov-2021 * -* @author (original) Sean -* @date (original) 15-Jan-2020 +* @author (original) Sean +* @date (original) 15-Jan-2020 * ***************************************************************************/ @@ -34,6 +34,13 @@ // ********** public definitions ****************** +/// Payload record for treatment stop mode broadcast message +typedef struct +{ + U32 timeout; ///< Blood sitting timeout (in seconds) + U32 countdown; ///< Blood sitting timeout countdown (in seconds) +} TREATMENT_STOP_PAYLOAD_T; + // ********** public function prototypes ********** void initTreatmentStop( void ); @@ -42,6 +49,9 @@ TREATMENT_STOP_STATE_T getCurrentTreatmentStopState( void ); +BOOL testSetTreatmentStopPublishIntervalOverride( U32 ms ); +BOOL testResetTreatmentStopPublishIntervalOverride( void ); + /**@}*/ #endif