##// END OF EJS Templates
Minor modifications to meet Logiscope requirements
paul -
r78:c815bcdfb1c6 VHDLib206
parent child
Show More
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.1, 2013-11-15T09:52:17. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-15T13:43:04. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -40,12 +40,13 int action_load_normal_par(ccsdsTelecomm
40
40
41 int result;
41 int result;
42 int flag;
42 int flag;
43 rtems_status_code status;
43
44
44 flag = LFR_SUCCESSFUL;
45 flag = LFR_SUCCESSFUL;
45
46
46 if ( (lfrCurrentMode == LFR_MODE_NORMAL) ||
47 if ( (lfrCurrentMode == LFR_MODE_NORMAL) ||
47 (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode == LFR_MODE_SBM2) ) {
48 (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode == LFR_MODE_SBM2) ) {
48 send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
49 status = send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
49 flag = LFR_DEFAULT;
50 flag = LFR_DEFAULT;
50 }
51 }
51
52
@@ -118,12 +119,13 int action_load_burst_par(ccsdsTelecomma
118
119
119 int result;
120 int result;
120 unsigned char lfrMode;
121 unsigned char lfrMode;
122 rtems_status_code status;
121
123
122 result = LFR_DEFAULT;
124 result = LFR_DEFAULT;
123 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
125 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
124
126
125 if ( lfrMode == LFR_MODE_BURST ) {
127 if ( lfrMode == LFR_MODE_BURST ) {
126 send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
128 status = send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
127 result = LFR_DEFAULT;
129 result = LFR_DEFAULT;
128 }
130 }
129 else {
131 else {
@@ -146,12 +148,13 int action_load_sbm1_par(ccsdsTelecomman
146 */
148 */
147 int result;
149 int result;
148 unsigned char lfrMode;
150 unsigned char lfrMode;
151 rtems_status_code status;
149
152
150 result = LFR_DEFAULT;
153 result = LFR_DEFAULT;
151 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
154 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
152
155
153 if ( (lfrMode == LFR_MODE_SBM1) || (lfrMode == LFR_MODE_SBM2) ) {
156 if ( (lfrMode == LFR_MODE_SBM1) || (lfrMode == LFR_MODE_SBM2) ) {
154 send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
157 status = send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
155 result = LFR_DEFAULT;
158 result = LFR_DEFAULT;
156 }
159 }
157 else {
160 else {
@@ -175,12 +178,13 int action_load_sbm2_par(ccsdsTelecomman
175
178
176 int result;
179 int result;
177 unsigned char lfrMode;
180 unsigned char lfrMode;
181 rtems_status_code status;
178
182
179 result = LFR_DEFAULT;
183 result = LFR_DEFAULT;
180 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
184 lfrMode = (housekeeping_packet.lfr_status_word[0] & 0xf0) >> 4;
181
185
182 if ( (lfrMode == LFR_MODE_SBM2) || (lfrMode == LFR_MODE_SBM2) ) {
186 if ( (lfrMode == LFR_MODE_SBM2) || (lfrMode == LFR_MODE_SBM2) ) {
183 send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
187 status = send_tm_lfr_tc_exe_not_executable( TC, queue_id, time );
184 result = LFR_DEFAULT;
188 result = LFR_DEFAULT;
185 }
189 }
186 else {
190 else {
@@ -245,6 +249,7 int set_sy_lfr_n_swf_l( ccsdsTelecommand
245 int result;
249 int result;
246 unsigned char msb;
250 unsigned char msb;
247 unsigned char lsb;
251 unsigned char lsb;
252 rtems_status_code status;
248
253
249 msb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_L ];
254 msb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_L ];
250 lsb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_L+1 ];
255 lsb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_L+1 ];
@@ -255,12 +260,12 int set_sy_lfr_n_swf_l( ccsdsTelecommand
255
260
256 if ( (tmp < 16) || (tmp > 2048) ) // the snapshot period is a multiple of 16
261 if ( (tmp < 16) || (tmp > 2048) ) // the snapshot period is a multiple of 16
257 { // 2048 is the maximum limit due to the size of the buffers
262 { // 2048 is the maximum limit due to the size of the buffers
258 send_tm_lfr_tc_exe_inconsistent( TC, queue_id, BYTE_POS_SY_LFR_N_SWF_L+10, lsb, time );
263 status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, BYTE_POS_SY_LFR_N_SWF_L+10, lsb, time );
259 result = WRONG_APP_DATA;
264 result = WRONG_APP_DATA;
260 }
265 }
261 else if (tmp != 2048)
266 else if (tmp != 2048)
262 {
267 {
263 send_tm_lfr_tc_exe_not_implemented( TC, queue_id, time );
268 status = send_tm_lfr_tc_exe_not_implemented( TC, queue_id, time );
264 result = FUNCT_NOT_IMPL;
269 result = FUNCT_NOT_IMPL;
265 }
270 }
266 else
271 else
@@ -286,6 +291,7 int set_sy_lfr_n_swf_p(ccsdsTelecommandP
286 int result;
291 int result;
287 unsigned char msb;
292 unsigned char msb;
288 unsigned char lsb;
293 unsigned char lsb;
294 rtems_status_code status;
289
295
290 msb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_P ];
296 msb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_P ];
291 lsb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_P+1 ];
297 lsb = TC->dataAndCRC[ BYTE_POS_SY_LFR_N_SWF_P+1 ];
@@ -296,7 +302,7 int set_sy_lfr_n_swf_p(ccsdsTelecommandP
296
302
297 if ( (tmp < 16) || (tmp > 65528) )
303 if ( (tmp < 16) || (tmp > 65528) )
298 {
304 {
299 send_tm_lfr_tc_exe_inconsistent( TC, queue_id, BYTE_POS_SY_LFR_N_SWF_P+10, lsb, time );
305 status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, BYTE_POS_SY_LFR_N_SWF_P+10, lsb, time );
300 result = WRONG_APP_DATA;
306 result = WRONG_APP_DATA;
301 }
307 }
302 else
308 else
General Comments 0
You need to be logged in to leave comments. Login now