Index: firmware/App/Services/DDInterface.c =================================================================== diff -u -r1b83a4555c4040a45cecfbea45b6570812ab281e -rbcc80fde38b8b94c64a7ad615f9ca3cb6e98c77e --- firmware/App/Services/DDInterface.c (.../DDInterface.c) (revision 1b83a4555c4040a45cecfbea45b6570812ab281e) +++ firmware/App/Services/DDInterface.c (.../DDInterface.c) (revision bcc80fde38b8b94c64a7ad615f9ca3cb6e98c77e) @@ -15,6 +15,7 @@ * ***************************************************************************/ +#include "DDDefs.h" #include "DDInterface.h" #include "MessagePayloads.h" #include "Messaging.h" @@ -616,7 +617,8 @@ { dialysateDeliveryCmdSet.substitutionRate = qs; #ifndef TEST_UI_ONLY - sendMessage( MSG_ID_DD_GEN_DIALYSATE_REQUEST_DATA, COMM_BUFFER_OUT_CAN_TD_2_DD, (U08*)(&dialysateDeliveryCmdSet), sizeof( DIALYSATE_DELIVERY_REQ_PAYLOAD_T ) ); + sendMessage( MSG_ID_DD_GEN_DIALYSATE_REQUEST_DATA, COMM_BUFFER_OUT_CAN_TD_2_DD, + (U08*)(&dialysateDeliveryCmdSet), sizeof( DIALYSATE_DELIVERY_REQ_PAYLOAD_T ) ); #endif } else @@ -625,7 +627,25 @@ } } +/*********************************************************************//** + * @brief + * The cmdStartDDFlush function sends a start flush command message to + * the DD. + * @details \b Inputs: none + * @details \b Outputs: start flush mode command sent to DD. + * @return none + *************************************************************************/ +void cmdStartDDFlush( void ) +{ + UI_RESPONSE_PAYLOAD_T response; + memset( &response, 0, sizeof( UI_RESPONSE_PAYLOAD_T ) ); + response.accepted = TRUE; + ddCmdResp[ DD_CMD_START_FLUSH ].commandID = DD_CMD_NONE; + sendMessage( MSG_ID_TD_DD_FLUSH_REQUEST, COMM_BUFFER_OUT_CAN_TD_2_UI, (U08*) &response, sizeof( UI_RESPONSE_PAYLOAD_T ) ); +} + + /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/