##// END OF EJS Templates
sync
paul -
r15:ddd0a6fe16cc default
parent child
Show More
@@ -44,7 +44,7
44 #define TC_LFR_DATA_FIELD_HEADER0 0x19
44 #define TC_LFR_DATA_FIELD_HEADER0 0x19
45 #define TC_LFR_LOAD_COMMON_PAR_SPARE 0x00
45 #define TC_LFR_LOAD_COMMON_PAR_SPARE 0x00
46
46
47 struct Packet_TC_LFR_RESET_str
47 typedef struct
48 { // the CCSDS header is added by LPPMON
48 { // the CCSDS header is added by LPPMON
49 unsigned char packetID[2];
49 unsigned char packetID[2];
50 unsigned char packetSequenceControl[2];
50 unsigned char packetSequenceControl[2];
@@ -55,10 +55,9 struct Packet_TC_LFR_RESET_str
55 unsigned char serviceSubType;
55 unsigned char serviceSubType;
56 unsigned char sourceID;
56 unsigned char sourceID;
57 unsigned char crc[2];
57 unsigned char crc[2];
58 };
58 } Packet_TC_LFR_RESET_t;
59 typedef struct Packet_TC_LFR_RESET_str Packet_TC_LFR_RESET_t;
60
59
61 struct Packet_TC_LFR_ENTER_MODE_str
60 typedef struct
62 { // the CCSDS header is added by LPPMON
61 { // the CCSDS header is added by LPPMON
63 unsigned char packetID[2];
62 unsigned char packetID[2];
64 unsigned char packetSequenceControl[2];
63 unsigned char packetSequenceControl[2];
@@ -72,10 +71,9 struct Packet_TC_LFR_ENTER_MODE_str
72 unsigned char mode;
71 unsigned char mode;
73 unsigned char enterModeTime[6];
72 unsigned char enterModeTime[6];
74 unsigned char crc[2];
73 unsigned char crc[2];
75 };
74 } Packet_TC_LFR_ENTER_MODE_t;
76 typedef struct Packet_TC_LFR_ENTER_MODE_str Packet_TC_LFR_ENTER_MODE_t;
77
75
78 struct Packet_TC_LFR_UPDATE_INFO_str
76 typedef struct
79 { // the CCSDS header is added by LPPMON
77 { // the CCSDS header is added by LPPMON
80 unsigned char packetID[2];
78 unsigned char packetID[2];
81 unsigned char packetSequenceControl[2];
79 unsigned char packetSequenceControl[2];
@@ -95,10 +93,9 struct Packet_TC_LFR_UPDATE_INFO_str
95 unsigned char set6;
93 unsigned char set6;
96 unsigned char set7[8];
94 unsigned char set7[8];
97 unsigned char crc[2];
95 unsigned char crc[2];
98 };
96 } Packet_TC_LFR_UPDATE_INFO_t;
99 typedef struct Packet_TC_LFR_UPDATE_INFO_str Packet_TC_LFR_UPDATE_INFO_t;
100
97
101 struct Packet_TC_LFR_DUMP_PAR_str
98 typedef struct
102 { // the CCSDS header is added by LPPMON
99 { // the CCSDS header is added by LPPMON
103 unsigned char packetID[2];
100 unsigned char packetID[2];
104 unsigned char packetSequenceControl[2];
101 unsigned char packetSequenceControl[2];
@@ -110,10 +107,9 struct Packet_TC_LFR_DUMP_PAR_str
110 unsigned char sourceID;
107 unsigned char sourceID;
111 unsigned char crc[2];
108 unsigned char crc[2];
112
109
113 };
110 } Packet_TC_LFR_DUMP_PAR_t;
114 typedef struct Packet_TC_LFR_DUMP_PAR_str Packet_TC_LFR_DUMP_PAR_t;
115
111
116 struct Packet_TC_LFR_LOAD_COMMON_PAR_str
112 typedef struct
117 { // the CCSDS header is added by LPPMON
113 { // the CCSDS header is added by LPPMON
118 unsigned char packetID[2];
114 unsigned char packetID[2];
119 unsigned char packetSequenceControl[2];
115 unsigned char packetSequenceControl[2];
@@ -127,10 +123,9 struct Packet_TC_LFR_LOAD_COMMON_PAR_str
127 unsigned char bw_sp0_sp1_r0_r1;
123 unsigned char bw_sp0_sp1_r0_r1;
128 unsigned char crc[2];
124 unsigned char crc[2];
129
125
130 };
126 } Packet_TC_LFR_LOAD_COMMON_PAR_t;
131 typedef struct Packet_TC_LFR_LOAD_COMMON_PAR_str Packet_TC_LFR_LOAD_COMMON_PAR_t;
132
127
133 struct Packet_TC_LFR_LOAD_NORMAL_PAR_str
128 typedef struct
134 { // the CCSDS header is added by LPPMON
129 { // the CCSDS header is added by LPPMON
135 unsigned char packetID[2];
130 unsigned char packetID[2];
136 unsigned char packetSequenceControl[2];
131 unsigned char packetSequenceControl[2];
@@ -148,10 +143,9 struct Packet_TC_LFR_LOAD_NORMAL_PAR_str
148 unsigned char sy_lfr_n_cwf_long_f3;
143 unsigned char sy_lfr_n_cwf_long_f3;
149 unsigned char lfr_normal_parameters_spare;
144 unsigned char lfr_normal_parameters_spare;
150 unsigned char crc[2];
145 unsigned char crc[2];
151 };
146 } Packet_TC_LFR_LOAD_NORMAL_PAR_t;
152 typedef struct Packet_TC_LFR_LOAD_NORMAL_PAR_str Packet_TC_LFR_LOAD_NORMAL_PAR_t;
153
147
154 struct Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_str
148 typedef struct
155 { // the CCSDS header is added by LPPMON
149 { // the CCSDS header is added by LPPMON
156 unsigned char packetID[2];
150 unsigned char packetID[2];
157 unsigned char packetSequenceControl[2];
151 unsigned char packetSequenceControl[2];
@@ -164,10 +158,9 struct Packet_TC_LFR_LOAD_BURST_SBM1_SBM
164 unsigned char sy_lfr_bp_p0;
158 unsigned char sy_lfr_bp_p0;
165 unsigned char sy_lfr_bp_p1;
159 unsigned char sy_lfr_bp_p1;
166 unsigned char crc[2];
160 unsigned char crc[2];
167 };
161 } Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t;
168 typedef struct Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_str Packet_TC_LFR_LOAD_BURST_SBM1_SBM2_PAR_t;
169
162
170 struct Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_str
163 typedef struct
171 { // the CCSDS header is added by LPPMON
164 { // the CCSDS header is added by LPPMON
172 unsigned char packetID[2];
165 unsigned char packetID[2];
173 unsigned char packetSequenceControl[2];
166 unsigned char packetSequenceControl[2];
@@ -178,10 +171,24 struct Packet_TC_LFR_ENABLE_DISABLE_CALI
178 unsigned char serviceSubType;
171 unsigned char serviceSubType;
179 unsigned char sourceID;
172 unsigned char sourceID;
180 unsigned char crc[2];
173 unsigned char crc[2];
181 };
174 } Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t;
182 typedef struct Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_str Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t;
183
175
184 struct Packet_TC_LFR_UPDATE_TIME_str
176 typedef struct
177 { // the CCSDS header is added by LPPMON
178 unsigned char packetID[2];
179 unsigned char packetSequenceControl[2];
180 unsigned char packetLength[2];
181 // DATA FIELD HEADER
182 unsigned char ccsdsSecHeaderFlag_pusVersion_ack;
183 unsigned char serviceType;
184 unsigned char serviceSubType;
185 unsigned char sourceID;
186 unsigned char spare;
187 unsigned char bw_sp0_sp1_r0_r1;
188 unsigned char crc[2];
189 } Packet_TC_LFR_LOAD_KCOEFFICIENT_t;
190
191 typedef struct
185 { // the CCSDS header is added by LPPMON
192 { // the CCSDS header is added by LPPMON
186 unsigned char packetID[2];
193 unsigned char packetID[2];
187 unsigned char packetSequenceControl[2];
194 unsigned char packetSequenceControl[2];
@@ -193,7 +200,6 struct Packet_TC_LFR_UPDATE_TIME_str
193 unsigned char sourceID;
200 unsigned char sourceID;
194 unsigned char cp_rpw_time[6];
201 unsigned char cp_rpw_time[6];
195 unsigned char crc[2];
202 unsigned char crc[2];
196 };
203 } Packet_TC_LFR_UPDATE_TIME_t;
197 typedef struct Packet_TC_LFR_UPDATE_TIME_str Packet_TC_LFR_UPDATE_TIME_t;
198
204
199 #endif // TC_TYPES_H
205 #endif // TC_TYPES_H
@@ -44,6 +44,7
44 #define NB_BINS_COMPRESSED_SM_F0 11
44 #define NB_BINS_COMPRESSED_SM_F0 11
45 #define NB_BINS_COMPRESSED_SM_F1 13
45 #define NB_BINS_COMPRESSED_SM_F1 13
46 #define NB_BINS_COMPRESSED_SM_F2 12
46 #define NB_BINS_COMPRESSED_SM_F2 12
47 #define NB_BINS_COMPRESSED_SM 36 // 11 + 12 + 13
47 #define NB_BINS_COMPRESSED_SM_SBM_F0 22
48 #define NB_BINS_COMPRESSED_SM_SBM_F0 22
48 #define NB_BINS_COMPRESSED_SM_SBM_F1 26
49 #define NB_BINS_COMPRESSED_SM_SBM_F1 26
49 #define NB_BINS_COMPRESSED_SM_SBM_F2 24
50 #define NB_BINS_COMPRESSED_SM_SBM_F2 24
General Comments 0
You need to be logged in to leave comments. Login now