/************************************************************************** * * Copyright (c) 2024-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 TDInterface.h * * @author (last) Vinayakam Mani * @date (last) 28-Oct-2024 * * @author (original) Vinayakam Mani * @date (original) 28-Oct-2024 * ***************************************************************************/ #ifndef __TD_INTERFACE_H__ #define __TD_INTERFACE_H__ #include "DDCommon.h" #include "TDDefs.h" #include "DDDefs.h" /** * @defgroup TDInterface TDInterface * @brief TD interface & monitor unit. Interfaces with and monitors the * TD (Treatment Delivery) sub-system. * * @addtogroup TDInterface * @{ */ // ********** public definitions ********** // ********** public function prototypes ********** void initTDInterface( void ); void execTDInterfaceMonitor( void ); BOOL handleDialysateDeliveryRequestMsg( MESSAGE_T *message ); BOOL handlePreGenDialysateRequestMsg( MESSAGE_T *message ); void setTDOpMode( U32 opMode, U32 subMode ); void setTDDialysateFlowrate( F32 dialFlowrate ); void setTDUFRate( F32 ufRate ); void setTDTargetDialysateTemperature( F32 dialTemperature ); void setTDDialyzerBypass( BOOL dialBypass ); void setTDAcidAndBicarbType( U32 acid, U32 bicarb ); U32 getTDSubMode( void ); F32 getTDDialysateFlowrate( void ); F32 getTDUFRate( void ); F32 getTDTargetDialysateTemperature( void ); BOOL getTDDialyzerBypass( void ); TD_OP_MODE_T getTDOpMode( void ); DD_ACID_TYPES_T getTDAcidConcentrateType( void ); DD_BICARB_TYPES_T getTDBicarbConcentrateType( void ); BOOL testTDTreatmentParamsOverride ( MESSAGE_T *message ); /**@}*/ #endif