Go to the documentation of this file.
78 #define PH_NUM_12BIT_WORDS_IN_HEADER 12
81 #define PH_REALISTIC_NUM_SD_PACKETS 100
82 #define PH_REALISTIC_NUM_SRCA_PACKETS 20
83 #define PH_REALISTIC_NUM_BB_PACKETS 100
84 #define PH_REALISTIC_NUM_SV_PACKETS 100
85 #define PH_REALISTIC_NUM_EV_DAY_PACKETS 2708
86 #define PH_REALISTIC_NUM_EV_NIGHT_PACKETS 1354
87 #define PH_REALISTIC_NUM_ENG_PACKETS 4
90 #define PH_REALISTIC_NUM_SD_FRAMES 50
91 #define PH_REALISTIC_NUM_SRCA_FRAMES 10
92 #define PH_REALISTIC_NUM_BB_FRAMES 50
93 #define PH_REALISTIC_NUM_SV_FRAMES 50
94 #define PH_REALISTIC_NUM_EV_FRAMES 1354
102 #define PH_PRI_VERSION_BYTE_OFFSET 0
103 #define PH_PRI_VERSION_BIT_OFFSET 0
104 #define PH_PRI_VERSION_NUM_BITS 3
105 #define PH_PRI_VERSION_VALUE 0
107 #define PH_PRI_TYPE_BYTE_OFFSET 0
108 #define PH_PRI_TYPE_BIT_OFFSET 3
109 #define PH_PRI_TYPE_NUM_BITS 1
110 #define PH_PRI_TYPE_VALUE 0
112 #define PH_PRI_SEC_HDR_FLAG_BYTE_OFFSET 0
113 #define PH_PRI_SEC_HDR_FLAG_BIT_OFFSET 4
114 #define PH_PRI_SEC_HDR_FLAG_NUM_BITS 1
115 #define PH_PRI_SEC_HDR_PRESENT 1
117 #define PH_PRI_APID_BYTE_OFFSET 0
118 #define PH_PRI_APID_BIT_OFFSET 5
119 #define PH_PRI_APID_NUM_BITS 11
120 #define PH_PRI_MIN_MODIS_APID_AM1 64
121 #define PH_PRI_MAX_MODIS_APID_AM1 127
122 #define PH_PRI_APID_TEST_PACKET 127
124 #define PH_PRI_SEQUENCE_FLAG_BYTE_OFFSET 2
125 #define PH_PRI_SEQUENCE_FLAG_BIT_OFFSET 0
126 #define PH_PRI_SEQUENCE_FLAG_NUM_BITS 2
127 #define PH_PRI_SEQUENCE_FIRST_PKT_IN_GROUP 1
128 #define PH_PRI_SEQUENCE_SECOND_PKT_IN_GROUP 2
129 #define PH_PRI_SEQUENCE_ONLY_PKT_IN_GROUP 3
130 #define PH_PRI_SEQUENCE_NOT_USED 0
132 #define PH_PRI_SOURCE_SEQ_CNT_BYTE_OFFSET 2
133 #define PH_PRI_SOURCE_SEQ_CNT_BIT_OFFSET 2
134 #define PH_PRI_SOURCE_SEQ_CNT_NUM_BITS 14
135 #define PH_PRI_MAX_CCSDS_PKT_SEQ_COUNT 16383
137 #define PH_PRI_PKT_LENGTH_BYTE_OFFSET 4
138 #define PH_PRI_PKT_LENGTH_BIT_OFFSET 0
139 #define PH_PRI_PKT_LENGTH_NUM_BITS 16
140 #define PH_PRI_LONG_PKT_LENGTH 635
141 #define PH_PRI_SHORT_PKT_LENGTH 269
149 #define PH_SEC_TIME_TAG_BYTE_OFFSET 6
150 #define PH_SEC_TIME_TAG_NUM_BYTES 8
152 #define PH_SEC_QUICK_LOOK_FLAG_BYTE_OFFSET 14
153 #define PH_SEC_QUICK_LOOK_FLAG_BIT_OFFSET 0
154 #define PH_SEC_QUICK_LOOK_FLAG_NUM_BITS 1
155 #define PH_SEC_QUICK_LOOK_FLAG_SET 1
156 #define PH_SEC_QUICK_LOOK_FLAG_NOT_SET 0
158 #define PH_SEC_PKT_TYPE_BYTE_OFFSET 14
159 #define PH_SEC_PKT_TYPE_BIT_OFFSET 1
160 #define PH_SEC_PKT_TYPE_NUM_BITS 3
161 #define PH_SEC_PKT_TYPE_DAY_GROUP 0
162 #define PH_SEC_PKT_TYPE_NIGHT_GROUP 1
163 #define PH_SEC_PKT_TYPE_ENG1_GROUP 2
164 #define PH_SEC_PKT_TYPE_ENG2_GROUP 4
165 #define PH_SEC_PKT_TYPE_SPARE 3
166 #define PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP 2
168 #define PH_SEC_SCAN_CNT_BYTE_OFFSET 14
169 #define PH_SEC_SCAN_CNT_BIT_OFFSET 4
170 #define PH_SEC_SCAN_CNT_NUM_BITS 3
171 #define PH_SEC_SCAN_CNT_MAX 7
173 #define PH_SEC_MIRROR_SIDE_BYTE_OFFSET 14
174 #define PH_SEC_MIRROR_SIDE_BIT_OFFSET 7
175 #define PH_SEC_MIRROR_SIDE_NUM_BITS 1
176 #define PH_SEC_MIRROR_SIDE_1 0
177 #define PH_SEC_MIRROR_SIDE_2 1
185 #define PH_MOD_SOURCE_ID_TYPE_FLAG_BYTE_OFFSET 15
186 #define PH_MOD_SOURCE_ID_TYPE_FLAG_BIT_OFFSET 0
187 #define PH_MOD_SOURCE_ID_TYPE_FLAG_NUM_BITS 1
188 #define PH_MOD_SOURCE_ID_TYPE_FLAG_EARTH 0
189 #define PH_MOD_SOURCE_ID_TYPE_FLAG_CAL 1
191 #define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_BYTE_OFFSET 15
192 #define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_BIT_OFFSET 1
193 #define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_NUM_BITS 11
194 #define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_MAX 2048
195 #define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_LIMIT 1400
197 #define PH_MOD_SOURCE_ID_CAL_TYPE_BYTE_OFFSET 15
198 #define PH_MOD_SOURCE_ID_CAL_TYPE_BIT_OFFSET 1
199 #define PH_MOD_SOURCE_ID_CAL_TYPE_NUM_BITS 2
200 #define PH_MOD_SOURCE_ID_CAL_TYPE_SOLAR_DIFFUSER_SOURCE 0
201 #define PH_MOD_SOURCE_ID_CAL_TYPE_SRCA_CAL_SOURCE 1
202 #define PH_MOD_SOURCE_ID_CAL_TYPE_BLACKBODY_SOURCE 2
203 #define PH_MOD_SOURCE_ID_CAL_TYPE_SPACE_SOURCE 3
205 #define PH_MOD_SOURCE_ID_CAL_MODE_BYTE_OFFSET 15
206 #define PH_MOD_SOURCE_ID_CAL_MODE_BIT_OFFSET 3
207 #define PH_MOD_SOURCE_ID_CAL_MODE_NUM_BITS 2
208 #define PH_MOD_SOURCE_ID_CAL_MODE_RADIOMETRIC_CAL_MODE 0
209 #define PH_MOD_SOURCE_ID_CAL_MODE_SPATIAL_CAL_MODE 1
210 #define PH_MOD_SOURCE_ID_CAL_MODE_SPECTRAL_CAL_MODE 2
211 #define PH_MOD_SOURCE_ID_CAL_MODE_NON_CAL_MODE 3
213 #define PH_MOD_SOURCE_ID_CAL_FRAME_CNT_BYTE_OFFSET 15
214 #define PH_MOD_SOURCE_ID_CAL_FRAME_CNT_BIT_OFFSET 6
215 #define PH_MOD_SOURCE_ID_CAL_FRAME_CNT_NUM_BITS 6
216 #define PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX 64
218 #define PH_MOD_FPA_AEM_CONFIG_BYTE_OFFSET 16
219 #define PH_MOD_FPA_AEM_CONFIG_BIT_OFFSET 4
220 #define PH_MOD_FPA_AEM_CONFIG_NUM_BITS 1
221 #define PH_MOD_FPA_AEM_CONFIG_NUM_ELEMENTS 10
223 #define PH_MOD_SCI_STATE_BYTE_OFFSET 17
224 #define PH_MOD_SCI_STATE_BIT_OFFSET 6
225 #define PH_MOD_SCI_STATE_NUM_BITS 1
226 #define PH_MOD_SCI_STATE_TEST 0
227 #define PH_MOD_SCI_STATE_NORMAL 1
229 #define PH_MOD_SCI_ABNORM_BYTE_OFFSET 17
230 #define PH_MOD_SCI_ABNORM_BIT_OFFSET 7
231 #define PH_MOD_SCI_ABNORM_NUM_BITS 1
232 #define PH_MOD_SCI_ABNORM_TEST 0
233 #define PH_MOD_SCI_ABNORM_NORMAL 1
250 PGSt_scTime pkt_time_code[8];
#define PH_MOD_FPA_AEM_CONFIG_NUM_ELEMENTS