Index: firmware/App/Services/DDInterface.h =================================================================== diff -u -r3518e8a088c32e75c0c8960d5e629a7401095feb -r395522dffef1348e176564925656012f529c1910 --- firmware/App/Services/DDInterface.h (.../DDInterface.h) (revision 3518e8a088c32e75c0c8960d5e629a7401095feb) +++ firmware/App/Services/DDInterface.h (.../DDInterface.h) (revision 395522dffef1348e176564925656012f529c1910) @@ -1,24 +1,25 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-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 DDInterface.h * -* @author (last) Sean -* @date (last) 30-Jul-2024 +* @author (last) Sean Nash +* @date (last) 16-May-2025 * -* @author (original) Sean -* @date (original) 30-Jul-2024 +* @author (original) Sean Nash +* @date (original) 01-Aug-2024 * ***************************************************************************/ #ifndef __DD_INTERFACE_H__ #define __DD_INTERFACE_H__ #include "TDCommon.h" +#include "TDDefs.h" #include "DDDefs.h" /** @@ -31,7 +32,7 @@ */ // ********** public definitions ********** - + /// DD command response data record structure. typedef struct { @@ -43,14 +44,23 @@ // ********** public function prototypes ********** void initDDInterface( void ); +void resetDDInterface( void ); void execDDInterfaceMonitor( void ); DD_OP_MODE_T getDDOpMode( void ); -U32 getDDSubMode( void ); - -void setDDOpMode( U32 opMode, U32 subMode ); +U32 getDDSubMode( void ); +F32 getDialysatePressure( void ); +BOOL setDDOpMode( MESSAGE_T *message ); +BOOL setDialysatePressure( MESSAGE_T *message ); + +void cmdStartGenerateDialysate( F32 qd, F32 quf, F32 dialTemp, BOOL bypass, ACID_CONCENTRATE_TYPE_T acid, BICARB_CONCENTRATE_TYPE_T bicarb ); +void cmdChangeQd( F32 qd ); +void cmdChangeQuf( F32 quf ); +void cmdBypassDialyzer( BOOL bypass ); +void cmdStopGenerateDialysate( void ); + void handleDDCommandResponse( DD_CMD_RESPONSE_T *ddCmdRespPtr ); BOOL getDDCommandResponse( U32 commandID, DD_CMD_RESPONSE_T *cmdRespPtr );