-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The "base_msgids.h" file needs an EDS specific version for the correct mappings
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
modules/core_api/config/default_eds_cfe_core_api_base_msgids.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* This header file contains the platform-specific base msg ID values and | ||
* logic to convert a topic ID to a message ID value. | ||
* | ||
*/ | ||
|
||
#ifndef CFE_CORE_BASE_MSGIDS_H | ||
#define CFE_CORE_BASE_MSGIDS_H | ||
|
||
/** | ||
* \brief Convert a command topic ID to a MsgID value | ||
* | ||
* \note The result of this conversion is a simple integer, thus also needs to | ||
* go through CFE_SB_ValueToMsgId() to obtain a properly-typed CFE_SB_MsgId_t | ||
* for interacting with SB APIs. | ||
*/ | ||
#define CFE_PLATFORM_CMD_TOPICID_TO_MIDV(topic) CFE_SB_LocalCmdTopicIdToMsgId(topic) | ||
|
||
/** | ||
* \brief Convert a telemetry topic ID to a MsgID value | ||
* | ||
* \note The result of this conversion is a simple integer, thus also needs to | ||
* go through CFE_SB_ValueToMsgId() to obtain a properly-typed CFE_SB_MsgId_t | ||
* for interacting with SB APIs. | ||
*/ | ||
#define CFE_PLATFORM_TLM_TOPICID_TO_MIDV(topic) CFE_SB_LocalTlmTopicIdToMsgId(topic) | ||
|
||
/** | ||
* \brief Convert a "global" command topic ID to a MsgID value | ||
* | ||
* A global command is one that is not specific to an individual instance of CFE, | ||
* but rather intended to be broadcast to all CFE instances at the same time. | ||
* | ||
* This is otherwise identical to #CFE_PLATFORM_CMD_TOPICID_TO_MIDV | ||
*/ | ||
#define CFE_GLOBAL_CMD_TOPICID_TO_MIDV(topic) CFE_SB_GlobalCmdTopicIdToMsgId(topic) | ||
|
||
/** | ||
* \brief Convert a "global" telemetry topic ID to a MsgID value | ||
* | ||
* A global telemetry is one that is not specific to an individual instance of CFE, | ||
* but rather intended to be broadcast to all CFE instances at the same time. | ||
* | ||
* This is otherwise identical to #CFE_PLATFORM_TLM_TOPICID_TO_MIDV | ||
*/ | ||
#define CFE_GLOBAL_TLM_TOPICID_TO_MIDV(topic) CFE_SB_GlobalTlmTopicIdToMsgId(topic) | ||
|
||
#endif /* CFE_CORE_BASE_MSGIDS_H */ |