Skip to content

Commit

Permalink
Fix nasa#711, Minor cleanup
Browse files Browse the repository at this point in the history
Moved CFE_MSG_InitDefaultHdr to cfe_msg_priv.h
Added missing TODO in ccsds.h
  • Loading branch information
skliper committed Jun 10, 2020
1 parent 57aeb8f commit 47aa6a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions fsw/cfe-core/src/inc/ccsds.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ typedef CFE_MSG_TelemetryHeader_t CCSDS_TelemetryPacket_t; /* Element names cha
#endif

#if 0 /* all the way to the end... */
/* TODO deprecate */

/*----- CCSDS Endian Flag in the APID Qualifier Field. -----*/
#define CCSDS_BIG_ENDIAN 0
Expand Down
12 changes: 0 additions & 12 deletions fsw/cfe-core/src/msg/inc_private/cfe_msg_defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,4 @@ void CFE_MSG_SetDefaultCCSDSPri(CFE_MSG_Message_t *MsgPtr);
*/
void CFE_MSG_SetDefaultCCSDSExt(CFE_MSG_Message_t *MsgPtr);

/*****************************************************************************/
/**
* \brief Initialize default header - implemented based on selected header format
*
* \par DESCRIPTION
* Sets the constant defaults for the entire header. Internal function
* assumes pointer is valid.
*
* \param[out] MsgPtr Message to set
*/
void CFE_MSG_InitDefaultHdr(CFE_MSG_Message_t *MsgPtr);

#endif /* _cfe_msg_default_ */
12 changes: 12 additions & 0 deletions fsw/cfe-core/src/msg/inc_private/cfe_msg_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,16 @@ static inline void CFE_MSG_SetHeaderField(uint8 *Word, uint16 Val, uint16 Mask)
Word[1] = ((Word[1] & ~Mask) | (Val & Mask)) & 0xFF;
}

/*****************************************************************************/
/**
* \brief Initialize default header - implemented based on selected header format
*
* \par DESCRIPTION
* Sets the constant defaults for the entire header. Internal function
* assumes pointer is valid.
*
* \param[out] MsgPtr Message to set
*/
void CFE_MSG_InitDefaultHdr(CFE_MSG_Message_t *MsgPtr);

#endif /* _cfe_msg_priv_ */

0 comments on commit 47aa6a7

Please sign in to comment.