-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App should treat CFE_SB_MsgId_t values as opaque #53
Comments
jphickey
added a commit
to jphickey/sample_app
that referenced
this issue
Apr 6, 2020
Do not assume CFE_SB_MsgId_t is implicitly integral in nature. When an integer value is required for printing or backward compatibility, use the explicit conversion routine to get this.
This was referenced Apr 6, 2020
jphickey
added a commit
to jphickey/sample_app
that referenced
this issue
Apr 8, 2020
Do not assume CFE_SB_MsgId_t is implicitly integral in nature. When an integer value is required for printing or backward compatibility, use the explicit conversion routine to get this.
jphickey
added a commit
to jphickey/sample_app
that referenced
this issue
May 5, 2020
Do not assume CFE_SB_MsgId_t is implicitly integral in nature. When an integer value is required for printing or backward compatibility, use the explicit conversion routine to get this.
jphickey
added
the
CCB:Ready
Pull request is ready for discussion at the Configuration Control Board (CCB)
label
May 5, 2020
Rebased and pared back changeset to only the parts accepted in CFE. This actually causes a compile failure on RTEMS when |
astrogeco
removed
the
CCB:Ready
Pull request is ready for discussion at the Configuration Control Board (CCB)
label
May 6, 2020
astrogeco
added a commit
that referenced
this issue
May 8, 2020
Fix #53, Opaque CFE_SB_MsgId_t values
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
For compatibility going forward, code should not assume that
CFE_SB_MsgId_t
is an integer.Describe the solution you'd like
When dealing with an integer, such as when printing in events/messages or for backward compatibility with MID
#define
's, the code may useCFE_SB_ValueToMsgId()
andCFE_SB_MsgIdToValue()
conversion routines.Additional context
Architecturally, the
CFE_SB_MsgId_t
is supposed to be an opaque/abstract value that identifies an endpoint on the software bus routing domain. The specific meaning of integer values is already different in an "extended header" (CCSDS v2) build vs. the standard header build. Therefore apps should never make assumptions regarding the specific integer values, and all introspection ofCFE_SB_MsgId_t
values should be through the CFE SB API only.Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: