Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r65cca9d3650f1da299e0c0c682bc557439a407f2 -rc548570b37339819da825092dd07c7081437f30b --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 65cca9d3650f1da299e0c0c682bc557439a407f2) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision c548570b37339819da825092dd07c7081437f30b) @@ -314,27 +314,27 @@ } /************************************************************************* - * @brief - * The broadcastDGOpMode function constructs an operation mode msg to be \n - * broadcast and queues the msg for transmit on the appropriate CAN channel. + * @brief broadcastRTCEpoch + * The broadcastRTCEpoch function constructs an epoch msg to \n + * be broadcast and queues the msg for transmit on the appropriate CAN channel. * @details * Inputs : none - * Outputs : DG op mode msg constructed and queued. - * @param mode : ID of current DG op mode + * Outputs : RTC time and date in epoch + * @param epoch : Current time and date in epoch * @return TRUE if msg successfully queued for transmit, FALSE if not *************************************************************************/ -BOOL broadcastDGOpMode( U32 mode ) +BOOL broadcastRTCEpoch( U32 epoch ) { BOOL result; MESSAGE_T msg; U08 *payloadPtr = msg.payload; // create a message record blankMessage( &msg ); - msg.hdr.msgID = MSG_ID_DG_OP_MODE; + msg.hdr.msgID = MSG_ID_RTC_EPOCH; msg.hdr.payloadLen = sizeof( U32 ); - memcpy( payloadPtr, &mode, sizeof( U32 ) ); + memcpy( payloadPtr, &epoch, sizeof( U32 ) ); // 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_DG_BROADCAST, ACK_NOT_REQUIRED ); @@ -343,27 +343,26 @@ } /************************************************************************* - * @brief broadcastRTCEpoch - * The broadcastRTCEpoch function constructs an epoch msg to \n - * be broadcast and queues the msg for transmit on the appropriate CAN channel. + * @brief + * The broadcastDGHDOperationMode function constructs a DG operation mode \n + * broadcast message and queues the msg for transmit on the appropriate CAN channel. * @details * Inputs : none - * Outputs : RTC time and date in epoch - * @param epoch : Current time and date in epoch + * Outputs : DG operation mode msg constructed and queued * @return TRUE if msg successfully queued for transmit, FALSE if not *************************************************************************/ -BOOL broadcastRTCEpoch( U32 epoch ) +BOOL broadcastDGOperationMode( U32 mode ) { BOOL result; MESSAGE_T msg; U08 *payloadPtr = msg.payload; // create a message record blankMessage( &msg ); - msg.hdr.msgID = MSG_ID_RTC_EPOCH; + msg.hdr.msgID = MSG_ID_DG_OP_MODE; msg.hdr.payloadLen = sizeof( U32 ); - memcpy( payloadPtr, &epoch, sizeof( U32 ) ); + memcpy( payloadPtr, &mode, sizeof( U32 ) ); // 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_DG_BROADCAST, ACK_NOT_REQUIRED );