Index: firmware/App/Controllers/DGInterface.h =================================================================== diff -u -r8c00197ce69e80f1967aa3f2eb36beb3573f36f3 -re23087e0c17f6ea81d60641fdb52121a8dd5a099 --- firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 8c00197ce69e80f1967aa3f2eb36beb3573f36f3) +++ firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision e23087e0c17f6ea81d60641fdb52121a8dd5a099) @@ -105,13 +105,20 @@ BOOL tareLoadCells; } DRAIN_RESERVOIR_CMD_PAYLOAD_T; +/// DG command response data record structure. +typedef struct +{ + U32 commandID; ///< The command DG is responding to + BOOL rejected; ///< Flag indicates if the command has been rejected + U32 rejectCode; ///< Reason code for rejecting the command +} DG_CMD_RESPONSE_T; + // ********** public function prototypes ********** void initDGInterface( void ); void execDGInterfaceMonitor( void ); -void initPreTreatmentReservoirMgmt( void ); void initTreatmentReservoirMgmt( void ); void dialysisResumed( void ); void execTreatmentReservoirMgmt( void ); @@ -147,6 +154,9 @@ void cmdStopDGTrimmerHeater( void ); void cmdDGSampleWater( void ); +void handleDGCommandResponse( U08 *cmdRespPtr ); +void getDGCommandResponse( DG_CMD_RESPONSE_T *cmdRespPtr ); + BOOL testSetDialOutLoadCellWeightOverride( U32 sensor, F32 value ); BOOL testResetDialOutLoadCellWeightOverride( U32 sensor );