1+ /************************************************************************
2+ * NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3+ * Application version 3.0.0”
4+ *
5+ * Copyright (c) 2019 United States Government as represented by the
6+ * Administrator of the National Aeronautics and Space Administration.
7+ * All Rights Reserved.
8+ *
9+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
10+ * not use this file except in compliance with the License. You may obtain
11+ * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12+ *
13+ * Unless required by applicable law or agreed to in writing, software
14+ * distributed under the License is distributed on an "AS IS" BASIS,
15+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+ * See the License for the specific language governing permissions and
17+ * limitations under the License.
18+ ************************************************************************/
19+
20+ /**
21+ * @file
22+ * Specification for the CFS CFDP (CF) command function codes
23+ *
24+ * @note
25+ * This file should be strictly limited to the command/function code (CC)
26+ * macro definitions. Other definitions such as enums, typedefs, or other
27+ * macros should be placed in the msgdefs.h or msg.h files.
28+ */
29+ #ifndef DEFAULT_CF_FCNCODES_H
30+ #define DEFAULT_CF_FCNCODES_H
31+
32+ /************************************************************************
33+ * Macro Definitions
34+ ************************************************************************/
35+
36+ #define CF_CCVAL (x ) CF_FunctionCode_##x
37+
38+ enum CF_FunctionCode_
39+ {
40+ CF_FunctionCode_NOOP = 0 ,
41+ CF_FunctionCode_RESET_COUNTERS = 1 ,
42+ CF_FunctionCode_TX_FILE = 2 ,
43+ CF_FunctionCode_PLAYBACK_DIR = 3 ,
44+ CF_FunctionCode_FREEZE = 4 ,
45+ CF_FunctionCode_THAW = 5 ,
46+ CF_FunctionCode_SUSPEND = 6 ,
47+ CF_FunctionCode_RESUME = 7 ,
48+ CF_FunctionCode_CANCEL = 8 ,
49+ CF_FunctionCode_ABANDON = 9 ,
50+ CF_FunctionCode_SET_PARAM = 10 ,
51+ CF_FunctionCode_GET_PARAM = 11 ,
52+ CF_FunctionCode_WRITE_QUEUE = 15 ,
53+ CF_FunctionCode_ENABLE_DEQUEUE = 16 ,
54+ CF_FunctionCode_DISABLE_DEQUEUE = 17 ,
55+ CF_FunctionCode_ENABLE_DIR_POLLING = 18 ,
56+ CF_FunctionCode_DISABLE_DIR_POLLING = 19 ,
57+ CF_FunctionCode_PURGE_QUEUE = 21 ,
58+ CF_FunctionCode_ENABLE_ENGINE = 22 ,
59+ CF_FunctionCode_DISABLE_ENGINE = 23 ,
60+ };
61+
62+ #endif
0 commit comments