Skip to content
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

Fix #159, initial inclusion of EDS file #160

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions eds/sch_lab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

GSC-18128-1, "Core Flight Executive Version 6.7"
LEW-19710-1, "CCSDS electronic data sheet implementation"

Copyright (c) 2006-2019 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.

This document adheres to the Electronic Data Sheet (EDS) XML schema
as prescribed in CCSDS book 876.0.

Purpose:
This describes all interface objects for the Executive Services (CFE_ES)
core application

-->
<PackageFile xmlns="http://www.ccsds.org/schema/sois/seds">
<Package name="SCH_LAB" shortDescription="Command Ingest">
<DataTypeSet>
<ArrayDataType name="ScheduleArgs" dataTypeRef="BASE_TYPES/uint16" shortDescription="Schedule entry arguments">
<DimensionList>
<Dimension size="${SCH_LAB/MAX_ARGS_PER_ENTRY}" />
</DimensionList>
</ArrayDataType>
<ContainerDataType name="ScheduleTableEntry" shortDescription="SCH_LAB Schedule Table Entry">
<EntryList>
<Entry name="MessageID" type="CFE_SB/MsgId" shortDescription="Message ID for the table entry" />
<Entry name="PacketRate" type="BASE_TYPES/uint32" shortDescription="Send packet every N ticks" />
<Entry name="FcnCode" type="CFE_HDR/FunctionCode" shortDescription="Command/Function code to set" />
<Entry name="PayloadLength" type="BASE_TYPES/uint16" shortDescription="Length of additional command args" />
<Entry name="MessageBuffer" type="ScheduleArgs" shortDescription="Additional command args" />
</EntryList>
</ContainerDataType>
<ArrayDataType name="ScheduleTableEntries" dataTypeRef="ScheduleTableEntry" shortDescription="SCH_LAB Schedule Table">
<DimensionList>
<Dimension size="${SCH_LAB/MAX_SCHEDULE_ENTRIES}" />
</DimensionList>
</ArrayDataType>
<ContainerDataType name="ScheduleTable" shortDescription="SCH_LAB Schedule Table">
<EntryList>
<Entry name="TickRate" type="BASE_TYPES/uint32" shortDescription="Ticks per second to configure for timer (0=default)" />
<Entry name="Config" type="ScheduleTableEntries" />
</EntryList>
</ContainerDataType>
</DataTypeSet>
</Package>
</PackageFile>
9 changes: 9 additions & 0 deletions mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ set(SCH_LAB_MISSION_CONFIG_FILE_LIST
sch_lab_tblstruct.h
)

if (CFE_EDS_ENABLED_BUILD)

# In an EDS-based build, these files come generated from the EDS tool
set(SCH_LAB_CFGFILE_SRC_sch_lab_interface_cfg "sch_lab_eds_designparameters.h")
set(SCH_LAB_CFGFILE_SRC_sch_lab_tbldefs "sch_lab_eds_typedefs.h")
set(SCH_LAB_CFGFILE_SRC_sch_lab_tblstruct "sch_lab_eds_typedefs.h")

endif(CFE_EDS_ENABLED_BUILD)

# Create wrappers around the all the config header files
# This makes them individually overridable by the missions, without modifying
# the distribution default copies
Expand Down