Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r85814f50ffa07b1794e9b1c40d3e558554a7fb77 -re2cf7feff54dad3fc5be72619fa64b5421fc6f9f --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 85814f50ffa07b1794e9b1c40d3e558554a7fb77) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision e2cf7feff54dad3fc5be72619fa64b5421fc6f9f) @@ -7,8 +7,8 @@ * * @file SystemCommMessages.c * -* @author (last) Michael Garthwaite -* @date (last) 25-Aug-2023 +* @author (last) Vinayakam Mani +* @date (last) 30-Aug-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -1719,6 +1719,30 @@ /*********************************************************************//** * @brief + * The sendDGParkConcentratePumpsCommand function constructs a DG concetentrate + * pumps park request msg to the DG and queues the msg for transmit on the appropriate CAN channel. + * @details Inputs: none + * @details Outputs: DG park concentrate pumps command msg constructed and queued.. + * @return TRUE if msg successfully queued for transmit, FALSE if not + *************************************************************************/ +BOOL sendDGParkConcentratePumpsCommand( void ) +{ + BOOL result; + MESSAGE_T msg; + + // Create a message record + blankMessage( &msg ); + msg.hdr.msgID = MSG_ID_DG_PARK_CONCENTRATE_PUMPS_CMD_REQUEST; + msg.hdr.payloadLen = 0; + + // Serialize the message (w/ sync, CRC, and appropriate CAN padding) and add serialized message data to appropriate comm buffer + result = serializeMessage( msg, COMM_BUFFER_OUT_CAN_HD_2_DG, ACK_REQUIRED ); + + return result; +} + +/*********************************************************************//** + * @brief * The sendDGStartFlushModeCommand function constructs a DG start/stop * flush mode command message and queues the msg for transmit on the * appropriate CAN channel.