##// END OF EJS Templates
TC_LFR_UPDATE_INFO corrected
paul -
r26:59817dd25da3 default
parent child
Show More
@@ -1,235 +1,235
1 1 #ifndef TC_TYPES_H
2 2 #define TC_TYPES_H
3 3
4 4 #include <ccsds_types.h>
5 5
6 6 #define PROTOCOLE_IDENTIFIER 0x02
7 7
8 8 // PACKET ID
9 9 #define TC_LFR_PACKET_ID 0x1ccc // PID 76 CAT 12
10 10
11 11 #define PACKET_LENGTH_TC_LFR_RESET (12 - CCSDS_TC_TM_PACKET_OFFSET)
12 12 #define PACKET_LENGTH_TC_LFR_LOAD_COMMON_PAR (14 - CCSDS_TC_TM_PACKET_OFFSET)
13 13 #define PACKET_LENGTH_TC_LFR_LOAD_NORMAL_PAR (22 - CCSDS_TC_TM_PACKET_OFFSET)
14 14 #define PACKET_LENGTH_TC_LFR_LOAD_BURST_PAR (14 - CCSDS_TC_TM_PACKET_OFFSET)
15 15 #define PACKET_LENGTH_TC_LFR_LOAD_SBM1_PAR (14 - CCSDS_TC_TM_PACKET_OFFSET)
16 16 #define PACKET_LENGTH_TC_LFR_LOAD_SBM2_PAR (14 - CCSDS_TC_TM_PACKET_OFFSET)
17 17 #define PACKET_LENGTH_TC_LFR_DUMP_PAR (12 - CCSDS_TC_TM_PACKET_OFFSET)
18 18 #define PACKET_LENGTH_TC_LFR_ENTER_MODE (20 - CCSDS_TC_TM_PACKET_OFFSET)
19 19 #define PACKET_LENGTH_TC_LFR_UPDATE_INFO (110- CCSDS_TC_TM_PACKET_OFFSET)
20 20 #define PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION (12 - CCSDS_TC_TM_PACKET_OFFSET)
21 21 #define PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION (12 - CCSDS_TC_TM_PACKET_OFFSET)
22 22 #define PACKET_LENGTH_TC_LFR_DUMP_KCOEFFICIENTS (12 - CCSDS_TC_TM_PACKET_OFFSET)
23 23 #define PACKET_LENGTH_TC_LFR_UPDATE_TIME (18 - CCSDS_TC_TM_PACKET_OFFSET)
24 24
25 25 // TC TYPES
26 26 #define TC_TYPE_DEFAULT 181
27 27 #define TC_TYPE_LFR_UPDATE_TIME 9
28 28
29 29 // TC SUBTYPES
30 30 #define TC_SUBTYPE_RESET 1
31 31 #define TC_SUBTYPE_LOAD_COMMON_PAR 11
32 32 #define TC_SUBTYPE_LOAD_NORMAL_PAR 13
33 33 #define TC_SUBTYPE_LOAD_BURST_PAR 19
34 34 #define TC_SUBTYPE_LOAD_SBM1_PAR 25
35 35 #define TC_SUBTYPE_LOAD_SBM2_PAR 27
36 36 #define TC_SUBTYPE_DUMP_PAR 31
37 37 #define TC_SUBTYPE_ENTER_MODE 41
38 38 #define TC_SUBTYPE_UPDATE_INFO 51
39 39 #define TC_SUBTYPE_ENABLE_CALIBRATION 61
40 40 #define TC_SUBTYPE_DISABLE_CALIBRATION 63
41 41 #define TC_SUBTYPE_UPDATE_TIME 129
42 42
43 43 // OTHER CONSTANTS
44 44 #define TC_LFR_PACKET_SEQUENCE_CONTROL 0xc000 // PID 76 CAT 12
45 45 #define TC_LFR_DATA_FIELD_HEADER0 0x19
46 46 #define TC_LFR_LOAD_COMMON_PAR_SPARE 0x00
47 47
48 48 typedef struct
49 49 { // the CCSDS header is added by LPPMON
50 50 unsigned char packetID[2];
51 51 unsigned char packetSequenceControl[2];
52 52 unsigned char packetLength[2];
53 53 // DATA FIELD HEADER
54 54 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
55 55 unsigned char serviceType;
56 56 unsigned char serviceSubType;
57 57 unsigned char sourceID;
58 58 unsigned char crc[2];
59 59 } Packet_TC_LFR_RESET_t;
60 60
61 61 typedef struct
62 62 { // the CCSDS header is added by LPPMON
63 63 unsigned char packetID[2];
64 64 unsigned char packetSequenceControl[2];
65 65 unsigned char packetLength[2];
66 66 // DATA FIELD HEADER
67 67 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
68 68 unsigned char serviceType;
69 69 unsigned char serviceSubType;
70 70 unsigned char sourceID;
71 71 unsigned char spare;
72 72 unsigned char mode;
73 73 unsigned char enterModeTime[6];
74 74 unsigned char crc[2];
75 75 } Packet_TC_LFR_ENTER_MODE_t;
76 76
77 77 typedef struct
78 78 { // the CCSDS header is added by LPPMON
79 79 unsigned char packetID[2];
80 80 unsigned char packetSequenceControl[2];
81 81 unsigned char packetLength[2];
82 82 // DATA FIELD HEADER
83 83 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
84 84 unsigned char serviceType;
85 85 unsigned char serviceSubType;
86 86 unsigned char sourceID;
87 87 unsigned char set1;
88 88 unsigned char set2;
89 89 unsigned char set3_bias_setting_set1[6];
90 90 unsigned char set3_bias_setting_set2[6];
91 unsigned char set3_bias_voltage[4];
91 unsigned char set3_bias_voltage[2];
92 92 unsigned char set4[8];
93 93 unsigned char set5;
94 94 unsigned char set6;
95 95 unsigned char set7[8];
96 96 unsigned char spare1[2];
97 97 unsigned char spare2[2];
98 98 unsigned char spare3[2];
99 99 unsigned char spare4[2];
100 100 unsigned char spare5[2];
101 101 unsigned char spare6[2];
102 102 unsigned char spare7[2];
103 103 unsigned char spare8[2];
104 104 unsigned char spare9[2];
105 105 unsigned char spare10[2];
106 106 unsigned char spare11[2];
107 107 unsigned char spare12[2];
108 108 unsigned char spare13[2];
109 109 unsigned char spare14[2];
110 110 unsigned char spare15[2];
111 111 unsigned char spare16[2];
112 112 unsigned char spare17[2];
113 113 unsigned char spare18[2];
114 114 unsigned char spare19[2];
115 115 unsigned char spare20[2];
116 116 unsigned char spare21[2];
117 117 unsigned char spare22[2];
118 118 unsigned char spare23[2];
119 119 unsigned char spare24[2];
120 120 unsigned char spare25[2];
121 121 unsigned char spare26[2];
122 122 unsigned char spare27[2];
123 123 unsigned char spare28[2];
124 124 unsigned char spare29[2];
125 125 unsigned char spare30[2];
126 126 unsigned char spare31[2];
127 127 unsigned char spare32[2];
128 128 unsigned char crc[2];
129 129 } Packet_TC_LFR_UPDATE_INFO_t;
130 130
131 131 typedef struct
132 132 { // the CCSDS header is added by LPPMON
133 133 unsigned char packetID[2];
134 134 unsigned char packetSequenceControl[2];
135 135 unsigned char packetLength[2];
136 136 // DATA FIELD HEADER
137 137 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
138 138 unsigned char serviceType;
139 139 unsigned char serviceSubType;
140 140 unsigned char sourceID;
141 141 unsigned char crc[2];
142 142 } Packet_TC_LFR_DUMP_PAR_t;
143 143
144 144 typedef struct
145 145 { // the CCSDS header is added by LPPMON
146 146 unsigned char packetID[2];
147 147 unsigned char packetSequenceControl[2];
148 148 unsigned char packetLength[2];
149 149 // DATA FIELD HEADER
150 150 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
151 151 unsigned char serviceType;
152 152 unsigned char serviceSubType;
153 153 unsigned char sourceID;
154 154 unsigned char spare;
155 155 unsigned char bw_sp0_sp1_r0_r1_r2;
156 156 unsigned char crc[2];
157 157 } Packet_TC_LFR_LOAD_COMMON_PAR_t;
158 158
159 159 typedef struct
160 160 { // the CCSDS header is added by LPPMON
161 161 unsigned char packetID[2];
162 162 unsigned char packetSequenceControl[2];
163 163 unsigned char packetLength[2];
164 164 // DATA FIELD HEADER
165 165 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
166 166 unsigned char serviceType;
167 167 unsigned char serviceSubType;
168 168 unsigned char sourceID;
169 169 unsigned char sy_lfr_n_swf_l[2];
170 170 unsigned char sy_lfr_n_swf_p[2];
171 171 unsigned char sy_lfr_n_asm_p[2];
172 172 unsigned char sy_lfr_n_bp_p0;
173 173 unsigned char sy_lfr_n_bp_p1;
174 174 unsigned char sy_lfr_n_cwf_long_f3;
175 175 unsigned char lfr_normal_parameters_spare;
176 176 unsigned char crc[2];
177 177 } Packet_TC_LFR_LOAD_NORMAL_PAR_t;
178 178
179 179 typedef struct
180 180 { // the CCSDS header is added by LPPMON
181 181 unsigned char packetID[2];
182 182 unsigned char packetSequenceControl[2];
183 183 unsigned char packetLength[2];
184 184 // DATA FIELD HEADER
185 185 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
186 186 unsigned char serviceType;
187 187 unsigned char serviceSubType;
188 188 unsigned char sourceID;
189 189 unsigned char sy_lfr_bp_p0;
190 190 unsigned char sy_lfr_bp_p1;
191 191 unsigned char crc[2];
192 192 } Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t;
193 193
194 194 typedef struct
195 195 { // the CCSDS header is added by LPPMON
196 196 unsigned char packetID[2];
197 197 unsigned char packetSequenceControl[2];
198 198 unsigned char packetLength[2];
199 199 // DATA FIELD HEADER
200 200 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
201 201 unsigned char serviceType;
202 202 unsigned char serviceSubType;
203 203 unsigned char sourceID;
204 204 unsigned char crc[2];
205 205 } Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t;
206 206
207 207 typedef struct
208 208 { // the CCSDS header is added by LPPMON
209 209 unsigned char packetID[2];
210 210 unsigned char packetSequenceControl[2];
211 211 unsigned char packetLength[2];
212 212 // DATA FIELD HEADER
213 213 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
214 214 unsigned char serviceType;
215 215 unsigned char serviceSubType;
216 216 unsigned char sourceID;
217 217 unsigned char cp_rpw_time[6];
218 218 unsigned char crc[2];
219 219 } Packet_TC_LFR_UPDATE_TIME_t;
220 220
221 221 typedef struct
222 222 { // the CCSDS header is added by LPPMON
223 223 unsigned char packetID[2];
224 224 unsigned char packetSequenceControl[2];
225 225 unsigned char packetLength[2];
226 226 // DATA FIELD HEADER
227 227 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
228 228 unsigned char serviceType;
229 229 unsigned char serviceSubType;
230 230 unsigned char sourceID;
231 231 unsigned char crc[2];
232 232
233 233 } Packet_TC_LFR_DUMP_KCOEFFICIENTS_t;
234 234
235 235 #endif // TC_TYPES_H
General Comments 0
You need to be logged in to leave comments. Login now