/************************************************************************** * * Copyright (c) 2019-2021 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) Sean Nash * @date (last) 12-Nov-2021 * * @author (original) Peman Montazemi * @date (original) 18-Mar-2021 * ***************************************************************************/ #ifndef __BLOOD_LEAK_H__ #define __BLOOD_LEAK_H__ #include "HDCommon.h" /** * @defgroup BloodLeak BloodLeak * @brief Blood Leak detector monitor module. Monitors the * blood leak detector. * * INTROTEK - Blood Component Detector Part No. 105-0002 * * @addtogroup BloodLeak * @{ */ // ********** 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 bloodLeakZeroStatusCounter; ///< Blood leak zero status counter U32 bloodLeakCounter; ///< Blood leak counter U32 bloodLeakZeroedStatus; ///< Blood leak zeroed status U32 bloodLeakDetectSetPoint; ///< Blood leak detect set point U32 bloodLeakDetectLevel; ///< Blood leak detect level U32 bloodLeakStCount; ///< Blood leak st count U32 bloodLeakLEDIntesity; ///< Blood leak LED intensity U32 bloodLeakRegisterCounter; ///< Blood leak register counter } BLOOD_LEAK_DATA_T; // ********** public function prototypes ********** void initBloodLeak( void ); void execBloodLeak( void ); void zeroBloodLeak( void ); BLOOD_LEAK_STATUS_T getBloodLeakStatus( void ); SELF_TEST_STATUS_T getBloodLeakSelfTestStatus( void ); BOOL testSetBloodLeakDataPublishIntervalOverride( U32 value ); BOOL testResetBloodLeakDataPublishIntervalOverride( void ); BOOL testSetBloodLeakStatusOverride( BLOOD_LEAK_STATUS_T status); BOOL testResetBloodLeakStatusOverride( void ); /**@}*/ #endif