-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdefault_hk_tblstruct.h
More file actions
58 lines (51 loc) · 2.27 KB
/
default_hk_tblstruct.h
File metadata and controls
58 lines (51 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/************************************************************************
* NASA Docket No. GSC-18,919-1, and identified as “Core Flight
* System (cFS) Housekeeping (HK) Application version 2.5.1”
*
* Copyright (c) 2021 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
*
* CFS Housekeeping (HK) Application Table Structure Definition
*
* Provides default definitions for HK table structures
*
* @note This file may be overridden/superseded by mission-provided definitions
* either by overriding this header or by generating definitions from a command/data
* dictionary tool.
*/
#ifndef HK_TBLSTRUCT_H
#define HK_TBLSTRUCT_H
#include "cfe.h"
/** \brief HK Copy Table Entry Format
*/
typedef struct
{
CFE_SB_MsgId_t InputMid; /**< \brief MsgId of the input packet */
uint16 InputOffset; /**< \brief ByteOffset into the input pkt where copy will begin */
CFE_SB_MsgId_t OutputMid; /**< \brief MsgId of the output packet */
uint16 OutputOffset; /**< \brief ByteOffset into the output pkt where data will be placed */
uint16 NumBytes; /**< \brief Number of data bytes to copy from input to output pkt */
} hk_copy_table_entry_t;
/** \brief HK Run-time Table Entry Format
*/
typedef struct
{
CFE_SB_Buffer_t *OutputPktAddr; /**< \brief Addr of output packet */
uint8 InputMidSubscribed; /**< \brief Indicates if input MID has been subscribed to */
uint8 DataPresent; /**< \brief Indicates if the data associated with the entry is present */
} hk_runtime_tbl_entry_t;
#endif