ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
sch_msg.h
1/*
2** $Id: sch_msg.h 1.3 2017/06/21 15:29:01EDT mdeschu Exp $
3**
4** Copyright (c) 2007-2014 United States Government as represented by the
5** Administrator of the National Aeronautics and Space Administration.
6** All Other Rights Reserved.
7**
8** This software was created at NASA's Goddard Space Flight Center.
9** This software is governed by the NASA Open Source Agreement and may be
10** used, distributed and modified only pursuant to the terms of that
11** agreement.
12**
13** Subsystem: Scheduler (SCH) packet definitions
14**
15** Author:
16**
17** Notes:
18**
19*/
20
21/*************************************************************************
22**
23** Ensure that "this" header is included only once
24**
25**************************************************************************/
26
27#ifndef _sch_msg_
28#define _sch_msg_
29
30/*************************************************************************
31**
32** Include section
33**
34**************************************************************************/
35
36#include "common_types.h"
37#include "sch_msgdefs.h"
38
39/*************************************************************************
40**
41** SCH command packet structure definitions
42**
43**************************************************************************/
44
45/*
46** SCH_SEND_HK_MID, SCH_NOOP_CC, SCH_RESET_CC,
47** SCH_ENABLE_SYNC_CC, SCH_SEND_DIAG_TLM_CC
48*/
55typedef struct
56{
57 uint8 CmdHeader[CFE_SB_CMD_HDR_SIZE];
60
61/*
62** SCH_ENABLE_CC, SCH_DISABLE_CC
63*/
69typedef struct
70{
71 uint8 CmdHeader[CFE_SB_CMD_HDR_SIZE];
73 uint16 SlotNumber;
75 uint16 EntryNumber;
79
80/*
81** SCH_ENABLE_GROUP_CC, SCH_DISABLE_GROUP_CC
82*/
88typedef struct
89{
90 uint8 CmdHeader[CFE_SB_CMD_HDR_SIZE];
92 uint32 GroupData;
96
97
98/*************************************************************************
99**
100** SCH housekeeping telemetry packet definition
101**
102**************************************************************************/
103
108typedef struct
109{
110 uint8 TlmHeader[CFE_SB_TLM_HDR_SIZE];
112 /*
113 ** Command execution counters (ground commands)
114 */
121 uint8 SyncToMET;
128 /*
129 ** Messages sent by schedule table processor
130 */
138 /*
139 ** Total schedule table slots processed
140 */
145 /*
146 ** The number of times that slots were skipped
147 ** (not the number of slots that were skipped)
148 */
155 /*
156 ** The number of times that multiple slots were processed
157 ** (not the number of slots that were processed)
158 */
166 /*
167 ** The number of times that SH woke up in the same slot as last time
168 */
173 /*
174 ** The number of times that a table entry with bad data was processed
175 ** (the entry previously passed validation but then somehow went bad)
176 */
181 /*
182 ** The number of tables verified prior to table load
183 */
218
219
220/*************************************************************************
221**
222** SCH diagnostic telemetry packet definition
223**
224**************************************************************************/
225
230typedef struct
231{
232 uint8 TlmHeader[CFE_SB_TLM_HDR_SIZE];
234 uint16 EntryStates[SCH_NUM_STATUS_BYTES_REQD/2];
241 CFE_SB_MsgId_t MsgIDs[SCH_TABLE_ENTRIES];
245
246#endif /* _sch_msg_ */
247
248/************************/
249/* End of File Comment */
250/************************/
251
Definition: sch_msg.h:231
Entry Enable/Disable Commands.
Definition: sch_msg.h:70
uint16 EntryNumber
Entry Number of Activity whose state is to change.
Definition: sch_msg.h:75
uint16 SlotNumber
Slot Number of Activity whose state is to change.
Definition: sch_msg.h:73
Entry Enable/Disable Commands.
Definition: sch_msg.h:89
uint32 GroupData
Group and Multi-Group Identifiers.
Definition: sch_msg.h:92
Definition: sch_msg.h:109
uint16 MinorFramesSinceTone
# of Minor Frames since last Major Frame tone
Definition: sch_msg.h:202
uint16 TableVerifySuccessCount
# of times table loads successfully verified
Definition: sch_msg.h:184
uint16 SameSlotCount
# of times SCH woke up in the same slot as last time
Definition: sch_msg.h:169
boolean UnexpectedMajorFrame
Most Recent Major Frame signal was unexpected.
Definition: sch_msg.h:214
uint32 TablePassCount
# of times Schedule Table has been processed
Definition: sch_msg.h:190
uint32 MissedMajorFrameCount
# of missing Major Frame tones
Definition: sch_msg.h:196
uint32 SlotsProcessedCount
Total # of Schedule Slots (Minor Frames) Processed.
Definition: sch_msg.h:141
uint16 SkippedSlotsCount
Number of times that slots were skipped.
Definition: sch_msg.h:149
uint8 MajorFrameSource
Major Frame Signal source identifier.
Definition: sch_msg.h:124
uint32 UnexpectedMajorFrameCount
# of unexpected Major Frame tones
Definition: sch_msg.h:199
uint16 BadTableDataCount
# of times corrupted table entries were processed
Definition: sch_msg.h:177
uint32 ValidMajorFrameCount
# of valid Major Frame tones received
Definition: sch_msg.h:193
uint16 MultipleSlotsCount
Number of times that multiple slots processed.
Definition: sch_msg.h:159
boolean IgnoreMajorFrame
Major Frame too noisy to trust.
Definition: sch_msg.h:211
uint16 TableVerifyFailureCount
# of times table loads unsuccessfully verified
Definition: sch_msg.h:187
uint32 ScheduleActivitySuccessCount
Number of successfully performed activities.
Definition: sch_msg.h:131
uint16 NextSlotNumber
Next Minor Frame to be processed.
Definition: sch_msg.h:205
uint8 ErrCounter
Command Error Counter.
Definition: sch_msg.h:118
uint8 SyncToMET
Status indicating whether slots are synched to MET.
Definition: sch_msg.h:121
uint32 ScheduleActivityFailureCount
Number of unsuccessful activities attempted.
Definition: sch_msg.h:134
uint16 LastSyncMETSlot
Slot number where Time Sync last occurred.
Definition: sch_msg.h:208
uint8 CmdCounter
Command Counter.
Definition: sch_msg.h:115
No Arguments Command.
Definition: sch_msg.h:56