Skip to content

Refactor message header alignment and "raw" types to fit a clear pattern #1009

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
Aligned version of message headers currently in SB, shows different handling of the base type.

/** \brief Software Bus generic message */
typedef CFE_MSG_Message_t CFE_SB_Msg_t;
/** \brief Aligned Software Bus command header */
typedef union CFE_SB_CmdHdr {
CFE_MSG_CommandHeader_t Cmd;
CFE_SB_Msg_t BaseMsg;
} CFE_SB_CmdHdr_t;
/** \brief Aligned Software Bus telemetry header */
typedef union CFE_SB_TlmHdr {
CFE_MSG_TelemetryHeader_t Tlm;
CFE_SB_Msg_t BaseMsg;
} CFE_SB_TlmHdr_t;

Describe the solution you'd like
See discussion below.

Describe alternatives you've considered
None.

Additional context
Brought up as part of #777/#998 review.

Requester Info
Jacob Hageman - NASA/GSFC (from CCB discussion)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions