Index: firmware/App/Monitors/BloodLeak.h =================================================================== diff -u -r2fbc96d39b371df18e2b1b641fcd4917806c0767 -r3a539af8f3320cc7e5d81aa1d39795e581e4a86d --- firmware/App/Monitors/BloodLeak.h (.../BloodLeak.h) (revision 2fbc96d39b371df18e2b1b641fcd4917806c0767) +++ firmware/App/Monitors/BloodLeak.h (.../BloodLeak.h) (revision 3a539af8f3320cc7e5d81aa1d39795e581e4a86d) @@ -1,10 +1,26 @@ +/************************************************************************** +* +* Copyright (c) 2025-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 BloodLeak.h +* +* @author (last) Jashwant Gantyada +* @date (last) 07-Jan-2026 +* +* @author (original) Dara Navaei +* @date (original) 18-Aug-2025 +* +***************************************************************************/ - #ifndef __BLOODLEAK_H__ #define __BLOODLEAK_H__ - +#include "BloodLeakDriver.h" #include "DDCommon.h" +#include "DDDefs.h" /** * @defgroup BloodLeak BloodLeak @@ -17,36 +33,10 @@ * @{ */ -// ********** public definitions ********** - -/// Enumeration of blood leak detector status. -typedef enum BloodLeakDetectorStatus -{ - BLOOD_LEAK_DETECTED = 0, ///< Blood leak detector senses blood. - BLOOD_LEAK_NOT_DETECTED, ///< Blood leak detector does not sense any blood. - NUM_OF_BLOOD_LEAK_STATUS ///< Number of blood leak detector status. -} BLOOD_LEAK_STATUS_T; - -/// Blood leak detector data publish -typedef struct -{ - U32 bloodLeakStatus; ///< Blood leak detector status. - U32 bloodLeakState; ///< Blood leak detector state. - U32 bloodLeakPersistentCounter; ///< Blood leak detector persistent counter. - U32 bloodLeakSerialCommState; ///< Blood leak detector serial communication state. - U32 bloodLeakIntensity; ///< Blood leak detector intensity. - U32 bloodLeakDetect; ///< Blood leak detector detect. - F32 bloodLeakIntensityMovingAvg; ///< Blood leak detector intensity moving average. - U32 bloodLeakTimeSinceZeroMS; ///< Blood leak detector time since last zero in milliseconds. - U32 driftInRangeStatus; ///< Blood leak detector drift in range status. - U32 driftUpperRangeStatus; ///< Blood leak detector drift upper range status. -} BLOOD_LEAK_DATA_T; - // ********** public function prototypes ********** void initBloodLeak( void ); void execBloodLeak( void ); -void execBloodLeakEmbModeCommand( void ); BOOL zeroBloodLeak( void ); void zeroBloodLeakReset( void ); BOOL hasBloodLeakZeroSequenceFailed( void ); @@ -60,9 +50,6 @@ BOOL testBloodLeakDataPublishIntervalOverride( MESSAGE_T *message ); BOOL testBloodLeakStatusOverride( MESSAGE_T *message ); -BOOL testSetBloodLeak2EmbeddedMode( MESSAGE_T *message ); -BOOL testSetBloodLeakEmbeddedModeCommand( MESSAGE_T *message ); -BOOL testBloodLeakEmbeddedModeInfoOverride( MESSAGE_T *message ); BOOL testBloodLeakIntensityMovingAverageOverride( MESSAGE_T *message ); BOOL testBloodLeakZeroingIntervalInMillisecondsOverride( MESSAGE_T *message ); BOOL testBloodLeakZeroSequenceRequest( MESSAGE_T *message );