-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Is your feature request related to a problem? Please describe.
Many APIs will be updated for consistency relative to the MSG module, also element scoping improvements (SB doesn't actually care about the header, it just needs to route).
Describe the solution you'd like
Per 2020-07-28 discussion SB for once #726 is in.
Deprecating:
- CFE_SB_PKTTYPE_* -> CFE_MSG_Type_t
- CFE_SB_MsgPtr_t -> CFE_MSG_Message_t *
- CFE_SB_Msg_t -> CFE_MSG_Message_t
- CFE_SB_MsgPayloadPtr_t (use pointer to payload in structure)
- CFE_SB_InitMsg -> CFE_MSG_Init
- CFE_SB_GetTotalMsgLength -> CFE_MSG_GetSize
- CFE_SB_SetTotalMsgLength -> CFE_MSG_SetSize
- CFE_SB_GetMsgTime -> CFE_MSG_GetMsgTime (this gets rid of structure return, similar to CFE_TIME_GetTime() should not return a structure #45 issue)
- CFE_SB_SetMsgTime -> CFE_MSG_SetMsgTime
- CFE_SB_GetCmdCode -> CFE_MSG_GetFcnCode
- CFE_SB_SetCmdCode -> CFE_MSG_SetFcnCode
- CFE_SB_GetChecksum (no use case defined, what do you need it for?)
- CFE_SB_GenerateChecksum -> CFE_MSG_GenerateChecksum
- CFE_SB_ValidateChecksum -> CFE_MSG_ValidateChecksum
- CFE_SB_GetMsgId -> CFE_MSG_GetMsgId
- CFE_SB_SetMsgId -> CFE_MSG_SetMsgId
- CFE_SB_GetPktType -> CFE_MSG_GetTypeFromMsgId
- CFE_SB_SetMsgSeqCnt -> CFE_MSG_SetSequenceCount
NOT deprecating, but will note in API that these are fragile (guesses based on assumptions). Future implementation could be replaced via data dictionary sort of access or standards based header definitions (including secondary header, and flags or extra internal data to mange the real sizes):
- CFE_SB_MsgHdrSize: use actual message structure where possible
- CFE_SB_GetUserData: use actual message structure where possible
- CFE_SB_GetUserDataLength: use actual message structure where possible
- CFE_SB_SetUserDataLength - use CFE_MSG_SetSize with full message structure where possible
- CFE_SB_CMD_HDR_SIZE -> sizeof CFE_MSG_CommandHeader_t) preferrred
- CFE_SB_TLM_HDR_SIZE -> sizeof (CFE_MSG_TelemetryHeader_t) preferred
Note CFE_SB_Qos_t and CFE_SB_Default_Qos will likely be used for #926 (critical subscription)
NOT deprecating, MSG types are unaligned, SB types are now aligned:
- CFE_SB_Msg_t, CmdHdr_t, TlmHdr_t -> CFE_MSG_*
NOT deprecating CFE_SB_TimeStampMsg. See #26 that requests making this part of send.
Describe alternatives you've considered
Just need to manage these, unique deprecation flag... not all actually need to go, but reduced/simplifies unit testing
Requester Info
Jacob Hageman - NASA/GSFC