Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r1519b5d150fd913f596715f0eacce7d5c5e0d56c -r4ec54dc76acf9a434fb860c51739a7dd6f72afd6 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 1519b5d150fd913f596715f0eacce7d5c5e0d56c) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 4ec54dc76acf9a434fb860c51739a7dd6f72afd6) @@ -7116,6 +7116,30 @@ } /*********************************************************************//** + * @brief + * The sendRequestForDGResendAlarms function sends out the HD request for + * DG re-send all active alarms. + * @details Inputs: none + * @details Outputs: DG alarms re-send request msg constructed and queued + * @return TRUE if msg successfully queued for transmit, FALSE if not + *************************************************************************/ +BOOL sendRequestForDGResendAlarms( void ) +{ + BOOL result; + MESSAGE_T msg; + + // Create a message record + blankMessage( &msg ); + msg.hdr.msgID = MSG_ID_HD_REQUEST_DG_ALARMS; + 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 handleGetHDUsageInfoRecord function handles a request to get the HD * usage information record.