Project

General

Profile

Task #3199 » gcov.src_tc_acceptance.c.html

Veronique bouzid, 14/11/2018 12:18 PM

 
1

    
2
<html>
3

    
4
<head>
5
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6
  <title>Head</title>
7
  <style media="screen" type="text/css">
8

    
9
    body
10
    {
11
      color: #000000;
12
      background-color: #FFFFFF;
13
    }
14

    
15
    /* Link formats: use maroon w/underlines */
16
    a:link
17
    {
18
      color: navy;
19
      text-decoration: underline;
20
    }
21
    a:visited
22
    {
23
      color: maroon;
24
      text-decoration: underline;
25
    }
26
    a:active
27
    {
28
      color: navy;
29
      text-decoration: underline;
30
    }
31

    
32
    /*** TD formats ***/
33
    td
34
    {
35
      font-family: sans-serif;
36
    }
37
    td.title
38
    {
39
      text-align: center;
40
      padding-bottom: 10px;
41
      font-size: 20pt;
42
      font-weight: bold;
43
    }
44

    
45
    /* TD Header Information */
46
    td.headerName
47
    {
48
      text-align: right;
49
      color: black;
50
      padding-right: 6px;
51
      font-weight: bold;
52
      vertical-align: top;
53
      white-space: nowrap;
54
    }
55
    td.headerValue
56
    {
57
      text-align: left;
58
      color: blue;
59
      font-weight: bold;
60
      white-space: nowrap;
61
    }
62
    td.headerTableEntry
63
    {
64
      text-align: right;
65
      color: black;
66
      font-weight: bold;
67
      white-space: nowrap;
68
      padding-left: 12px;
69
      padding-right: 4px;
70
      background-color: LightBlue;
71
    }
72
    td.headerValueLeg
73
    {
74
      text-align: left;
75
      color: black;
76
      font-size: 80%;
77
      white-space: nowrap;
78
      padding-left: 10px;
79
      padding-right: 10px;
80
      padding-top: 2px;
81
    }
82

    
83
    /* Color of horizontal ruler */
84
    td.hr
85
    {
86
      background-color: navy;
87
      height:3px;
88
    }
89
    /* Footer format */
90
    td.footer
91
    {
92
      text-align: center;
93
      padding-top: 3px;
94
      font-family: sans-serif;
95
    }
96

    
97
    /* Coverage Table */
98

    
99
    td.coverTableHead
100
    {
101
      text-align: center;
102
      color: white;
103
      background-color: SteelBlue;
104
      font-family: sans-serif;
105
      font-size: 120%;
106
      white-space: nowrap;
107
      padding-left: 4px;
108
      padding-right: 4px;
109
    }
110
    td.coverFile
111
    {
112
      text-align: left;
113
      padding-left: 10px;
114
      padding-right: 20px;
115
      color: black;
116
      background-color: LightBlue;
117
      font-family: monospace;
118
      font-weight: bold;
119
      font-size: 110%;
120
    }
121
    td.coverBar
122
    {
123
      padding-left: 10px;
124
      padding-right: 10px;
125
      background-color: LightBlue;
126
    }
127
    td.coverBarOutline
128
    {
129
      background-color: white;
130
    }
131
    td.coverValue
132
    {
133
      padding-top: 2px;
134
      text-align: right;
135
      padding-left: 10px;
136
      padding-right: 10px;
137
      font-family: sans-serif;
138
      white-space: nowrap;
139
      font-weight: bold;
140
    }
141

    
142
    /* Link Details */
143
    a.detail:link
144
    {
145
      color: #B8D0FF;
146
      font-size:80%;
147
    }
148
    a.detail:visited
149
    {
150
      color: #B8D0FF;
151
      font-size:80%;
152
    }
153
    a.detail:active
154
    {
155
      color: #FFFFFF;
156
      font-size:80%;
157
    }
158

    
159
    .graphcont{
160
        color:#000;
161
        font-weight:700;
162
        float:left
163
    }
164

    
165
    .graph{
166
        float:left;
167
        background-color: white;
168
        position:relative;
169
        width:280px;
170
        padding:0
171
    }
172

    
173
    .graph .bar{
174
        display:block;
175
        position:relative;
176
        border:black 1px solid;
177
        text-align:center;
178
        color:#fff;
179
        height:10px;
180
        font-family:Arial,Helvetica,sans-serif;
181
        font-size:12px;
182
        line-height:1.9em
183
    }
184

    
185
    .graph .bar span{
186
        position:absolute;
187
        left:1em
188
    }
189

    
190
    td.coveredLine,
191
    span.coveredLine
192
    {
193
        background-color: LightGreen!important;
194
    }
195

    
196
    td.uncoveredLine,
197
    span.uncoveredLine
198
    {
199
        background-color: LightPink!important;
200
    }
201

    
202
    .linebranch, .linecount
203
    {
204
        border-right: 1px gray solid;
205
        background-color: lightgray;
206
    }
207

    
208
    span.takenBranch
209
    {
210
        color: Green!important;
211
        cursor: help;
212
    }
213

    
214
    span.notTakenBranch
215
    {
216
        color: Red!important;
217
        cursor: help;
218
    }
219

    
220
    .src
221
    {
222
        padding-left: 12px;
223
    }
224

    
225
    .srcHeader,
226
    span.takenBranch,
227
    span.notTakenBranch
228
    {
229
        font-family: monospace;
230
        font-weight: bold;
231
    }
232

    
233
    pre
234
    {
235
        height : 15px;
236
        margin-top: 0;
237
        margin-bottom: 0;
238
    }
239

    
240
    .lineno
241
    {
242
        background-color: #EFE383;
243
        border-right: 1px solid #BBB15F;
244
    }
245

    
246
  </style>
247
</head>
248

    
249
<body>
250

    
251
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
252
    <tr><td class="title">GCC Code Coverage Report</td></tr>
253
    <tr><td class="hr"></td></tr>
254

    
255
    <tr>
256
      <td width="100%">
257
        <table cellpadding="1" border="0" width="100%">
258
          <tr>
259
            <td width="10%" class="headerName">Directory:</td>
260
            <td width="35%" class="headerValue">./</td>
261
            <td width="5%"></td>
262
            <td width="15%"></td>
263
            <td width="10%" class="headerValue" style="text-align:right;">Exec</td>
264
            <td width="10%" class="headerValue" style="text-align:right;">Total</td>
265
            <td width="15%" class="headerValue" style="text-align:right;">Coverage</td>
266
          </tr>
267
          <tr>
268
            <td class="headerName">File:</td>
269
            <td class="headerValue">src/tc_acceptance.c</td>
270
            <td></td>
271
            <td class="headerName">Lines:</td>
272
            <td class="headerTableEntry">155</td>
273
            <td class="headerTableEntry">158</td>
274
            <td class="headerTableEntry" style="background-color:LightGreen">98.1 %</td>
275
          </tr>
276
          <tr>
277
            <td class="headerName">Date:</td>
278
            <td class="headerValue">2018-11-13 11:16:07</td>
279
            <td></td>
280
            <td class="headerName">Branches:</td>
281
            <td class="headerTableEntry">125</td>
282
            <td class="headerTableEntry">128</td>
283
            <td class="headerTableEntry" style="background-color:LightGreen">97.7 %</td>
284
          </tr>
285
        </table>
286
      </td>
287
    </tr>
288

    
289
    <tr><td class="hr"></td></tr>
290
  </table>
291

    
292
  <br>
293
  <table cellspacing="0" cellpadding="1">
294
    <tr>
295
      <td width="5%" align="right" class="srcHeader">Line</td>
296
      <td width="5%" align="right" class="srcHeader">Branch</td>
297
      <td width="5%" align="right" class="srcHeader">Exec</td>
298
      <td width="75%" align="left" class="srcHeader src">Source</td>
299
    </tr>
300

    
301

    
302
    <tr>
303
    <td align="right" class="lineno"><pre>1</pre></td>
304
    <td align="right" class="linebranch"></td>
305
    <td align="right" class="linecount "><pre></pre></td>
306
    <td align="left" class="src "><pre>/*------------------------------------------------------------------------------</pre></td>
307
    </tr>
308

    
309
    <tr>
310
    <td align="right" class="lineno"><pre>2</pre></td>
311
    <td align="right" class="linebranch"></td>
312
    <td align="right" class="linecount "><pre></pre></td>
313
    <td align="left" class="src "><pre>--  Solar Orbiter's Low Frequency Receiver Flight Software (LFR FSW),</pre></td>
314
    </tr>
315

    
316
    <tr>
317
    <td align="right" class="lineno"><pre>3</pre></td>
318
    <td align="right" class="linebranch"></td>
319
    <td align="right" class="linecount "><pre></pre></td>
320
    <td align="left" class="src "><pre>--  This file is a part of the LFR FSW</pre></td>
321
    </tr>
322

    
323
    <tr>
324
    <td align="right" class="lineno"><pre>4</pre></td>
325
    <td align="right" class="linebranch"></td>
326
    <td align="right" class="linecount "><pre></pre></td>
327
    <td align="left" class="src "><pre>--  Copyright (C) 2012-2018, Plasma Physics Laboratory - CNRS</pre></td>
328
    </tr>
329

    
330
    <tr>
331
    <td align="right" class="lineno"><pre>5</pre></td>
332
    <td align="right" class="linebranch"></td>
333
    <td align="right" class="linecount "><pre></pre></td>
334
    <td align="left" class="src "><pre>--</pre></td>
335
    </tr>
336

    
337
    <tr>
338
    <td align="right" class="lineno"><pre>6</pre></td>
339
    <td align="right" class="linebranch"></td>
340
    <td align="right" class="linecount "><pre></pre></td>
341
    <td align="left" class="src "><pre>--  This program is free software; you can redistribute it and/or modify</pre></td>
342
    </tr>
343

    
344
    <tr>
345
    <td align="right" class="lineno"><pre>7</pre></td>
346
    <td align="right" class="linebranch"></td>
347
    <td align="right" class="linecount "><pre></pre></td>
348
    <td align="left" class="src "><pre>--  it under the terms of the GNU General Public License as published by</pre></td>
349
    </tr>
350

    
351
    <tr>
352
    <td align="right" class="lineno"><pre>8</pre></td>
353
    <td align="right" class="linebranch"></td>
354
    <td align="right" class="linecount "><pre></pre></td>
355
    <td align="left" class="src "><pre>--  the Free Software Foundation; either version 2 of the License, or</pre></td>
356
    </tr>
357

    
358
    <tr>
359
    <td align="right" class="lineno"><pre>9</pre></td>
360
    <td align="right" class="linebranch"></td>
361
    <td align="right" class="linecount "><pre></pre></td>
362
    <td align="left" class="src "><pre>--  (at your option) any later version.</pre></td>
363
    </tr>
364

    
365
    <tr>
366
    <td align="right" class="lineno"><pre>10</pre></td>
367
    <td align="right" class="linebranch"></td>
368
    <td align="right" class="linecount "><pre></pre></td>
369
    <td align="left" class="src "><pre>--</pre></td>
370
    </tr>
371

    
372
    <tr>
373
    <td align="right" class="lineno"><pre>11</pre></td>
374
    <td align="right" class="linebranch"></td>
375
    <td align="right" class="linecount "><pre></pre></td>
376
    <td align="left" class="src "><pre>--  This program is distributed in the hope that it will be useful,</pre></td>
377
    </tr>
378

    
379
    <tr>
380
    <td align="right" class="lineno"><pre>12</pre></td>
381
    <td align="right" class="linebranch"></td>
382
    <td align="right" class="linecount "><pre></pre></td>
383
    <td align="left" class="src "><pre>--  but WITHOUT ANY WARRANTY; without even the implied warranty of</pre></td>
384
    </tr>
385

    
386
    <tr>
387
    <td align="right" class="lineno"><pre>13</pre></td>
388
    <td align="right" class="linebranch"></td>
389
    <td align="right" class="linecount "><pre></pre></td>
390
    <td align="left" class="src "><pre>--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</pre></td>
391
    </tr>
392

    
393
    <tr>
394
    <td align="right" class="lineno"><pre>14</pre></td>
395
    <td align="right" class="linebranch"></td>
396
    <td align="right" class="linecount "><pre></pre></td>
397
    <td align="left" class="src "><pre>--  GNU General Public License for more details.</pre></td>
398
    </tr>
399

    
400
    <tr>
401
    <td align="right" class="lineno"><pre>15</pre></td>
402
    <td align="right" class="linebranch"></td>
403
    <td align="right" class="linecount "><pre></pre></td>
404
    <td align="left" class="src "><pre>--</pre></td>
405
    </tr>
406

    
407
    <tr>
408
    <td align="right" class="lineno"><pre>16</pre></td>
409
    <td align="right" class="linebranch"></td>
410
    <td align="right" class="linecount "><pre></pre></td>
411
    <td align="left" class="src "><pre>--  You should have received a copy of the GNU General Public License</pre></td>
412
    </tr>
413

    
414
    <tr>
415
    <td align="right" class="lineno"><pre>17</pre></td>
416
    <td align="right" class="linebranch"></td>
417
    <td align="right" class="linecount "><pre></pre></td>
418
    <td align="left" class="src "><pre>--  along with this program; if not, write to the Free Software</pre></td>
419
    </tr>
420

    
421
    <tr>
422
    <td align="right" class="lineno"><pre>18</pre></td>
423
    <td align="right" class="linebranch"></td>
424
    <td align="right" class="linecount "><pre></pre></td>
425
    <td align="left" class="src "><pre>--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</pre></td>
426
    </tr>
427

    
428
    <tr>
429
    <td align="right" class="lineno"><pre>19</pre></td>
430
    <td align="right" class="linebranch"></td>
431
    <td align="right" class="linecount "><pre></pre></td>
432
    <td align="left" class="src "><pre>-------------------------------------------------------------------------------*/</pre></td>
433
    </tr>
434

    
435
    <tr>
436
    <td align="right" class="lineno"><pre>20</pre></td>
437
    <td align="right" class="linebranch"></td>
438
    <td align="right" class="linecount "><pre></pre></td>
439
    <td align="left" class="src "><pre>/*--                  Author : Paul Leroy</pre></td>
440
    </tr>
441

    
442
    <tr>
443
    <td align="right" class="lineno"><pre>21</pre></td>
444
    <td align="right" class="linebranch"></td>
445
    <td align="right" class="linecount "><pre></pre></td>
446
    <td align="left" class="src "><pre>--                   Contact : Alexis Jeandet</pre></td>
447
    </tr>
448

    
449
    <tr>
450
    <td align="right" class="lineno"><pre>22</pre></td>
451
    <td align="right" class="linebranch"></td>
452
    <td align="right" class="linecount "><pre></pre></td>
453
    <td align="left" class="src "><pre>--                      Mail : alexis.jeandet@lpp.polytechnique.fr</pre></td>
454
    </tr>
455

    
456
    <tr>
457
    <td align="right" class="lineno"><pre>23</pre></td>
458
    <td align="right" class="linebranch"></td>
459
    <td align="right" class="linecount "><pre></pre></td>
460
    <td align="left" class="src "><pre>----------------------------------------------------------------------------*/</pre></td>
461
    </tr>
462

    
463
    <tr>
464
    <td align="right" class="lineno"><pre>24</pre></td>
465
    <td align="right" class="linebranch"></td>
466
    <td align="right" class="linecount "><pre></pre></td>
467
    <td align="left" class="src "><pre>/** Functions related to TeleCommand acceptance.</pre></td>
468
    </tr>
469

    
470
    <tr>
471
    <td align="right" class="lineno"><pre>25</pre></td>
472
    <td align="right" class="linebranch"></td>
473
    <td align="right" class="linecount "><pre></pre></td>
474
    <td align="left" class="src "><pre> *</pre></td>
475
    </tr>
476

    
477
    <tr>
478
    <td align="right" class="lineno"><pre>26</pre></td>
479
    <td align="right" class="linebranch"></td>
480
    <td align="right" class="linecount "><pre></pre></td>
481
    <td align="left" class="src "><pre> * @file</pre></td>
482
    </tr>
483

    
484
    <tr>
485
    <td align="right" class="lineno"><pre>27</pre></td>
486
    <td align="right" class="linebranch"></td>
487
    <td align="right" class="linecount "><pre></pre></td>
488
    <td align="left" class="src "><pre> * @author P. LEROY</pre></td>
489
    </tr>
490

    
491
    <tr>
492
    <td align="right" class="lineno"><pre>28</pre></td>
493
    <td align="right" class="linebranch"></td>
494
    <td align="right" class="linecount "><pre></pre></td>
495
    <td align="left" class="src "><pre> *</pre></td>
496
    </tr>
497

    
498
    <tr>
499
    <td align="right" class="lineno"><pre>29</pre></td>
500
    <td align="right" class="linebranch"></td>
501
    <td align="right" class="linecount "><pre></pre></td>
502
    <td align="left" class="src "><pre> * A group of functions to handle TeleCommands parsing.\n</pre></td>
503
    </tr>
504

    
505
    <tr>
506
    <td align="right" class="lineno"><pre>30</pre></td>
507
    <td align="right" class="linebranch"></td>
508
    <td align="right" class="linecount "><pre></pre></td>
509
    <td align="left" class="src "><pre> *</pre></td>
510
    </tr>
511

    
512
    <tr>
513
    <td align="right" class="lineno"><pre>31</pre></td>
514
    <td align="right" class="linebranch"></td>
515
    <td align="right" class="linecount "><pre></pre></td>
516
    <td align="left" class="src "><pre> */</pre></td>
517
    </tr>
518

    
519
    <tr>
520
    <td align="right" class="lineno"><pre>32</pre></td>
521
    <td align="right" class="linebranch"></td>
522
    <td align="right" class="linecount "><pre></pre></td>
523
    <td align="left" class="src "><pre></pre></td>
524
    </tr>
525

    
526
    <tr>
527
    <td align="right" class="lineno"><pre>33</pre></td>
528
    <td align="right" class="linebranch"></td>
529
    <td align="right" class="linecount "><pre></pre></td>
530
    <td align="left" class="src "><pre>#include "tc_acceptance.h"</pre></td>
531
    </tr>
532

    
533
    <tr>
534
    <td align="right" class="lineno"><pre>34</pre></td>
535
    <td align="right" class="linebranch"></td>
536
    <td align="right" class="linecount "><pre></pre></td>
537
    <td align="left" class="src "><pre>#include &lt;stdio.h></pre></td>
538
    </tr>
539

    
540
    <tr>
541
    <td align="right" class="lineno"><pre>35</pre></td>
542
    <td align="right" class="linebranch"></td>
543
    <td align="right" class="linecount "><pre></pre></td>
544
    <td align="left" class="src "><pre></pre></td>
545
    </tr>
546

    
547
    <tr>
548
    <td align="right" class="lineno"><pre>36</pre></td>
549
    <td align="right" class="linebranch"></td>
550
    <td align="right" class="linecount "><pre></pre></td>
551
    <td align="left" class="src "><pre>unsigned int lookUpTableForCRC[CONST_256] = {0};</pre></td>
552
    </tr>
553

    
554
    <tr>
555
    <td align="right" class="lineno"><pre>37</pre></td>
556
    <td align="right" class="linebranch"></td>
557
    <td align="right" class="linecount "><pre></pre></td>
558
    <td align="left" class="src "><pre></pre></td>
559
    </tr>
560

    
561
    <tr>
562
    <td align="right" class="lineno"><pre>38</pre></td>
563
    <td align="right" class="linebranch"></td>
564
    <td align="right" class="linecount "><pre></pre></td>
565
    <td align="left" class="src "><pre>//**********************</pre></td>
566
    </tr>
567

    
568
    <tr>
569
    <td align="right" class="lineno"><pre>39</pre></td>
570
    <td align="right" class="linebranch"></td>
571
    <td align="right" class="linecount "><pre></pre></td>
572
    <td align="left" class="src "><pre>// GENERAL USE FUNCTIONS</pre></td>
573
    </tr>
574

    
575
    <tr>
576
    <td align="right" class="lineno"><pre>40</pre></td>
577
    <td align="right" class="linebranch"></td>
578
    <td align="right" class="linecount coveredLine"><pre>1116364</pre></td>
579
    <td align="left" class="src coveredLine"><pre>unsigned int Crc_opt( unsigned char D, unsigned int Chk)</pre></td>
580
    </tr>
581

    
582
    <tr>
583
    <td align="right" class="lineno"><pre>41</pre></td>
584
    <td align="right" class="linebranch"></td>
585
    <td align="right" class="linecount "><pre></pre></td>
586
    <td align="left" class="src "><pre>{</pre></td>
587
    </tr>
588

    
589
    <tr>
590
    <td align="right" class="lineno"><pre>42</pre></td>
591
    <td align="right" class="linebranch"></td>
592
    <td align="right" class="linecount "><pre></pre></td>
593
    <td align="left" class="src "><pre>    /** This function generate the CRC for one byte and returns the value of the new syndrome.</pre></td>
594
    </tr>
595

    
596
    <tr>
597
    <td align="right" class="lineno"><pre>43</pre></td>
598
    <td align="right" class="linebranch"></td>
599
    <td align="right" class="linecount "><pre></pre></td>
600
    <td align="left" class="src "><pre>     *</pre></td>
601
    </tr>
602

    
603
    <tr>
604
    <td align="right" class="lineno"><pre>44</pre></td>
605
    <td align="right" class="linebranch"></td>
606
    <td align="right" class="linecount "><pre></pre></td>
607
    <td align="left" class="src "><pre>     * @param D is the current byte of data.</pre></td>
608
    </tr>
609

    
610
    <tr>
611
    <td align="right" class="lineno"><pre>45</pre></td>
612
    <td align="right" class="linebranch"></td>
613
    <td align="right" class="linecount "><pre></pre></td>
614
    <td align="left" class="src "><pre>     * @param Chk is the current syndrom value.</pre></td>
615
    </tr>
616

    
617
    <tr>
618
    <td align="right" class="lineno"><pre>46</pre></td>
619
    <td align="right" class="linebranch"></td>
620
    <td align="right" class="linecount "><pre></pre></td>
621
    <td align="left" class="src "><pre>     *</pre></td>
622
    </tr>
623

    
624
    <tr>
625
    <td align="right" class="lineno"><pre>47</pre></td>
626
    <td align="right" class="linebranch"></td>
627
    <td align="right" class="linecount "><pre></pre></td>
628
    <td align="left" class="src "><pre>     * @return the value of the new syndrome on two bytes.</pre></td>
629
    </tr>
630

    
631
    <tr>
632
    <td align="right" class="lineno"><pre>48</pre></td>
633
    <td align="right" class="linebranch"></td>
634
    <td align="right" class="linecount "><pre></pre></td>
635
    <td align="left" class="src "><pre>     *</pre></td>
636
    </tr>
637

    
638
    <tr>
639
    <td align="right" class="lineno"><pre>49</pre></td>
640
    <td align="right" class="linebranch"></td>
641
    <td align="right" class="linecount "><pre></pre></td>
642
    <td align="left" class="src "><pre>     */</pre></td>
643
    </tr>
644

    
645
    <tr>
646
    <td align="right" class="lineno"><pre>50</pre></td>
647
    <td align="right" class="linebranch"></td>
648
    <td align="right" class="linecount "><pre></pre></td>
649
    <td align="left" class="src "><pre></pre></td>
650
    </tr>
651

    
652
    <tr>
653
    <td align="right" class="lineno"><pre>51</pre></td>
654
    <td align="right" class="linebranch"></td>
655
    <td align="right" class="linecount coveredLine"><pre>1116364</pre></td>
656
    <td align="left" class="src coveredLine"><pre>    return(((Chk &lt;&lt; SHIFT_1_BYTE) &amp; BYTE0_MASK)^lookUpTableForCRC [(((Chk >> SHIFT_1_BYTE)^D) &amp; BYTE1_MASK)]);</pre></td>
657
    </tr>
658

    
659
    <tr>
660
    <td align="right" class="lineno"><pre>52</pre></td>
661
    <td align="right" class="linebranch"></td>
662
    <td align="right" class="linecount "><pre></pre></td>
663
    <td align="left" class="src "><pre>}</pre></td>
664
    </tr>
665

    
666
    <tr>
667
    <td align="right" class="lineno"><pre>53</pre></td>
668
    <td align="right" class="linebranch"></td>
669
    <td align="right" class="linecount "><pre></pre></td>
670
    <td align="left" class="src "><pre></pre></td>
671
    </tr>
672

    
673
    <tr>
674
    <td align="right" class="lineno"><pre>54</pre></td>
675
    <td align="right" class="linebranch"></td>
676
    <td align="right" class="linecount coveredLine"><pre>94</pre></td>
677
    <td align="left" class="src coveredLine"><pre>void initLookUpTableForCRC( void )</pre></td>
678
    </tr>
679

    
680
    <tr>
681
    <td align="right" class="lineno"><pre>55</pre></td>
682
    <td align="right" class="linebranch"></td>
683
    <td align="right" class="linecount "><pre></pre></td>
684
    <td align="left" class="src "><pre>{</pre></td>
685
    </tr>
686

    
687
    <tr>
688
    <td align="right" class="lineno"><pre>56</pre></td>
689
    <td align="right" class="linebranch"></td>
690
    <td align="right" class="linecount "><pre></pre></td>
691
    <td align="left" class="src "><pre>    /** This function is used to initiates the look-up table for fast CRC computation.</pre></td>
692
    </tr>
693

    
694
    <tr>
695
    <td align="right" class="lineno"><pre>57</pre></td>
696
    <td align="right" class="linebranch"></td>
697
    <td align="right" class="linecount "><pre></pre></td>
698
    <td align="left" class="src "><pre>     *</pre></td>
699
    </tr>
700

    
701
    <tr>
702
    <td align="right" class="lineno"><pre>58</pre></td>
703
    <td align="right" class="linebranch"></td>
704
    <td align="right" class="linecount "><pre></pre></td>
705
    <td align="left" class="src "><pre>     * The global table lookUpTableForCRC[256] is initiated.</pre></td>
706
    </tr>
707

    
708
    <tr>
709
    <td align="right" class="lineno"><pre>59</pre></td>
710
    <td align="right" class="linebranch"></td>
711
    <td align="right" class="linecount "><pre></pre></td>
712
    <td align="left" class="src "><pre>     *</pre></td>
713
    </tr>
714

    
715
    <tr>
716
    <td align="right" class="lineno"><pre>60</pre></td>
717
    <td align="right" class="linebranch"></td>
718
    <td align="right" class="linecount "><pre></pre></td>
719
    <td align="left" class="src "><pre>     */</pre></td>
720
    </tr>
721

    
722
    <tr>
723
    <td align="right" class="lineno"><pre>61</pre></td>
724
    <td align="right" class="linebranch"></td>
725
    <td align="right" class="linecount "><pre></pre></td>
726
    <td align="left" class="src "><pre></pre></td>
727
    </tr>
728

    
729
    <tr>
730
    <td align="right" class="lineno"><pre>62</pre></td>
731
    <td align="right" class="linebranch"></td>
732
    <td align="right" class="linecount "><pre></pre></td>
733
    <td align="left" class="src "><pre>    unsigned int i;</pre></td>
734
    </tr>
735

    
736
    <tr>
737
    <td align="right" class="lineno"><pre>63</pre></td>
738
    <td align="right" class="linebranch"></td>
739
    <td align="right" class="linecount "><pre></pre></td>
740
    <td align="left" class="src "><pre>    unsigned int tmp;</pre></td>
741
    </tr>
742

    
743
    <tr>
744
    <td align="right" class="lineno"><pre>64</pre></td>
745
    <td align="right" class="linebranch"></td>
746
    <td align="right" class="linecount "><pre></pre></td>
747
    <td align="left" class="src "><pre></pre></td>
748
    </tr>
749

    
750
    <tr>
751
    <td align="right" class="lineno"><pre>65</pre></td>
752
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 24064 times">&check;</span><span class="takenBranch" title="Branch 1 taken 94 times">&check;</span></td>
753
    <td align="right" class="linecount coveredLine"><pre>24158</pre></td>
754
    <td align="left" class="src coveredLine"><pre>    for (i=0; i&lt;CONST_256; i++)</pre></td>
755
    </tr>
756

    
757
    <tr>
758
    <td align="right" class="lineno"><pre>66</pre></td>
759
    <td align="right" class="linebranch"></td>
760
    <td align="right" class="linecount "><pre></pre></td>
761
    <td align="left" class="src "><pre>    {</pre></td>
762
    </tr>
763

    
764
    <tr>
765
    <td align="right" class="lineno"><pre>67</pre></td>
766
    <td align="right" class="linebranch"></td>
767
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
768
    <td align="left" class="src coveredLine"><pre>        tmp = 0;</pre></td>
769
    </tr>
770

    
771
    <tr>
772
    <td align="right" class="lineno"><pre>68</pre></td>
773
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
774
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
775
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_0) != 0) {</pre></td>
776
    </tr>
777

    
778
    <tr>
779
    <td align="right" class="lineno"><pre>69</pre></td>
780
    <td align="right" class="linebranch"></td>
781
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
782
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_0;</pre></td>
783
    </tr>
784

    
785
    <tr>
786
    <td align="right" class="lineno"><pre>70</pre></td>
787
    <td align="right" class="linebranch"></td>
788
    <td align="right" class="linecount "><pre></pre></td>
789
    <td align="left" class="src "><pre>        }</pre></td>
790
    </tr>
791

    
792
    <tr>
793
    <td align="right" class="lineno"><pre>71</pre></td>
794
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
795
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
796
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_1) != 0) {</pre></td>
797
    </tr>
798

    
799
    <tr>
800
    <td align="right" class="lineno"><pre>72</pre></td>
801
    <td align="right" class="linebranch"></td>
802
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
803
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_1;</pre></td>
804
    </tr>
805

    
806
    <tr>
807
    <td align="right" class="lineno"><pre>73</pre></td>
808
    <td align="right" class="linebranch"></td>
809
    <td align="right" class="linecount "><pre></pre></td>
810
    <td align="left" class="src "><pre>        }</pre></td>
811
    </tr>
812

    
813
    <tr>
814
    <td align="right" class="lineno"><pre>74</pre></td>
815
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
816
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
817
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_2) != 0) {</pre></td>
818
    </tr>
819

    
820
    <tr>
821
    <td align="right" class="lineno"><pre>75</pre></td>
822
    <td align="right" class="linebranch"></td>
823
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
824
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_2;</pre></td>
825
    </tr>
826

    
827
    <tr>
828
    <td align="right" class="lineno"><pre>76</pre></td>
829
    <td align="right" class="linebranch"></td>
830
    <td align="right" class="linecount "><pre></pre></td>
831
    <td align="left" class="src "><pre>        }</pre></td>
832
    </tr>
833

    
834
    <tr>
835
    <td align="right" class="lineno"><pre>77</pre></td>
836
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
837
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
838
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_3) != 0) {</pre></td>
839
    </tr>
840

    
841
    <tr>
842
    <td align="right" class="lineno"><pre>78</pre></td>
843
    <td align="right" class="linebranch"></td>
844
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
845
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_3;</pre></td>
846
    </tr>
847

    
848
    <tr>
849
    <td align="right" class="lineno"><pre>79</pre></td>
850
    <td align="right" class="linebranch"></td>
851
    <td align="right" class="linecount "><pre></pre></td>
852
    <td align="left" class="src "><pre>        }</pre></td>
853
    </tr>
854

    
855
    <tr>
856
    <td align="right" class="lineno"><pre>80</pre></td>
857
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
858
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
859
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_4) != 0) {</pre></td>
860
    </tr>
861

    
862
    <tr>
863
    <td align="right" class="lineno"><pre>81</pre></td>
864
    <td align="right" class="linebranch"></td>
865
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
866
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_4;</pre></td>
867
    </tr>
868

    
869
    <tr>
870
    <td align="right" class="lineno"><pre>82</pre></td>
871
    <td align="right" class="linebranch"></td>
872
    <td align="right" class="linecount "><pre></pre></td>
873
    <td align="left" class="src "><pre>        }</pre></td>
874
    </tr>
875

    
876
    <tr>
877
    <td align="right" class="lineno"><pre>83</pre></td>
878
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
879
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
880
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_5) != 0) {</pre></td>
881
    </tr>
882

    
883
    <tr>
884
    <td align="right" class="lineno"><pre>84</pre></td>
885
    <td align="right" class="linebranch"></td>
886
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
887
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_5;</pre></td>
888
    </tr>
889

    
890
    <tr>
891
    <td align="right" class="lineno"><pre>85</pre></td>
892
    <td align="right" class="linebranch"></td>
893
    <td align="right" class="linecount "><pre></pre></td>
894
    <td align="left" class="src "><pre>        }</pre></td>
895
    </tr>
896

    
897
    <tr>
898
    <td align="right" class="lineno"><pre>86</pre></td>
899
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
900
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
901
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_6) != 0) {</pre></td>
902
    </tr>
903

    
904
    <tr>
905
    <td align="right" class="lineno"><pre>87</pre></td>
906
    <td align="right" class="linebranch"></td>
907
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
908
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_6;</pre></td>
909
    </tr>
910

    
911
    <tr>
912
    <td align="right" class="lineno"><pre>88</pre></td>
913
    <td align="right" class="linebranch"></td>
914
    <td align="right" class="linecount "><pre></pre></td>
915
    <td align="left" class="src "><pre>        }</pre></td>
916
    </tr>
917

    
918
    <tr>
919
    <td align="right" class="lineno"><pre>89</pre></td>
920
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 12032 times">&check;</span><span class="takenBranch" title="Branch 1 taken 12032 times">&check;</span></td>
921
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
922
    <td align="left" class="src coveredLine"><pre>        if((i &amp; BIT_7) != 0) {</pre></td>
923
    </tr>
924

    
925
    <tr>
926
    <td align="right" class="lineno"><pre>90</pre></td>
927
    <td align="right" class="linebranch"></td>
928
    <td align="right" class="linecount coveredLine"><pre>12032</pre></td>
929
    <td align="left" class="src coveredLine"><pre>            tmp = tmp ^ CONST_CRC_7;</pre></td>
930
    </tr>
931

    
932
    <tr>
933
    <td align="right" class="lineno"><pre>91</pre></td>
934
    <td align="right" class="linebranch"></td>
935
    <td align="right" class="linecount "><pre></pre></td>
936
    <td align="left" class="src "><pre>        }</pre></td>
937
    </tr>
938

    
939
    <tr>
940
    <td align="right" class="lineno"><pre>92</pre></td>
941
    <td align="right" class="linebranch"></td>
942
    <td align="right" class="linecount coveredLine"><pre>24064</pre></td>
943
    <td align="left" class="src coveredLine"><pre>        lookUpTableForCRC[i] = tmp;</pre></td>
944
    </tr>
945

    
946
    <tr>
947
    <td align="right" class="lineno"><pre>93</pre></td>
948
    <td align="right" class="linebranch"></td>
949
    <td align="right" class="linecount "><pre></pre></td>
950
    <td align="left" class="src "><pre>    }</pre></td>
951
    </tr>
952

    
953
    <tr>
954
    <td align="right" class="lineno"><pre>94</pre></td>
955
    <td align="right" class="linebranch"></td>
956
    <td align="right" class="linecount coveredLine"><pre>94</pre></td>
957
    <td align="left" class="src coveredLine"><pre>}</pre></td>
958
    </tr>
959

    
960
    <tr>
961
    <td align="right" class="lineno"><pre>95</pre></td>
962
    <td align="right" class="linebranch"></td>
963
    <td align="right" class="linecount "><pre></pre></td>
964
    <td align="left" class="src "><pre></pre></td>
965
    </tr>
966

    
967
    <tr>
968
    <td align="right" class="lineno"><pre>96</pre></td>
969
    <td align="right" class="linebranch"></td>
970
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
971
    <td align="left" class="src coveredLine"><pre>void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData)</pre></td>
972
    </tr>
973

    
974
    <tr>
975
    <td align="right" class="lineno"><pre>97</pre></td>
976
    <td align="right" class="linebranch"></td>
977
    <td align="right" class="linecount "><pre></pre></td>
978
    <td align="left" class="src "><pre>{</pre></td>
979
    </tr>
980

    
981
    <tr>
982
    <td align="right" class="lineno"><pre>98</pre></td>
983
    <td align="right" class="linebranch"></td>
984
    <td align="right" class="linecount "><pre></pre></td>
985
    <td align="left" class="src "><pre>    /** This function calculates a two bytes Cyclic Redundancy Code.</pre></td>
986
    </tr>
987

    
988
    <tr>
989
    <td align="right" class="lineno"><pre>99</pre></td>
990
    <td align="right" class="linebranch"></td>
991
    <td align="right" class="linecount "><pre></pre></td>
992
    <td align="left" class="src "><pre>     *</pre></td>
993
    </tr>
994

    
995
    <tr>
996
    <td align="right" class="lineno"><pre>100</pre></td>
997
    <td align="right" class="linebranch"></td>
998
    <td align="right" class="linecount "><pre></pre></td>
999
    <td align="left" class="src "><pre>     * @param data points to a buffer containing the data on which to compute the CRC.</pre></td>
1000
    </tr>
1001

    
1002
    <tr>
1003
    <td align="right" class="lineno"><pre>101</pre></td>
1004
    <td align="right" class="linebranch"></td>
1005
    <td align="right" class="linecount "><pre></pre></td>
1006
    <td align="left" class="src "><pre>     * @param crcAsTwoBytes points points to a two bytes buffer in which the CRC is stored.</pre></td>
1007
    </tr>
1008

    
1009
    <tr>
1010
    <td align="right" class="lineno"><pre>102</pre></td>
1011
    <td align="right" class="linebranch"></td>
1012
    <td align="right" class="linecount "><pre></pre></td>
1013
    <td align="left" class="src "><pre>     * @param sizeOfData is the number of bytes of *data* used to compute the CRC.</pre></td>
1014
    </tr>
1015

    
1016
    <tr>
1017
    <td align="right" class="lineno"><pre>103</pre></td>
1018
    <td align="right" class="linebranch"></td>
1019
    <td align="right" class="linecount "><pre></pre></td>
1020
    <td align="left" class="src "><pre>     *</pre></td>
1021
    </tr>
1022

    
1023
    <tr>
1024
    <td align="right" class="lineno"><pre>104</pre></td>
1025
    <td align="right" class="linebranch"></td>
1026
    <td align="right" class="linecount "><pre></pre></td>
1027
    <td align="left" class="src "><pre>     * The specification of the Cyclic Redundancy Code is described in the following document: ECSS-E-70-41-A.</pre></td>
1028
    </tr>
1029

    
1030
    <tr>
1031
    <td align="right" class="lineno"><pre>105</pre></td>
1032
    <td align="right" class="linebranch"></td>
1033
    <td align="right" class="linecount "><pre></pre></td>
1034
    <td align="left" class="src "><pre>     *</pre></td>
1035
    </tr>
1036

    
1037
    <tr>
1038
    <td align="right" class="lineno"><pre>106</pre></td>
1039
    <td align="right" class="linebranch"></td>
1040
    <td align="right" class="linecount "><pre></pre></td>
1041
    <td align="left" class="src "><pre>     */</pre></td>
1042
    </tr>
1043

    
1044
    <tr>
1045
    <td align="right" class="lineno"><pre>107</pre></td>
1046
    <td align="right" class="linebranch"></td>
1047
    <td align="right" class="linecount "><pre></pre></td>
1048
    <td align="left" class="src "><pre></pre></td>
1049
    </tr>
1050

    
1051
    <tr>
1052
    <td align="right" class="lineno"><pre>108</pre></td>
1053
    <td align="right" class="linebranch"></td>
1054
    <td align="right" class="linecount "><pre></pre></td>
1055
    <td align="left" class="src "><pre>    unsigned int Chk;</pre></td>
1056
    </tr>
1057

    
1058
    <tr>
1059
    <td align="right" class="lineno"><pre>109</pre></td>
1060
    <td align="right" class="linebranch"></td>
1061
    <td align="right" class="linecount "><pre></pre></td>
1062
    <td align="left" class="src "><pre>    int j;</pre></td>
1063
    </tr>
1064

    
1065
    <tr>
1066
    <td align="right" class="lineno"><pre>110</pre></td>
1067
    <td align="right" class="linebranch"></td>
1068
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1069
    <td align="left" class="src coveredLine"><pre>    Chk = CRC_RESET; // reset the syndrom to all ones</pre></td>
1070
    </tr>
1071

    
1072
    <tr>
1073
    <td align="right" class="lineno"><pre>111</pre></td>
1074
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 1116364 times">&check;</span><span class="takenBranch" title="Branch 1 taken 42177 times">&check;</span></td>
1075
    <td align="right" class="linecount coveredLine"><pre>1158541</pre></td>
1076
    <td align="left" class="src coveredLine"><pre>    for (j=0; j&lt;sizeOfData; j++) {</pre></td>
1077
    </tr>
1078

    
1079
    <tr>
1080
    <td align="right" class="lineno"><pre>112</pre></td>
1081
    <td align="right" class="linebranch"></td>
1082
    <td align="right" class="linecount coveredLine"><pre>1116364</pre></td>
1083
    <td align="left" class="src coveredLine"><pre>        Chk = Crc_opt(data[j], Chk);</pre></td>
1084
    </tr>
1085

    
1086
    <tr>
1087
    <td align="right" class="lineno"><pre>113</pre></td>
1088
    <td align="right" class="linebranch"></td>
1089
    <td align="right" class="linecount "><pre></pre></td>
1090
    <td align="left" class="src "><pre>    }</pre></td>
1091
    </tr>
1092

    
1093
    <tr>
1094
    <td align="right" class="lineno"><pre>114</pre></td>
1095
    <td align="right" class="linebranch"></td>
1096
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1097
    <td align="left" class="src coveredLine"><pre>    crcAsTwoBytes[0] = (unsigned char) (Chk >> SHIFT_1_BYTE);</pre></td>
1098
    </tr>
1099

    
1100
    <tr>
1101
    <td align="right" class="lineno"><pre>115</pre></td>
1102
    <td align="right" class="linebranch"></td>
1103
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1104
    <td align="left" class="src coveredLine"><pre>    crcAsTwoBytes[1] = (unsigned char) (Chk &amp; BYTE1_MASK);</pre></td>
1105
    </tr>
1106

    
1107
    <tr>
1108
    <td align="right" class="lineno"><pre>116</pre></td>
1109
    <td align="right" class="linebranch"></td>
1110
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1111
    <td align="left" class="src coveredLine"><pre>}</pre></td>
1112
    </tr>
1113

    
1114
    <tr>
1115
    <td align="right" class="lineno"><pre>117</pre></td>
1116
    <td align="right" class="linebranch"></td>
1117
    <td align="right" class="linecount "><pre></pre></td>
1118
    <td align="left" class="src "><pre></pre></td>
1119
    </tr>
1120

    
1121
    <tr>
1122
    <td align="right" class="lineno"><pre>118</pre></td>
1123
    <td align="right" class="linebranch"></td>
1124
    <td align="right" class="linecount "><pre></pre></td>
1125
    <td align="left" class="src "><pre>//*********************</pre></td>
1126
    </tr>
1127

    
1128
    <tr>
1129
    <td align="right" class="lineno"><pre>119</pre></td>
1130
    <td align="right" class="linebranch"></td>
1131
    <td align="right" class="linecount "><pre></pre></td>
1132
    <td align="left" class="src "><pre>// ACCEPTANCE FUNCTIONS</pre></td>
1133
    </tr>
1134

    
1135
    <tr>
1136
    <td align="right" class="lineno"><pre>120</pre></td>
1137
    <td align="right" class="linebranch"></td>
1138
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1139
    <td align="left" class="src coveredLine"><pre>int tc_parser(ccsdsTelecommandPacket_t * TCPacket, unsigned int estimatedPacketLength, unsigned char *computed_CRC)</pre></td>
1140
    </tr>
1141

    
1142
    <tr>
1143
    <td align="right" class="lineno"><pre>121</pre></td>
1144
    <td align="right" class="linebranch"></td>
1145
    <td align="right" class="linecount "><pre></pre></td>
1146
    <td align="left" class="src "><pre>{</pre></td>
1147
    </tr>
1148

    
1149
    <tr>
1150
    <td align="right" class="lineno"><pre>122</pre></td>
1151
    <td align="right" class="linebranch"></td>
1152
    <td align="right" class="linecount "><pre></pre></td>
1153
    <td align="left" class="src "><pre>    /** This function parses TeleCommands.</pre></td>
1154
    </tr>
1155

    
1156
    <tr>
1157
    <td align="right" class="lineno"><pre>123</pre></td>
1158
    <td align="right" class="linebranch"></td>
1159
    <td align="right" class="linecount "><pre></pre></td>
1160
    <td align="left" class="src "><pre>     *</pre></td>
1161
    </tr>
1162

    
1163
    <tr>
1164
    <td align="right" class="lineno"><pre>124</pre></td>
1165
    <td align="right" class="linebranch"></td>
1166
    <td align="right" class="linecount "><pre></pre></td>
1167
    <td align="left" class="src "><pre>     * @param TC points to the TeleCommand that will be parsed.</pre></td>
1168
    </tr>
1169

    
1170
    <tr>
1171
    <td align="right" class="lineno"><pre>125</pre></td>
1172
    <td align="right" class="linebranch"></td>
1173
    <td align="right" class="linecount "><pre></pre></td>
1174
    <td align="left" class="src "><pre>     * @param estimatedPacketLength is the PACKET_LENGTH field calculated from the effective length of the received packet.</pre></td>
1175
    </tr>
1176

    
1177
    <tr>
1178
    <td align="right" class="lineno"><pre>126</pre></td>
1179
    <td align="right" class="linebranch"></td>
1180
    <td align="right" class="linecount "><pre></pre></td>
1181
    <td align="left" class="src "><pre>     *</pre></td>
1182
    </tr>
1183

    
1184
    <tr>
1185
    <td align="right" class="lineno"><pre>127</pre></td>
1186
    <td align="right" class="linebranch"></td>
1187
    <td align="right" class="linecount "><pre></pre></td>
1188
    <td align="left" class="src "><pre>     * @return Status code of the parsing.</pre></td>
1189
    </tr>
1190

    
1191
    <tr>
1192
    <td align="right" class="lineno"><pre>128</pre></td>
1193
    <td align="right" class="linebranch"></td>
1194
    <td align="right" class="linecount "><pre></pre></td>
1195
    <td align="left" class="src "><pre>     *</pre></td>
1196
    </tr>
1197

    
1198
    <tr>
1199
    <td align="right" class="lineno"><pre>129</pre></td>
1200
    <td align="right" class="linebranch"></td>
1201
    <td align="right" class="linecount "><pre></pre></td>
1202
    <td align="left" class="src "><pre>     * The parsing checks:</pre></td>
1203
    </tr>
1204

    
1205
    <tr>
1206
    <td align="right" class="lineno"><pre>130</pre></td>
1207
    <td align="right" class="linebranch"></td>
1208
    <td align="right" class="linecount "><pre></pre></td>
1209
    <td align="left" class="src "><pre>     * - process id</pre></td>
1210
    </tr>
1211

    
1212
    <tr>
1213
    <td align="right" class="lineno"><pre>131</pre></td>
1214
    <td align="right" class="linebranch"></td>
1215
    <td align="right" class="linecount "><pre></pre></td>
1216
    <td align="left" class="src "><pre>     * - category</pre></td>
1217
    </tr>
1218

    
1219
    <tr>
1220
    <td align="right" class="lineno"><pre>132</pre></td>
1221
    <td align="right" class="linebranch"></td>
1222
    <td align="right" class="linecount "><pre></pre></td>
1223
    <td align="left" class="src "><pre>     * - length: a global check is performed and a per subtype check also</pre></td>
1224
    </tr>
1225

    
1226
    <tr>
1227
    <td align="right" class="lineno"><pre>133</pre></td>
1228
    <td align="right" class="linebranch"></td>
1229
    <td align="right" class="linecount "><pre></pre></td>
1230
    <td align="left" class="src "><pre>     * - type</pre></td>
1231
    </tr>
1232

    
1233
    <tr>
1234
    <td align="right" class="lineno"><pre>134</pre></td>
1235
    <td align="right" class="linebranch"></td>
1236
    <td align="right" class="linecount "><pre></pre></td>
1237
    <td align="left" class="src "><pre>     * - subtype</pre></td>
1238
    </tr>
1239

    
1240
    <tr>
1241
    <td align="right" class="lineno"><pre>135</pre></td>
1242
    <td align="right" class="linebranch"></td>
1243
    <td align="right" class="linecount "><pre></pre></td>
1244
    <td align="left" class="src "><pre>     * - crc</pre></td>
1245
    </tr>
1246

    
1247
    <tr>
1248
    <td align="right" class="lineno"><pre>136</pre></td>
1249
    <td align="right" class="linebranch"></td>
1250
    <td align="right" class="linecount "><pre></pre></td>
1251
    <td align="left" class="src "><pre>     *</pre></td>
1252
    </tr>
1253

    
1254
    <tr>
1255
    <td align="right" class="lineno"><pre>137</pre></td>
1256
    <td align="right" class="linebranch"></td>
1257
    <td align="right" class="linecount "><pre></pre></td>
1258
    <td align="left" class="src "><pre>     */</pre></td>
1259
    </tr>
1260

    
1261
    <tr>
1262
    <td align="right" class="lineno"><pre>138</pre></td>
1263
    <td align="right" class="linebranch"></td>
1264
    <td align="right" class="linecount "><pre></pre></td>
1265
    <td align="left" class="src "><pre></pre></td>
1266
    </tr>
1267

    
1268
    <tr>
1269
    <td align="right" class="lineno"><pre>139</pre></td>
1270
    <td align="right" class="linebranch"></td>
1271
    <td align="right" class="linecount "><pre></pre></td>
1272
    <td align="left" class="src "><pre>    int status;</pre></td>
1273
    </tr>
1274

    
1275
    <tr>
1276
    <td align="right" class="lineno"><pre>140</pre></td>
1277
    <td align="right" class="linebranch"></td>
1278
    <td align="right" class="linecount "><pre></pre></td>
1279
    <td align="left" class="src "><pre>    int status_crc;</pre></td>
1280
    </tr>
1281

    
1282
    <tr>
1283
    <td align="right" class="lineno"><pre>141</pre></td>
1284
    <td align="right" class="linebranch"></td>
1285
    <td align="right" class="linecount "><pre></pre></td>
1286
    <td align="left" class="src "><pre>    unsigned char pid;</pre></td>
1287
    </tr>
1288

    
1289
    <tr>
1290
    <td align="right" class="lineno"><pre>142</pre></td>
1291
    <td align="right" class="linebranch"></td>
1292
    <td align="right" class="linecount "><pre></pre></td>
1293
    <td align="left" class="src "><pre>    unsigned char category;</pre></td>
1294
    </tr>
1295

    
1296
    <tr>
1297
    <td align="right" class="lineno"><pre>143</pre></td>
1298
    <td align="right" class="linebranch"></td>
1299
    <td align="right" class="linecount "><pre></pre></td>
1300
    <td align="left" class="src "><pre>    unsigned int packetLength;</pre></td>
1301
    </tr>
1302

    
1303
    <tr>
1304
    <td align="right" class="lineno"><pre>144</pre></td>
1305
    <td align="right" class="linebranch"></td>
1306
    <td align="right" class="linecount "><pre></pre></td>
1307
    <td align="left" class="src "><pre>    unsigned char packetType;</pre></td>
1308
    </tr>
1309

    
1310
    <tr>
1311
    <td align="right" class="lineno"><pre>145</pre></td>
1312
    <td align="right" class="linebranch"></td>
1313
    <td align="right" class="linecount "><pre></pre></td>
1314
    <td align="left" class="src "><pre>    unsigned char packetSubtype;</pre></td>
1315
    </tr>
1316

    
1317
    <tr>
1318
    <td align="right" class="lineno"><pre>146</pre></td>
1319
    <td align="right" class="linebranch"></td>
1320
    <td align="right" class="linecount "><pre></pre></td>
1321
    <td align="left" class="src "><pre>    unsigned char sid;</pre></td>
1322
    </tr>
1323

    
1324
    <tr>
1325
    <td align="right" class="lineno"><pre>147</pre></td>
1326
    <td align="right" class="linebranch"></td>
1327
    <td align="right" class="linecount "><pre></pre></td>
1328
    <td align="left" class="src "><pre></pre></td>
1329
    </tr>
1330

    
1331
    <tr>
1332
    <td align="right" class="lineno"><pre>148</pre></td>
1333
    <td align="right" class="linebranch"></td>
1334
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1335
    <td align="left" class="src coveredLine"><pre>    status = CCSDS_TM_VALID;</pre></td>
1336
    </tr>
1337

    
1338
    <tr>
1339
    <td align="right" class="lineno"><pre>149</pre></td>
1340
    <td align="right" class="linebranch"></td>
1341
    <td align="right" class="linecount "><pre></pre></td>
1342
    <td align="left" class="src "><pre></pre></td>
1343
    </tr>
1344

    
1345
    <tr>
1346
    <td align="right" class="lineno"><pre>150</pre></td>
1347
    <td align="right" class="linebranch"></td>
1348
    <td align="right" class="linecount "><pre></pre></td>
1349
    <td align="left" class="src "><pre>    // APID check *** APID on 2 bytes</pre></td>
1350
    </tr>
1351

    
1352
    <tr>
1353
    <td align="right" class="lineno"><pre>151</pre></td>
1354
    <td align="right" class="linebranch"></td>
1355
    <td align="right" class="linecount coveredLine"><pre>84354</pre></td>
1356
    <td align="left" class="src coveredLine"><pre>    pid             = ((TCPacket->packetID[0] &amp; BITS_PID_0) &lt;&lt; SHIFT_4_BITS)</pre></td>
1357
    </tr>
1358

    
1359
    <tr>
1360
    <td align="right" class="lineno"><pre>152</pre></td>
1361
    <td align="right" class="linebranch"></td>
1362
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1363
    <td align="left" class="src coveredLine"><pre>            + ( (TCPacket->packetID[1] >> SHIFT_4_BITS) &amp; BITS_PID_1 );   // PID = 11 *** 7 bits xxxxx210 7654xxxx</pre></td>
1364
    </tr>
1365

    
1366
    <tr>
1367
    <td align="right" class="lineno"><pre>153</pre></td>
1368
    <td align="right" class="linebranch"></td>
1369
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1370
    <td align="left" class="src coveredLine"><pre>    category        = (TCPacket->packetID[1] &amp; BITS_CAT);         // PACKET_CATEGORY = 12 *** 4 bits xxxxxxxx xxxx3210</pre></td>
1371
    </tr>
1372

    
1373
    <tr>
1374
    <td align="right" class="lineno"><pre>154</pre></td>
1375
    <td align="right" class="linebranch"></td>
1376
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1377
    <td align="left" class="src coveredLine"><pre>    packetLength    = (TCPacket->packetLength[0] * CONST_256) + TCPacket->packetLength[1];</pre></td>
1378
    </tr>
1379

    
1380
    <tr>
1381
    <td align="right" class="lineno"><pre>155</pre></td>
1382
    <td align="right" class="linebranch"></td>
1383
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1384
    <td align="left" class="src coveredLine"><pre>    packetType      = TCPacket->serviceType;</pre></td>
1385
    </tr>
1386

    
1387
    <tr>
1388
    <td align="right" class="lineno"><pre>156</pre></td>
1389
    <td align="right" class="linebranch"></td>
1390
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1391
    <td align="left" class="src coveredLine"><pre>    packetSubtype   = TCPacket->serviceSubType;</pre></td>
1392
    </tr>
1393

    
1394
    <tr>
1395
    <td align="right" class="lineno"><pre>157</pre></td>
1396
    <td align="right" class="linebranch"></td>
1397
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1398
    <td align="left" class="src coveredLine"><pre>    sid             = TCPacket->sourceID;</pre></td>
1399
    </tr>
1400

    
1401
    <tr>
1402
    <td align="right" class="lineno"><pre>158</pre></td>
1403
    <td align="right" class="linebranch"></td>
1404
    <td align="right" class="linecount "><pre></pre></td>
1405
    <td align="left" class="src "><pre></pre></td>
1406
    </tr>
1407

    
1408
    <tr>
1409
    <td align="right" class="lineno"><pre>159</pre></td>
1410
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 132 times">&check;</span><span class="takenBranch" title="Branch 1 taken 42045 times">&check;</span></td>
1411
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1412
    <td align="left" class="src coveredLine"><pre>    if ( pid != CCSDS_PROCESS_ID )  // CHECK THE PROCESS ID</pre></td>
1413
    </tr>
1414

    
1415
    <tr>
1416
    <td align="right" class="lineno"><pre>160</pre></td>
1417
    <td align="right" class="linebranch"></td>
1418
    <td align="right" class="linecount "><pre></pre></td>
1419
    <td align="left" class="src "><pre>    {</pre></td>
1420
    </tr>
1421

    
1422
    <tr>
1423
    <td align="right" class="lineno"><pre>161</pre></td>
1424
    <td align="right" class="linebranch"></td>
1425
    <td align="right" class="linecount coveredLine"><pre>132</pre></td>
1426
    <td align="left" class="src coveredLine"><pre>        status = ILLEGAL_APID;</pre></td>
1427
    </tr>
1428

    
1429
    <tr>
1430
    <td align="right" class="lineno"><pre>162</pre></td>
1431
    <td align="right" class="linebranch"></td>
1432
    <td align="right" class="linecount "><pre></pre></td>
1433
    <td align="left" class="src "><pre>    }</pre></td>
1434
    </tr>
1435

    
1436
    <tr>
1437
    <td align="right" class="lineno"><pre>163</pre></td>
1438
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 42045 times">&check;</span><span class="takenBranch" title="Branch 1 taken 132 times">&check;</span></td>
1439
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1440
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE CATEGORY</pre></td>
1441
    </tr>
1442

    
1443
    <tr>
1444
    <td align="right" class="lineno"><pre>164</pre></td>
1445
    <td align="right" class="linebranch"></td>
1446
    <td align="right" class="linecount "><pre></pre></td>
1447
    <td align="left" class="src "><pre>    {</pre></td>
1448
    </tr>
1449

    
1450
    <tr>
1451
    <td align="right" class="lineno"><pre>165</pre></td>
1452
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 66 times">&check;</span><span class="takenBranch" title="Branch 1 taken 41979 times">&check;</span></td>
1453
    <td align="right" class="linecount coveredLine"><pre>42045</pre></td>
1454
    <td align="left" class="src coveredLine"><pre>        if ( category != CCSDS_PACKET_CATEGORY )</pre></td>
1455
    </tr>
1456

    
1457
    <tr>
1458
    <td align="right" class="lineno"><pre>166</pre></td>
1459
    <td align="right" class="linebranch"></td>
1460
    <td align="right" class="linecount "><pre></pre></td>
1461
    <td align="left" class="src "><pre>        {</pre></td>
1462
    </tr>
1463

    
1464
    <tr>
1465
    <td align="right" class="lineno"><pre>167</pre></td>
1466
    <td align="right" class="linebranch"></td>
1467
    <td align="right" class="linecount coveredLine"><pre>66</pre></td>
1468
    <td align="left" class="src coveredLine"><pre>            status = ILLEGAL_APID;</pre></td>
1469
    </tr>
1470

    
1471
    <tr>
1472
    <td align="right" class="lineno"><pre>168</pre></td>
1473
    <td align="right" class="linebranch"></td>
1474
    <td align="right" class="linecount "><pre></pre></td>
1475
    <td align="left" class="src "><pre>        }</pre></td>
1476
    </tr>
1477

    
1478
    <tr>
1479
    <td align="right" class="lineno"><pre>169</pre></td>
1480
    <td align="right" class="linebranch"></td>
1481
    <td align="right" class="linecount "><pre></pre></td>
1482
    <td align="left" class="src "><pre>    }</pre></td>
1483
    </tr>
1484

    
1485
    <tr>
1486
    <td align="right" class="lineno"><pre>170</pre></td>
1487
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 41979 times">&check;</span><span class="takenBranch" title="Branch 1 taken 198 times">&check;</span></td>
1488
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1489
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE PACKET_LENGTH FIELD AND THE ESTIMATED PACKET_LENGTH COMPLIANCE</pre></td>
1490
    </tr>
1491

    
1492
    <tr>
1493
    <td align="right" class="lineno"><pre>171</pre></td>
1494
    <td align="right" class="linebranch"></td>
1495
    <td align="right" class="linecount "><pre></pre></td>
1496
    <td align="left" class="src "><pre>    {</pre></td>
1497
    </tr>
1498

    
1499
    <tr>
1500
    <td align="right" class="lineno"><pre>172</pre></td>
1501
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 66 times">&check;</span><span class="takenBranch" title="Branch 1 taken 41913 times">&check;</span></td>
1502
    <td align="right" class="linecount coveredLine"><pre>41979</pre></td>
1503
    <td align="left" class="src coveredLine"><pre>        if (packetLength != estimatedPacketLength ) {</pre></td>
1504
    </tr>
1505

    
1506
    <tr>
1507
    <td align="right" class="lineno"><pre>173</pre></td>
1508
    <td align="right" class="linebranch"></td>
1509
    <td align="right" class="linecount coveredLine"><pre>66</pre></td>
1510
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
1511
    </tr>
1512

    
1513
    <tr>
1514
    <td align="right" class="lineno"><pre>174</pre></td>
1515
    <td align="right" class="linebranch"></td>
1516
    <td align="right" class="linecount "><pre></pre></td>
1517
    <td align="left" class="src "><pre>        }</pre></td>
1518
    </tr>
1519

    
1520
    <tr>
1521
    <td align="right" class="lineno"><pre>175</pre></td>
1522
    <td align="right" class="linebranch"></td>
1523
    <td align="right" class="linecount "><pre></pre></td>
1524
    <td align="left" class="src "><pre>    }</pre></td>
1525
    </tr>
1526

    
1527
    <tr>
1528
    <td align="right" class="lineno"><pre>176</pre></td>
1529
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 41913 times">&check;</span><span class="takenBranch" title="Branch 1 taken 264 times">&check;</span></td>
1530
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1531
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THAT THE PACKET DOES NOT EXCEED THE MAX SIZE</pre></td>
1532
    </tr>
1533

    
1534
    <tr>
1535
    <td align="right" class="lineno"><pre>177</pre></td>
1536
    <td align="right" class="linebranch"></td>
1537
    <td align="right" class="linecount "><pre></pre></td>
1538
    <td align="left" class="src "><pre>    {</pre></td>
1539
    </tr>
1540

    
1541
    <tr>
1542
    <td align="right" class="lineno"><pre>178</pre></td>
1543
    <td align="right" class="linebranch"><span class="notTakenBranch" title="Branch 0 not taken">&cross;</span><span class="takenBranch" title="Branch 1 taken 41913 times">&check;</span></td>
1544
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1545
    <td align="left" class="src coveredLine"><pre>        if ( packetLength > CCSDS_TC_PKT_MAX_SIZE ) {</pre></td>
1546
    </tr>
1547

    
1548
    <tr>
1549
    <td align="right" class="lineno"><pre>179</pre></td>
1550
    <td align="right" class="linebranch"></td>
1551
    <td align="right" class="linecount uncoveredLine"><pre></pre></td>
1552
    <td align="left" class="src uncoveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
1553
    </tr>
1554

    
1555
    <tr>
1556
    <td align="right" class="lineno"><pre>180</pre></td>
1557
    <td align="right" class="linebranch"></td>
1558
    <td align="right" class="linecount "><pre></pre></td>
1559
    <td align="left" class="src "><pre>        }</pre></td>
1560
    </tr>
1561

    
1562
    <tr>
1563
    <td align="right" class="lineno"><pre>181</pre></td>
1564
    <td align="right" class="linebranch"></td>
1565
    <td align="right" class="linecount "><pre></pre></td>
1566
    <td align="left" class="src "><pre>    }</pre></td>
1567
    </tr>
1568

    
1569
    <tr>
1570
    <td align="right" class="lineno"><pre>182</pre></td>
1571
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 41913 times">&check;</span><span class="takenBranch" title="Branch 1 taken 264 times">&check;</span></td>
1572
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1573
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE TYPE</pre></td>
1574
    </tr>
1575

    
1576
    <tr>
1577
    <td align="right" class="lineno"><pre>183</pre></td>
1578
    <td align="right" class="linebranch"></td>
1579
    <td align="right" class="linecount "><pre></pre></td>
1580
    <td align="left" class="src "><pre>    {</pre></td>
1581
    </tr>
1582

    
1583
    <tr>
1584
    <td align="right" class="lineno"><pre>184</pre></td>
1585
    <td align="right" class="linebranch"></td>
1586
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1587
    <td align="left" class="src coveredLine"><pre>        status = tc_check_type( packetType );</pre></td>
1588
    </tr>
1589

    
1590
    <tr>
1591
    <td align="right" class="lineno"><pre>185</pre></td>
1592
    <td align="right" class="linebranch"></td>
1593
    <td align="right" class="linecount "><pre></pre></td>
1594
    <td align="left" class="src "><pre>    }</pre></td>
1595
    </tr>
1596

    
1597
    <tr>
1598
    <td align="right" class="lineno"><pre>186</pre></td>
1599
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 33653 times">&check;</span><span class="takenBranch" title="Branch 1 taken 8524 times">&check;</span></td>
1600
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1601
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE SUBTYPE</pre></td>
1602
    </tr>
1603

    
1604
    <tr>
1605
    <td align="right" class="lineno"><pre>187</pre></td>
1606
    <td align="right" class="linebranch"></td>
1607
    <td align="right" class="linecount "><pre></pre></td>
1608
    <td align="left" class="src "><pre>    {</pre></td>
1609
    </tr>
1610

    
1611
    <tr>
1612
    <td align="right" class="lineno"><pre>188</pre></td>
1613
    <td align="right" class="linebranch"></td>
1614
    <td align="right" class="linecount coveredLine"><pre>33653</pre></td>
1615
    <td align="left" class="src coveredLine"><pre>        status = tc_check_type_subtype( packetType, packetSubtype );</pre></td>
1616
    </tr>
1617

    
1618
    <tr>
1619
    <td align="right" class="lineno"><pre>189</pre></td>
1620
    <td align="right" class="linebranch"></td>
1621
    <td align="right" class="linecount "><pre></pre></td>
1622
    <td align="left" class="src "><pre>    }</pre></td>
1623
    </tr>
1624

    
1625
    <tr>
1626
    <td align="right" class="lineno"><pre>190</pre></td>
1627
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 33521 times">&check;</span><span class="takenBranch" title="Branch 1 taken 8656 times">&check;</span></td>
1628
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1629
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE SID</pre></td>
1630
    </tr>
1631

    
1632
    <tr>
1633
    <td align="right" class="lineno"><pre>191</pre></td>
1634
    <td align="right" class="linebranch"></td>
1635
    <td align="right" class="linecount "><pre></pre></td>
1636
    <td align="left" class="src "><pre>    {</pre></td>
1637
    </tr>
1638

    
1639
    <tr>
1640
    <td align="right" class="lineno"><pre>192</pre></td>
1641
    <td align="right" class="linebranch"></td>
1642
    <td align="right" class="linecount coveredLine"><pre>33521</pre></td>
1643
    <td align="left" class="src coveredLine"><pre>        status = tc_check_sid( sid );</pre></td>
1644
    </tr>
1645

    
1646
    <tr>
1647
    <td align="right" class="lineno"><pre>193</pre></td>
1648
    <td align="right" class="linebranch"></td>
1649
    <td align="right" class="linecount "><pre></pre></td>
1650
    <td align="left" class="src "><pre>    }</pre></td>
1651
    </tr>
1652

    
1653
    <tr>
1654
    <td align="right" class="lineno"><pre>194</pre></td>
1655
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 30238 times">&check;</span><span class="takenBranch" title="Branch 1 taken 11939 times">&check;</span></td>
1656
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1657
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID)   // CHECK THE SUBTYPE AND LENGTH COMPLIANCE</pre></td>
1658
    </tr>
1659

    
1660
    <tr>
1661
    <td align="right" class="lineno"><pre>195</pre></td>
1662
    <td align="right" class="linebranch"></td>
1663
    <td align="right" class="linecount "><pre></pre></td>
1664
    <td align="left" class="src "><pre>    {</pre></td>
1665
    </tr>
1666

    
1667
    <tr>
1668
    <td align="right" class="lineno"><pre>196</pre></td>
1669
    <td align="right" class="linebranch"></td>
1670
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
1671
    <td align="left" class="src coveredLine"><pre>        status = tc_check_length( packetSubtype, packetLength );</pre></td>
1672
    </tr>
1673

    
1674
    <tr>
1675
    <td align="right" class="lineno"><pre>197</pre></td>
1676
    <td align="right" class="linebranch"></td>
1677
    <td align="right" class="linecount "><pre></pre></td>
1678
    <td align="left" class="src "><pre>    }</pre></td>
1679
    </tr>
1680

    
1681
    <tr>
1682
    <td align="right" class="lineno"><pre>198</pre></td>
1683
    <td align="right" class="linebranch"></td>
1684
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1685
    <td align="left" class="src coveredLine"><pre>    status_crc = tc_check_crc( TCPacket, estimatedPacketLength, computed_CRC );</pre></td>
1686
    </tr>
1687

    
1688
    <tr>
1689
    <td align="right" class="lineno"><pre>199</pre></td>
1690
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 30180 times">&check;</span><span class="takenBranch" title="Branch 1 taken 11997 times">&check;</span></td>
1691
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1692
    <td align="left" class="src coveredLine"><pre>    if (status == CCSDS_TM_VALID )  // CHECK CRC</pre></td>
1693
    </tr>
1694

    
1695
    <tr>
1696
    <td align="right" class="lineno"><pre>200</pre></td>
1697
    <td align="right" class="linebranch"></td>
1698
    <td align="right" class="linecount "><pre></pre></td>
1699
    <td align="left" class="src "><pre>    {</pre></td>
1700
    </tr>
1701

    
1702
    <tr>
1703
    <td align="right" class="lineno"><pre>201</pre></td>
1704
    <td align="right" class="linebranch"></td>
1705
    <td align="right" class="linecount coveredLine"><pre>30180</pre></td>
1706
    <td align="left" class="src coveredLine"><pre>        status = status_crc;</pre></td>
1707
    </tr>
1708

    
1709
    <tr>
1710
    <td align="right" class="lineno"><pre>202</pre></td>
1711
    <td align="right" class="linebranch"></td>
1712
    <td align="right" class="linecount "><pre></pre></td>
1713
    <td align="left" class="src "><pre>    }</pre></td>
1714
    </tr>
1715

    
1716
    <tr>
1717
    <td align="right" class="lineno"><pre>203</pre></td>
1718
    <td align="right" class="linebranch"></td>
1719
    <td align="right" class="linecount "><pre></pre></td>
1720
    <td align="left" class="src "><pre></pre></td>
1721
    </tr>
1722

    
1723
    <tr>
1724
    <td align="right" class="lineno"><pre>204</pre></td>
1725
    <td align="right" class="linebranch"></td>
1726
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
1727
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
1728
    </tr>
1729

    
1730
    <tr>
1731
    <td align="right" class="lineno"><pre>205</pre></td>
1732
    <td align="right" class="linebranch"></td>
1733
    <td align="right" class="linecount "><pre></pre></td>
1734
    <td align="left" class="src "><pre>}</pre></td>
1735
    </tr>
1736

    
1737
    <tr>
1738
    <td align="right" class="lineno"><pre>206</pre></td>
1739
    <td align="right" class="linebranch"></td>
1740
    <td align="right" class="linecount "><pre></pre></td>
1741
    <td align="left" class="src "><pre></pre></td>
1742
    </tr>
1743

    
1744
    <tr>
1745
    <td align="right" class="lineno"><pre>207</pre></td>
1746
    <td align="right" class="linebranch"></td>
1747
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1748
    <td align="left" class="src coveredLine"><pre>int tc_check_type( unsigned char packetType )</pre></td>
1749
    </tr>
1750

    
1751
    <tr>
1752
    <td align="right" class="lineno"><pre>208</pre></td>
1753
    <td align="right" class="linebranch"></td>
1754
    <td align="right" class="linecount "><pre></pre></td>
1755
    <td align="left" class="src "><pre>{</pre></td>
1756
    </tr>
1757

    
1758
    <tr>
1759
    <td align="right" class="lineno"><pre>209</pre></td>
1760
    <td align="right" class="linebranch"></td>
1761
    <td align="right" class="linecount "><pre></pre></td>
1762
    <td align="left" class="src "><pre>    /** This function checks that the type of a TeleCommand is valid.</pre></td>
1763
    </tr>
1764

    
1765
    <tr>
1766
    <td align="right" class="lineno"><pre>210</pre></td>
1767
    <td align="right" class="linebranch"></td>
1768
    <td align="right" class="linecount "><pre></pre></td>
1769
    <td align="left" class="src "><pre>     *</pre></td>
1770
    </tr>
1771

    
1772
    <tr>
1773
    <td align="right" class="lineno"><pre>211</pre></td>
1774
    <td align="right" class="linebranch"></td>
1775
    <td align="right" class="linecount "><pre></pre></td>
1776
    <td align="left" class="src "><pre>     * @param packetType is the type to check.</pre></td>
1777
    </tr>
1778

    
1779
    <tr>
1780
    <td align="right" class="lineno"><pre>212</pre></td>
1781
    <td align="right" class="linebranch"></td>
1782
    <td align="right" class="linecount "><pre></pre></td>
1783
    <td align="left" class="src "><pre>     *</pre></td>
1784
    </tr>
1785

    
1786
    <tr>
1787
    <td align="right" class="lineno"><pre>213</pre></td>
1788
    <td align="right" class="linebranch"></td>
1789
    <td align="right" class="linecount "><pre></pre></td>
1790
    <td align="left" class="src "><pre>     * @return Status code CCSDS_TM_VALID or ILL_TYPE.</pre></td>
1791
    </tr>
1792

    
1793
    <tr>
1794
    <td align="right" class="lineno"><pre>214</pre></td>
1795
    <td align="right" class="linebranch"></td>
1796
    <td align="right" class="linecount "><pre></pre></td>
1797
    <td align="left" class="src "><pre>     *</pre></td>
1798
    </tr>
1799

    
1800
    <tr>
1801
    <td align="right" class="lineno"><pre>215</pre></td>
1802
    <td align="right" class="linebranch"></td>
1803
    <td align="right" class="linecount "><pre></pre></td>
1804
    <td align="left" class="src "><pre>     */</pre></td>
1805
    </tr>
1806

    
1807
    <tr>
1808
    <td align="right" class="lineno"><pre>216</pre></td>
1809
    <td align="right" class="linebranch"></td>
1810
    <td align="right" class="linecount "><pre></pre></td>
1811
    <td align="left" class="src "><pre></pre></td>
1812
    </tr>
1813

    
1814
    <tr>
1815
    <td align="right" class="lineno"><pre>217</pre></td>
1816
    <td align="right" class="linebranch"></td>
1817
    <td align="right" class="linecount "><pre></pre></td>
1818
    <td align="left" class="src "><pre>    int status;</pre></td>
1819
    </tr>
1820

    
1821
    <tr>
1822
    <td align="right" class="lineno"><pre>218</pre></td>
1823
    <td align="right" class="linebranch"></td>
1824
    <td align="right" class="linecount "><pre></pre></td>
1825
    <td align="left" class="src "><pre></pre></td>
1826
    </tr>
1827

    
1828
    <tr>
1829
    <td align="right" class="lineno"><pre>219</pre></td>
1830
    <td align="right" class="linebranch"></td>
1831
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1832
    <td align="left" class="src coveredLine"><pre>    status = ILL_TYPE;</pre></td>
1833
    </tr>
1834

    
1835
    <tr>
1836
    <td align="right" class="lineno"><pre>220</pre></td>
1837
    <td align="right" class="linebranch"></td>
1838
    <td align="right" class="linecount "><pre></pre></td>
1839
    <td align="left" class="src "><pre></pre></td>
1840
    </tr>
1841

    
1842
    <tr>
1843
    <td align="right" class="lineno"><pre>221</pre></td>
1844
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 33653 times">&check;</span><span class="takenBranch" title="Branch 1 taken 8260 times">&check;</span></td>
1845
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1846
    <td align="left" class="src coveredLine"><pre>    if ( (packetType == TC_TYPE_GEN) || (packetType == TC_TYPE_TIME))</pre></td>
1847
    </tr>
1848

    
1849
    <tr>
1850
    <td align="right" class="lineno"><pre>222</pre></td>
1851
    <td align="right" class="linebranch"></td>
1852
    <td align="right" class="linecount "><pre></pre></td>
1853
    <td align="left" class="src "><pre>    {</pre></td>
1854
    </tr>
1855

    
1856
    <tr>
1857
    <td align="right" class="lineno"><pre>223</pre></td>
1858
    <td align="right" class="linebranch"></td>
1859
    <td align="right" class="linecount coveredLine"><pre>33653</pre></td>
1860
    <td align="left" class="src coveredLine"><pre>        status = CCSDS_TM_VALID;</pre></td>
1861
    </tr>
1862

    
1863
    <tr>
1864
    <td align="right" class="lineno"><pre>224</pre></td>
1865
    <td align="right" class="linebranch"></td>
1866
    <td align="right" class="linecount "><pre></pre></td>
1867
    <td align="left" class="src "><pre>    }</pre></td>
1868
    </tr>
1869

    
1870
    <tr>
1871
    <td align="right" class="lineno"><pre>225</pre></td>
1872
    <td align="right" class="linebranch"></td>
1873
    <td align="right" class="linecount "><pre></pre></td>
1874
    <td align="left" class="src "><pre></pre></td>
1875
    </tr>
1876

    
1877
    <tr>
1878
    <td align="right" class="lineno"><pre>226</pre></td>
1879
    <td align="right" class="linebranch"></td>
1880
    <td align="right" class="linecount coveredLine"><pre>41913</pre></td>
1881
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
1882
    </tr>
1883

    
1884
    <tr>
1885
    <td align="right" class="lineno"><pre>227</pre></td>
1886
    <td align="right" class="linebranch"></td>
1887
    <td align="right" class="linecount "><pre></pre></td>
1888
    <td align="left" class="src "><pre>}</pre></td>
1889
    </tr>
1890

    
1891
    <tr>
1892
    <td align="right" class="lineno"><pre>228</pre></td>
1893
    <td align="right" class="linebranch"></td>
1894
    <td align="right" class="linecount "><pre></pre></td>
1895
    <td align="left" class="src "><pre></pre></td>
1896
    </tr>
1897

    
1898
    <tr>
1899
    <td align="right" class="lineno"><pre>229</pre></td>
1900
    <td align="right" class="linebranch"></td>
1901
    <td align="right" class="linecount coveredLine"><pre>33653</pre></td>
1902
    <td align="left" class="src coveredLine"><pre>int tc_check_type_subtype( unsigned char packetType, unsigned char packetSubType )</pre></td>
1903
    </tr>
1904

    
1905
    <tr>
1906
    <td align="right" class="lineno"><pre>230</pre></td>
1907
    <td align="right" class="linebranch"></td>
1908
    <td align="right" class="linecount "><pre></pre></td>
1909
    <td align="left" class="src "><pre>{</pre></td>
1910
    </tr>
1911

    
1912
    <tr>
1913
    <td align="right" class="lineno"><pre>231</pre></td>
1914
    <td align="right" class="linebranch"></td>
1915
    <td align="right" class="linecount "><pre></pre></td>
1916
    <td align="left" class="src "><pre>    /** This function checks that the subtype of a TeleCommand is valid and coherent with the type.</pre></td>
1917
    </tr>
1918

    
1919
    <tr>
1920
    <td align="right" class="lineno"><pre>232</pre></td>
1921
    <td align="right" class="linebranch"></td>
1922
    <td align="right" class="linecount "><pre></pre></td>
1923
    <td align="left" class="src "><pre>     *</pre></td>
1924
    </tr>
1925

    
1926
    <tr>
1927
    <td align="right" class="lineno"><pre>233</pre></td>
1928
    <td align="right" class="linebranch"></td>
1929
    <td align="right" class="linecount "><pre></pre></td>
1930
    <td align="left" class="src "><pre>     * @param packetType is the type of the TC.</pre></td>
1931
    </tr>
1932

    
1933
    <tr>
1934
    <td align="right" class="lineno"><pre>234</pre></td>
1935
    <td align="right" class="linebranch"></td>
1936
    <td align="right" class="linecount "><pre></pre></td>
1937
    <td align="left" class="src "><pre>     * @param packetSubType is the subtype to check.</pre></td>
1938
    </tr>
1939

    
1940
    <tr>
1941
    <td align="right" class="lineno"><pre>235</pre></td>
1942
    <td align="right" class="linebranch"></td>
1943
    <td align="right" class="linecount "><pre></pre></td>
1944
    <td align="left" class="src "><pre>     *</pre></td>
1945
    </tr>
1946

    
1947
    <tr>
1948
    <td align="right" class="lineno"><pre>236</pre></td>
1949
    <td align="right" class="linebranch"></td>
1950
    <td align="right" class="linecount "><pre></pre></td>
1951
    <td align="left" class="src "><pre>     * @return Status code CCSDS_TM_VALID or ILL_SUBTYPE.</pre></td>
1952
    </tr>
1953

    
1954
    <tr>
1955
    <td align="right" class="lineno"><pre>237</pre></td>
1956
    <td align="right" class="linebranch"></td>
1957
    <td align="right" class="linecount "><pre></pre></td>
1958
    <td align="left" class="src "><pre>     *</pre></td>
1959
    </tr>
1960

    
1961
    <tr>
1962
    <td align="right" class="lineno"><pre>238</pre></td>
1963
    <td align="right" class="linebranch"></td>
1964
    <td align="right" class="linecount "><pre></pre></td>
1965
    <td align="left" class="src "><pre>     */</pre></td>
1966
    </tr>
1967

    
1968
    <tr>
1969
    <td align="right" class="lineno"><pre>239</pre></td>
1970
    <td align="right" class="linebranch"></td>
1971
    <td align="right" class="linecount "><pre></pre></td>
1972
    <td align="left" class="src "><pre></pre></td>
1973
    </tr>
1974

    
1975
    <tr>
1976
    <td align="right" class="lineno"><pre>240</pre></td>
1977
    <td align="right" class="linebranch"></td>
1978
    <td align="right" class="linecount "><pre></pre></td>
1979
    <td align="left" class="src "><pre>    int status;</pre></td>
1980
    </tr>
1981

    
1982
    <tr>
1983
    <td align="right" class="lineno"><pre>241</pre></td>
1984
    <td align="right" class="linebranch"></td>
1985
    <td align="right" class="linecount "><pre></pre></td>
1986
    <td align="left" class="src "><pre></pre></td>
1987
    </tr>
1988

    
1989
    <tr>
1990
    <td align="right" class="lineno"><pre>242</pre></td>
1991
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 31630 times">&check;</span><span class="takenBranch" title="Branch 1 taken 2023 times">&check;</span><span class="notTakenBranch" title="Branch 2 not taken">&cross;</span></td>
1992
    <td align="right" class="linecount coveredLine"><pre>33653</pre></td>
1993
    <td align="left" class="src coveredLine"><pre>    switch(packetType)</pre></td>
1994
    </tr>
1995

    
1996
    <tr>
1997
    <td align="right" class="lineno"><pre>243</pre></td>
1998
    <td align="right" class="linebranch"></td>
1999
    <td align="right" class="linecount "><pre></pre></td>
2000
    <td align="left" class="src "><pre>    {</pre></td>
2001
    </tr>
2002

    
2003
    <tr>
2004
    <td align="right" class="lineno"><pre>244</pre></td>
2005
    <td align="right" class="linebranch"></td>
2006
    <td align="right" class="linecount "><pre></pre></td>
2007
    <td align="left" class="src "><pre>    case TC_TYPE_GEN:</pre></td>
2008
    </tr>
2009

    
2010
    <tr>
2011
    <td align="right" class="lineno"><pre>245</pre></td>
2012
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 29822 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1808 times">&check;</span><span class="takenBranch" title="Branch 2 taken 26799 times">&check;</span><span class="takenBranch" title="Branch 3 taken 3023 times">&check;</span><br/><span class="takenBranch" title="Branch 4 taken 23819 times">&check;</span><span class="takenBranch" title="Branch 5 taken 2980 times">&check;</span><span class="takenBranch" title="Branch 6 taken 10891 times">&check;</span><span class="takenBranch" title="Branch 7 taken 12928 times">&check;</span><br/><span class="takenBranch" title="Branch 8 taken 8102 times">&check;</span><span class="takenBranch" title="Branch 9 taken 2789 times">&check;</span><span class="takenBranch" title="Branch 10 taken 4836 times">&check;</span><span class="takenBranch" title="Branch 11 taken 3266 times">&check;</span><br/><span class="takenBranch" title="Branch 12 taken 1570 times">&check;</span><span class="takenBranch" title="Branch 13 taken 3266 times">&check;</span><span class="takenBranch" title="Branch 14 taken 1504 times">&check;</span><span class="takenBranch" title="Branch 15 taken 66 times">&check;</span><br/></td>
2013
    <td align="right" class="linecount coveredLine"><pre>199093</pre></td>
2014
    <td align="left" class="src coveredLine"><pre>        if ( (packetSubType == TC_SUBTYPE_RESET)</pre></td>
2015
    </tr>
2016

    
2017
    <tr>
2018
    <td align="right" class="lineno"><pre>246</pre></td>
2019
    <td align="right" class="linebranch"></td>
2020
    <td align="right" class="linecount coveredLine"><pre>31630</pre></td>
2021
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_LOAD_COMM)</pre></td>
2022
    </tr>
2023

    
2024
    <tr>
2025
    <td align="right" class="lineno"><pre>247</pre></td>
2026
    <td align="right" class="linebranch"></td>
2027
    <td align="right" class="linecount coveredLine"><pre>61452</pre></td>
2028
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_LOAD_NORM) || (packetSubType == TC_SUBTYPE_LOAD_BURST)</pre></td>
2029
    </tr>
2030

    
2031
    <tr>
2032
    <td align="right" class="lineno"><pre>248</pre></td>
2033
    <td align="right" class="linebranch"></td>
2034
    <td align="right" class="linecount coveredLine"><pre>26799</pre></td>
2035
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_LOAD_SBM1) || (packetSubType == TC_SUBTYPE_LOAD_SBM2)</pre></td>
2036
    </tr>
2037

    
2038
    <tr>
2039
    <td align="right" class="lineno"><pre>249</pre></td>
2040
    <td align="right" class="linebranch"></td>
2041
    <td align="right" class="linecount coveredLine"><pre>23819</pre></td>
2042
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_DUMP)</pre></td>
2043
    </tr>
2044

    
2045
    <tr>
2046
    <td align="right" class="lineno"><pre>250</pre></td>
2047
    <td align="right" class="linebranch"></td>
2048
    <td align="right" class="linecount coveredLine"><pre>23819</pre></td>
2049
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_ENTER)</pre></td>
2050
    </tr>
2051

    
2052
    <tr>
2053
    <td align="right" class="lineno"><pre>251</pre></td>
2054
    <td align="right" class="linebranch"></td>
2055
    <td align="right" class="linecount coveredLine"><pre>10891</pre></td>
2056
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_UPDT_INFO)</pre></td>
2057
    </tr>
2058

    
2059
    <tr>
2060
    <td align="right" class="lineno"><pre>252</pre></td>
2061
    <td align="right" class="linebranch"></td>
2062
    <td align="right" class="linecount coveredLine"><pre>18993</pre></td>
2063
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_EN_CAL)    || (packetSubType == TC_SUBTYPE_DIS_CAL)</pre></td>
2064
    </tr>
2065

    
2066
    <tr>
2067
    <td align="right" class="lineno"><pre>253</pre></td>
2068
    <td align="right" class="linebranch"></td>
2069
    <td align="right" class="linecount coveredLine"><pre>12938</pre></td>
2070
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_LOAD_K)    || (packetSubType == TC_SUBTYPE_DUMP_K)</pre></td>
2071
    </tr>
2072

    
2073
    <tr>
2074
    <td align="right" class="lineno"><pre>254</pre></td>
2075
    <td align="right" class="linebranch"></td>
2076
    <td align="right" class="linecount coveredLine"><pre>4836</pre></td>
2077
    <td align="left" class="src coveredLine"><pre>             || (packetSubType == TC_SUBTYPE_LOAD_FBINS)</pre></td>
2078
    </tr>
2079

    
2080
    <tr>
2081
    <td align="right" class="lineno"><pre>255</pre></td>
2082
    <td align="right" class="linebranch"></td>
2083
    <td align="right" class="linecount "><pre></pre></td>
2084
    <td align="left" class="src "><pre>             || (packetSubType == TC_SUBTYPE_LOAD_FILTER_PAR))</pre></td>
2085
    </tr>
2086

    
2087
    <tr>
2088
    <td align="right" class="lineno"><pre>256</pre></td>
2089
    <td align="right" class="linebranch"></td>
2090
    <td align="right" class="linecount "><pre></pre></td>
2091
    <td align="left" class="src "><pre>        {</pre></td>
2092
    </tr>
2093

    
2094
    <tr>
2095
    <td align="right" class="lineno"><pre>257</pre></td>
2096
    <td align="right" class="linebranch"></td>
2097
    <td align="right" class="linecount coveredLine"><pre>31564</pre></td>
2098
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2099
    </tr>
2100

    
2101
    <tr>
2102
    <td align="right" class="lineno"><pre>258</pre></td>
2103
    <td align="right" class="linebranch"></td>
2104
    <td align="right" class="linecount "><pre></pre></td>
2105
    <td align="left" class="src "><pre>        }</pre></td>
2106
    </tr>
2107

    
2108
    <tr>
2109
    <td align="right" class="lineno"><pre>259</pre></td>
2110
    <td align="right" class="linebranch"></td>
2111
    <td align="right" class="linecount "><pre></pre></td>
2112
    <td align="left" class="src "><pre>        else</pre></td>
2113
    </tr>
2114

    
2115
    <tr>
2116
    <td align="right" class="lineno"><pre>260</pre></td>
2117
    <td align="right" class="linebranch"></td>
2118
    <td align="right" class="linecount "><pre></pre></td>
2119
    <td align="left" class="src "><pre>        {</pre></td>
2120
    </tr>
2121

    
2122
    <tr>
2123
    <td align="right" class="lineno"><pre>261</pre></td>
2124
    <td align="right" class="linebranch"></td>
2125
    <td align="right" class="linecount coveredLine"><pre>66</pre></td>
2126
    <td align="left" class="src coveredLine"><pre>            status = ILL_SUBTYPE;</pre></td>
2127
    </tr>
2128

    
2129
    <tr>
2130
    <td align="right" class="lineno"><pre>262</pre></td>
2131
    <td align="right" class="linebranch"></td>
2132
    <td align="right" class="linecount "><pre></pre></td>
2133
    <td align="left" class="src "><pre>        }</pre></td>
2134
    </tr>
2135

    
2136
    <tr>
2137
    <td align="right" class="lineno"><pre>263</pre></td>
2138
    <td align="right" class="linebranch"></td>
2139
    <td align="right" class="linecount "><pre></pre></td>
2140
    <td align="left" class="src "><pre>        break;</pre></td>
2141
    </tr>
2142

    
2143
    <tr>
2144
    <td align="right" class="lineno"><pre>264</pre></td>
2145
    <td align="right" class="linebranch"></td>
2146
    <td align="right" class="linecount "><pre></pre></td>
2147
    <td align="left" class="src "><pre></pre></td>
2148
    </tr>
2149

    
2150
    <tr>
2151
    <td align="right" class="lineno"><pre>265</pre></td>
2152
    <td align="right" class="linebranch"></td>
2153
    <td align="right" class="linecount "><pre></pre></td>
2154
    <td align="left" class="src "><pre>    case TC_TYPE_TIME:</pre></td>
2155
    </tr>
2156

    
2157
    <tr>
2158
    <td align="right" class="lineno"><pre>266</pre></td>
2159
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 1957 times">&check;</span><span class="takenBranch" title="Branch 1 taken 66 times">&check;</span></td>
2160
    <td align="right" class="linecount coveredLine"><pre>2023</pre></td>
2161
    <td align="left" class="src coveredLine"><pre>        if (packetSubType == TC_SUBTYPE_UPDT_TIME)</pre></td>
2162
    </tr>
2163

    
2164
    <tr>
2165
    <td align="right" class="lineno"><pre>267</pre></td>
2166
    <td align="right" class="linebranch"></td>
2167
    <td align="right" class="linecount "><pre></pre></td>
2168
    <td align="left" class="src "><pre>        {</pre></td>
2169
    </tr>
2170

    
2171
    <tr>
2172
    <td align="right" class="lineno"><pre>268</pre></td>
2173
    <td align="right" class="linebranch"></td>
2174
    <td align="right" class="linecount coveredLine"><pre>1957</pre></td>
2175
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2176
    </tr>
2177

    
2178
    <tr>
2179
    <td align="right" class="lineno"><pre>269</pre></td>
2180
    <td align="right" class="linebranch"></td>
2181
    <td align="right" class="linecount "><pre></pre></td>
2182
    <td align="left" class="src "><pre>        }</pre></td>
2183
    </tr>
2184

    
2185
    <tr>
2186
    <td align="right" class="lineno"><pre>270</pre></td>
2187
    <td align="right" class="linebranch"></td>
2188
    <td align="right" class="linecount "><pre></pre></td>
2189
    <td align="left" class="src "><pre>        else</pre></td>
2190
    </tr>
2191

    
2192
    <tr>
2193
    <td align="right" class="lineno"><pre>271</pre></td>
2194
    <td align="right" class="linebranch"></td>
2195
    <td align="right" class="linecount "><pre></pre></td>
2196
    <td align="left" class="src "><pre>        {</pre></td>
2197
    </tr>
2198

    
2199
    <tr>
2200
    <td align="right" class="lineno"><pre>272</pre></td>
2201
    <td align="right" class="linebranch"></td>
2202
    <td align="right" class="linecount coveredLine"><pre>66</pre></td>
2203
    <td align="left" class="src coveredLine"><pre>            status = ILL_SUBTYPE;</pre></td>
2204
    </tr>
2205

    
2206
    <tr>
2207
    <td align="right" class="lineno"><pre>273</pre></td>
2208
    <td align="right" class="linebranch"></td>
2209
    <td align="right" class="linecount "><pre></pre></td>
2210
    <td align="left" class="src "><pre>        }</pre></td>
2211
    </tr>
2212

    
2213
    <tr>
2214
    <td align="right" class="lineno"><pre>274</pre></td>
2215
    <td align="right" class="linebranch"></td>
2216
    <td align="right" class="linecount "><pre></pre></td>
2217
    <td align="left" class="src "><pre>        break;</pre></td>
2218
    </tr>
2219

    
2220
    <tr>
2221
    <td align="right" class="lineno"><pre>275</pre></td>
2222
    <td align="right" class="linebranch"></td>
2223
    <td align="right" class="linecount "><pre></pre></td>
2224
    <td align="left" class="src "><pre></pre></td>
2225
    </tr>
2226

    
2227
    <tr>
2228
    <td align="right" class="lineno"><pre>276</pre></td>
2229
    <td align="right" class="linebranch"></td>
2230
    <td align="right" class="linecount "><pre></pre></td>
2231
    <td align="left" class="src "><pre>    default:</pre></td>
2232
    </tr>
2233

    
2234
    <tr>
2235
    <td align="right" class="lineno"><pre>277</pre></td>
2236
    <td align="right" class="linebranch"></td>
2237
    <td align="right" class="linecount uncoveredLine"><pre></pre></td>
2238
    <td align="left" class="src uncoveredLine"><pre>        status = ILL_SUBTYPE;</pre></td>
2239
    </tr>
2240

    
2241
    <tr>
2242
    <td align="right" class="lineno"><pre>278</pre></td>
2243
    <td align="right" class="linebranch"></td>
2244
    <td align="right" class="linecount "><pre></pre></td>
2245
    <td align="left" class="src "><pre>        break;</pre></td>
2246
    </tr>
2247

    
2248
    <tr>
2249
    <td align="right" class="lineno"><pre>279</pre></td>
2250
    <td align="right" class="linebranch"></td>
2251
    <td align="right" class="linecount "><pre></pre></td>
2252
    <td align="left" class="src "><pre>    }</pre></td>
2253
    </tr>
2254

    
2255
    <tr>
2256
    <td align="right" class="lineno"><pre>280</pre></td>
2257
    <td align="right" class="linebranch"></td>
2258
    <td align="right" class="linecount "><pre></pre></td>
2259
    <td align="left" class="src "><pre></pre></td>
2260
    </tr>
2261

    
2262
    <tr>
2263
    <td align="right" class="lineno"><pre>281</pre></td>
2264
    <td align="right" class="linebranch"></td>
2265
    <td align="right" class="linecount coveredLine"><pre>33653</pre></td>
2266
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
2267
    </tr>
2268

    
2269
    <tr>
2270
    <td align="right" class="lineno"><pre>282</pre></td>
2271
    <td align="right" class="linebranch"></td>
2272
    <td align="right" class="linecount "><pre></pre></td>
2273
    <td align="left" class="src "><pre>}</pre></td>
2274
    </tr>
2275

    
2276
    <tr>
2277
    <td align="right" class="lineno"><pre>283</pre></td>
2278
    <td align="right" class="linebranch"></td>
2279
    <td align="right" class="linecount "><pre></pre></td>
2280
    <td align="left" class="src "><pre></pre></td>
2281
    </tr>
2282

    
2283
    <tr>
2284
    <td align="right" class="lineno"><pre>284</pre></td>
2285
    <td align="right" class="linebranch"></td>
2286
    <td align="right" class="linecount coveredLine"><pre>33521</pre></td>
2287
    <td align="left" class="src coveredLine"><pre>int tc_check_sid( unsigned char sid )</pre></td>
2288
    </tr>
2289

    
2290
    <tr>
2291
    <td align="right" class="lineno"><pre>285</pre></td>
2292
    <td align="right" class="linebranch"></td>
2293
    <td align="right" class="linecount "><pre></pre></td>
2294
    <td align="left" class="src "><pre>{</pre></td>
2295
    </tr>
2296

    
2297
    <tr>
2298
    <td align="right" class="lineno"><pre>286</pre></td>
2299
    <td align="right" class="linebranch"></td>
2300
    <td align="right" class="linecount "><pre></pre></td>
2301
    <td align="left" class="src "><pre>    /** This function checks that the sid of a TeleCommand is valid.</pre></td>
2302
    </tr>
2303

    
2304
    <tr>
2305
    <td align="right" class="lineno"><pre>287</pre></td>
2306
    <td align="right" class="linebranch"></td>
2307
    <td align="right" class="linecount "><pre></pre></td>
2308
    <td align="left" class="src "><pre>     *</pre></td>
2309
    </tr>
2310

    
2311
    <tr>
2312
    <td align="right" class="lineno"><pre>288</pre></td>
2313
    <td align="right" class="linebranch"></td>
2314
    <td align="right" class="linecount "><pre></pre></td>
2315
    <td align="left" class="src "><pre>     * @param sid is the sid to check.</pre></td>
2316
    </tr>
2317

    
2318
    <tr>
2319
    <td align="right" class="lineno"><pre>289</pre></td>
2320
    <td align="right" class="linebranch"></td>
2321
    <td align="right" class="linecount "><pre></pre></td>
2322
    <td align="left" class="src "><pre>     *</pre></td>
2323
    </tr>
2324

    
2325
    <tr>
2326
    <td align="right" class="lineno"><pre>290</pre></td>
2327
    <td align="right" class="linebranch"></td>
2328
    <td align="right" class="linecount "><pre></pre></td>
2329
    <td align="left" class="src "><pre>     * @return Status code CCSDS_TM_VALID or CORRUPTED.</pre></td>
2330
    </tr>
2331

    
2332
    <tr>
2333
    <td align="right" class="lineno"><pre>291</pre></td>
2334
    <td align="right" class="linebranch"></td>
2335
    <td align="right" class="linecount "><pre></pre></td>
2336
    <td align="left" class="src "><pre>     *</pre></td>
2337
    </tr>
2338

    
2339
    <tr>
2340
    <td align="right" class="lineno"><pre>292</pre></td>
2341
    <td align="right" class="linebranch"></td>
2342
    <td align="right" class="linecount "><pre></pre></td>
2343
    <td align="left" class="src "><pre>     */</pre></td>
2344
    </tr>
2345

    
2346
    <tr>
2347
    <td align="right" class="lineno"><pre>293</pre></td>
2348
    <td align="right" class="linebranch"></td>
2349
    <td align="right" class="linecount "><pre></pre></td>
2350
    <td align="left" class="src "><pre></pre></td>
2351
    </tr>
2352

    
2353
    <tr>
2354
    <td align="right" class="lineno"><pre>294</pre></td>
2355
    <td align="right" class="linebranch"></td>
2356
    <td align="right" class="linecount "><pre></pre></td>
2357
    <td align="left" class="src "><pre>    int status;</pre></td>
2358
    </tr>
2359

    
2360
    <tr>
2361
    <td align="right" class="lineno"><pre>295</pre></td>
2362
    <td align="right" class="linebranch"></td>
2363
    <td align="right" class="linecount "><pre></pre></td>
2364
    <td align="left" class="src "><pre></pre></td>
2365
    </tr>
2366

    
2367
    <tr>
2368
    <td align="right" class="lineno"><pre>296</pre></td>
2369
    <td align="right" class="linebranch"></td>
2370
    <td align="right" class="linecount coveredLine"><pre>33521</pre></td>
2371
    <td align="left" class="src coveredLine"><pre>    status = WRONG_SRC_ID;</pre></td>
2372
    </tr>
2373

    
2374
    <tr>
2375
    <td align="right" class="lineno"><pre>297</pre></td>
2376
    <td align="right" class="linebranch"></td>
2377
    <td align="right" class="linecount "><pre></pre></td>
2378
    <td align="left" class="src "><pre></pre></td>
2379
    </tr>
2380

    
2381
    <tr>
2382
    <td align="right" class="lineno"><pre>298</pre></td>
2383
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4528 times">&check;</span><span class="takenBranch" title="Branch 1 taken 28993 times">&check;</span><span class="takenBranch" title="Branch 2 taken 4279 times">&check;</span><span class="takenBranch" title="Branch 3 taken 249 times">&check;</span><br/><span class="takenBranch" title="Branch 4 taken 3978 times">&check;</span><span class="takenBranch" title="Branch 5 taken 301 times">&check;</span><span class="takenBranch" title="Branch 6 taken 695 times">&check;</span><span class="takenBranch" title="Branch 7 taken 3283 times">&check;</span><br/></td>
2384
    <td align="right" class="linecount coveredLine"><pre>76544</pre></td>
2385
    <td align="left" class="src coveredLine"><pre>    if ( (sid == SID_TC_MISSION_TIMELINE) || (sid == SID_TC_TC_SEQUENCES)   || (sid == SID_TC_RECOVERY_ACTION_CMD)</pre></td>
2386
    </tr>
2387

    
2388
    <tr>
2389
    <td align="right" class="lineno"><pre>299</pre></td>
2390
    <td align="right" class="linebranch"></td>
2391
    <td align="right" class="linecount "><pre></pre></td>
2392
    <td align="left" class="src "><pre>         || (sid == SID_TC_BACKUP_MISSION_TIMELINE)</pre></td>
2393
    </tr>
2394

    
2395
    <tr>
2396
    <td align="right" class="lineno"><pre>300</pre></td>
2397
    <td align="right" class="linebranch"></td>
2398
    <td align="right" class="linecount coveredLine"><pre>38049</pre></td>
2399
    <td align="left" class="src coveredLine"><pre>         || (sid == SID_TC_DIRECT_CMD)       || (sid == SID_TC_SPARE_GRD_SRC1) || (sid == SID_TC_SPARE_GRD_SRC2)</pre></td>
2400
    </tr>
2401

    
2402
    <tr>
2403
    <td align="right" class="lineno"><pre>301</pre></td>
2404
    <td align="right" class="linebranch"></td>
2405
    <td align="right" class="linecount coveredLine"><pre>8257</pre></td>
2406
    <td align="left" class="src coveredLine"><pre>         || (sid == SID_TC_OBCP)             || (sid == SID_TC_SYSTEM_CONTROL) || (sid == SID_TC_AOCS)</pre></td>
2407
    </tr>
2408

    
2409
    <tr>
2410
    <td align="right" class="lineno"><pre>302</pre></td>
2411
    <td align="right" class="linebranch"></td>
2412
    <td align="right" class="linecount coveredLine"><pre>3978</pre></td>
2413
    <td align="left" class="src coveredLine"><pre>         || (sid == SID_TC_RPW_INTERNAL))</pre></td>
2414
    </tr>
2415

    
2416
    <tr>
2417
    <td align="right" class="lineno"><pre>303</pre></td>
2418
    <td align="right" class="linebranch"></td>
2419
    <td align="right" class="linecount "><pre></pre></td>
2420
    <td align="left" class="src "><pre>    {</pre></td>
2421
    </tr>
2422

    
2423
    <tr>
2424
    <td align="right" class="lineno"><pre>304</pre></td>
2425
    <td align="right" class="linebranch"></td>
2426
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
2427
    <td align="left" class="src coveredLine"><pre>        status = CCSDS_TM_VALID;</pre></td>
2428
    </tr>
2429

    
2430
    <tr>
2431
    <td align="right" class="lineno"><pre>305</pre></td>
2432
    <td align="right" class="linebranch"></td>
2433
    <td align="right" class="linecount "><pre></pre></td>
2434
    <td align="left" class="src "><pre>    }</pre></td>
2435
    </tr>
2436

    
2437
    <tr>
2438
    <td align="right" class="lineno"><pre>306</pre></td>
2439
    <td align="right" class="linebranch"></td>
2440
    <td align="right" class="linecount "><pre></pre></td>
2441
    <td align="left" class="src "><pre>    else</pre></td>
2442
    </tr>
2443

    
2444
    <tr>
2445
    <td align="right" class="lineno"><pre>307</pre></td>
2446
    <td align="right" class="linebranch"></td>
2447
    <td align="right" class="linecount "><pre></pre></td>
2448
    <td align="left" class="src "><pre>    {</pre></td>
2449
    </tr>
2450

    
2451
    <tr>
2452
    <td align="right" class="lineno"><pre>308</pre></td>
2453
    <td align="right" class="linebranch"></td>
2454
    <td align="right" class="linecount coveredLine"><pre>3283</pre></td>
2455
    <td align="left" class="src coveredLine"><pre>        status = WRONG_SRC_ID;</pre></td>
2456
    </tr>
2457

    
2458
    <tr>
2459
    <td align="right" class="lineno"><pre>309</pre></td>
2460
    <td align="right" class="linebranch"></td>
2461
    <td align="right" class="linecount "><pre></pre></td>
2462
    <td align="left" class="src "><pre>    }</pre></td>
2463
    </tr>
2464

    
2465
    <tr>
2466
    <td align="right" class="lineno"><pre>310</pre></td>
2467
    <td align="right" class="linebranch"></td>
2468
    <td align="right" class="linecount "><pre></pre></td>
2469
    <td align="left" class="src "><pre></pre></td>
2470
    </tr>
2471

    
2472
    <tr>
2473
    <td align="right" class="lineno"><pre>311</pre></td>
2474
    <td align="right" class="linebranch"></td>
2475
    <td align="right" class="linecount coveredLine"><pre>33521</pre></td>
2476
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
2477
    </tr>
2478

    
2479
    <tr>
2480
    <td align="right" class="lineno"><pre>312</pre></td>
2481
    <td align="right" class="linebranch"></td>
2482
    <td align="right" class="linecount "><pre></pre></td>
2483
    <td align="left" class="src "><pre>}</pre></td>
2484
    </tr>
2485

    
2486
    <tr>
2487
    <td align="right" class="lineno"><pre>313</pre></td>
2488
    <td align="right" class="linebranch"></td>
2489
    <td align="right" class="linecount "><pre></pre></td>
2490
    <td align="left" class="src "><pre></pre></td>
2491
    </tr>
2492

    
2493
    <tr>
2494
    <td align="right" class="lineno"><pre>314</pre></td>
2495
    <td align="right" class="linebranch"></td>
2496
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
2497
    <td align="left" class="src coveredLine"><pre>int tc_check_length( unsigned char packetSubType, unsigned int length )</pre></td>
2498
    </tr>
2499

    
2500
    <tr>
2501
    <td align="right" class="lineno"><pre>315</pre></td>
2502
    <td align="right" class="linebranch"></td>
2503
    <td align="right" class="linecount "><pre></pre></td>
2504
    <td align="left" class="src "><pre>{</pre></td>
2505
    </tr>
2506

    
2507
    <tr>
2508
    <td align="right" class="lineno"><pre>316</pre></td>
2509
    <td align="right" class="linebranch"></td>
2510
    <td align="right" class="linecount "><pre></pre></td>
2511
    <td align="left" class="src "><pre>    /** This function checks that the subtype and the length are compliant.</pre></td>
2512
    </tr>
2513

    
2514
    <tr>
2515
    <td align="right" class="lineno"><pre>317</pre></td>
2516
    <td align="right" class="linebranch"></td>
2517
    <td align="right" class="linecount "><pre></pre></td>
2518
    <td align="left" class="src "><pre>     *</pre></td>
2519
    </tr>
2520

    
2521
    <tr>
2522
    <td align="right" class="lineno"><pre>318</pre></td>
2523
    <td align="right" class="linebranch"></td>
2524
    <td align="right" class="linecount "><pre></pre></td>
2525
    <td align="left" class="src "><pre>     * @param packetSubType is the subtype to check.</pre></td>
2526
    </tr>
2527

    
2528
    <tr>
2529
    <td align="right" class="lineno"><pre>319</pre></td>
2530
    <td align="right" class="linebranch"></td>
2531
    <td align="right" class="linecount "><pre></pre></td>
2532
    <td align="left" class="src "><pre>     * @param length is the length to check.</pre></td>
2533
    </tr>
2534

    
2535
    <tr>
2536
    <td align="right" class="lineno"><pre>320</pre></td>
2537
    <td align="right" class="linebranch"></td>
2538
    <td align="right" class="linecount "><pre></pre></td>
2539
    <td align="left" class="src "><pre>     *</pre></td>
2540
    </tr>
2541

    
2542
    <tr>
2543
    <td align="right" class="lineno"><pre>321</pre></td>
2544
    <td align="right" class="linebranch"></td>
2545
    <td align="right" class="linecount "><pre></pre></td>
2546
    <td align="left" class="src "><pre>     * @return Status code CCSDS_TM_VALID or ILL_TYPE.</pre></td>
2547
    </tr>
2548

    
2549
    <tr>
2550
    <td align="right" class="lineno"><pre>322</pre></td>
2551
    <td align="right" class="linebranch"></td>
2552
    <td align="right" class="linecount "><pre></pre></td>
2553
    <td align="left" class="src "><pre>     *</pre></td>
2554
    </tr>
2555

    
2556
    <tr>
2557
    <td align="right" class="lineno"><pre>323</pre></td>
2558
    <td align="right" class="linebranch"></td>
2559
    <td align="right" class="linecount "><pre></pre></td>
2560
    <td align="left" class="src "><pre>     */</pre></td>
2561
    </tr>
2562

    
2563
    <tr>
2564
    <td align="right" class="lineno"><pre>324</pre></td>
2565
    <td align="right" class="linebranch"></td>
2566
    <td align="right" class="linecount "><pre></pre></td>
2567
    <td align="left" class="src "><pre></pre></td>
2568
    </tr>
2569

    
2570
    <tr>
2571
    <td align="right" class="lineno"><pre>325</pre></td>
2572
    <td align="right" class="linebranch"></td>
2573
    <td align="right" class="linecount "><pre></pre></td>
2574
    <td align="left" class="src "><pre>    int status;</pre></td>
2575
    </tr>
2576

    
2577
    <tr>
2578
    <td align="right" class="lineno"><pre>326</pre></td>
2579
    <td align="right" class="linebranch"></td>
2580
    <td align="right" class="linecount "><pre></pre></td>
2581
    <td align="left" class="src "><pre></pre></td>
2582
    </tr>
2583

    
2584
    <tr>
2585
    <td align="right" class="lineno"><pre>327</pre></td>
2586
    <td align="right" class="linebranch"></td>
2587
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
2588
    <td align="left" class="src coveredLine"><pre>    status = LFR_SUCCESSFUL;</pre></td>
2589
    </tr>
2590

    
2591
    <tr>
2592
    <td align="right" class="lineno"><pre>328</pre></td>
2593
    <td align="right" class="linebranch"></td>
2594
    <td align="right" class="linecount "><pre></pre></td>
2595
    <td align="left" class="src "><pre></pre></td>
2596
    </tr>
2597

    
2598
    <tr>
2599
    <td align="right" class="lineno"><pre>329</pre></td>
2600
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 105 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1438 times">&check;</span><span class="takenBranch" title="Branch 2 taken 1284 times">&check;</span><span class="takenBranch" title="Branch 3 taken 1237 times">&check;</span><br/><span class="takenBranch" title="Branch 4 taken 1239 times">&check;</span><span class="takenBranch" title="Branch 5 taken 1239 times">&check;</span><span class="takenBranch" title="Branch 6 taken 1675 times">&check;</span><span class="takenBranch" title="Branch 7 taken 10749 times">&check;</span><br/><span class="takenBranch" title="Branch 8 taken 1323 times">&check;</span><span class="takenBranch" title="Branch 9 taken 1211 times">&check;</span><span class="takenBranch" title="Branch 10 taken 1211 times">&check;</span><span class="takenBranch" title="Branch 11 taken 1555 times">&check;</span><br/><span class="takenBranch" title="Branch 12 taken 1554 times">&check;</span><span class="takenBranch" title="Branch 13 taken 1212 times">&check;</span><span class="takenBranch" title="Branch 14 taken 1254 times">&check;</span><span class="takenBranch" title="Branch 15 taken 1952 times">&check;</span><br/><span class="notTakenBranch" title="Branch 16 not taken">&cross;</span></td>
2601
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
2602
    <td align="left" class="src coveredLine"><pre>    switch(packetSubType)</pre></td>
2603
    </tr>
2604

    
2605
    <tr>
2606
    <td align="right" class="lineno"><pre>330</pre></td>
2607
    <td align="right" class="linebranch"></td>
2608
    <td align="right" class="linecount "><pre></pre></td>
2609
    <td align="left" class="src "><pre>    {</pre></td>
2610
    </tr>
2611

    
2612
    <tr>
2613
    <td align="right" class="lineno"><pre>331</pre></td>
2614
    <td align="right" class="linebranch"></td>
2615
    <td align="right" class="linecount "><pre></pre></td>
2616
    <td align="left" class="src "><pre>    case TC_SUBTYPE_RESET:</pre></td>
2617
    </tr>
2618

    
2619
    <tr>
2620
    <td align="right" class="lineno"><pre>332</pre></td>
2621
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 101 times">&check;</span></td>
2622
    <td align="right" class="linecount coveredLine"><pre>105</pre></td>
2623
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_RESET-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2624
    </tr>
2625

    
2626
    <tr>
2627
    <td align="right" class="lineno"><pre>333</pre></td>
2628
    <td align="right" class="linebranch"></td>
2629
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2630
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2631
    </tr>
2632

    
2633
    <tr>
2634
    <td align="right" class="lineno"><pre>334</pre></td>
2635
    <td align="right" class="linebranch"></td>
2636
    <td align="right" class="linecount "><pre></pre></td>
2637
    <td align="left" class="src "><pre>        }</pre></td>
2638
    </tr>
2639

    
2640
    <tr>
2641
    <td align="right" class="lineno"><pre>335</pre></td>
2642
    <td align="right" class="linebranch"></td>
2643
    <td align="right" class="linecount "><pre></pre></td>
2644
    <td align="left" class="src "><pre>        else {</pre></td>
2645
    </tr>
2646

    
2647
    <tr>
2648
    <td align="right" class="lineno"><pre>336</pre></td>
2649
    <td align="right" class="linebranch"></td>
2650
    <td align="right" class="linecount coveredLine"><pre>101</pre></td>
2651
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2652
    </tr>
2653

    
2654
    <tr>
2655
    <td align="right" class="lineno"><pre>337</pre></td>
2656
    <td align="right" class="linebranch"></td>
2657
    <td align="right" class="linecount "><pre></pre></td>
2658
    <td align="left" class="src "><pre>        }</pre></td>
2659
    </tr>
2660

    
2661
    <tr>
2662
    <td align="right" class="lineno"><pre>338</pre></td>
2663
    <td align="right" class="linebranch"></td>
2664
    <td align="right" class="linecount "><pre></pre></td>
2665
    <td align="left" class="src "><pre>        break;</pre></td>
2666
    </tr>
2667

    
2668
    <tr>
2669
    <td align="right" class="lineno"><pre>339</pre></td>
2670
    <td align="right" class="linebranch"></td>
2671
    <td align="right" class="linecount "><pre></pre></td>
2672
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_COMM:</pre></td>
2673
    </tr>
2674

    
2675
    <tr>
2676
    <td align="right" class="lineno"><pre>340</pre></td>
2677
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1434 times">&check;</span></td>
2678
    <td align="right" class="linecount coveredLine"><pre>1438</pre></td>
2679
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_COMM-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2680
    </tr>
2681

    
2682
    <tr>
2683
    <td align="right" class="lineno"><pre>341</pre></td>
2684
    <td align="right" class="linebranch"></td>
2685
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2686
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2687
    </tr>
2688

    
2689
    <tr>
2690
    <td align="right" class="lineno"><pre>342</pre></td>
2691
    <td align="right" class="linebranch"></td>
2692
    <td align="right" class="linecount "><pre></pre></td>
2693
    <td align="left" class="src "><pre>        }</pre></td>
2694
    </tr>
2695

    
2696
    <tr>
2697
    <td align="right" class="lineno"><pre>343</pre></td>
2698
    <td align="right" class="linebranch"></td>
2699
    <td align="right" class="linecount "><pre></pre></td>
2700
    <td align="left" class="src "><pre>        else {</pre></td>
2701
    </tr>
2702

    
2703
    <tr>
2704
    <td align="right" class="lineno"><pre>344</pre></td>
2705
    <td align="right" class="linebranch"></td>
2706
    <td align="right" class="linecount coveredLine"><pre>1434</pre></td>
2707
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2708
    </tr>
2709

    
2710
    <tr>
2711
    <td align="right" class="lineno"><pre>345</pre></td>
2712
    <td align="right" class="linebranch"></td>
2713
    <td align="right" class="linecount "><pre></pre></td>
2714
    <td align="left" class="src "><pre>        }</pre></td>
2715
    </tr>
2716

    
2717
    <tr>
2718
    <td align="right" class="lineno"><pre>346</pre></td>
2719
    <td align="right" class="linebranch"></td>
2720
    <td align="right" class="linecount "><pre></pre></td>
2721
    <td align="left" class="src "><pre>        break;</pre></td>
2722
    </tr>
2723

    
2724
    <tr>
2725
    <td align="right" class="lineno"><pre>347</pre></td>
2726
    <td align="right" class="linebranch"></td>
2727
    <td align="right" class="linecount "><pre></pre></td>
2728
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_NORM:</pre></td>
2729
    </tr>
2730

    
2731
    <tr>
2732
    <td align="right" class="lineno"><pre>348</pre></td>
2733
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1280 times">&check;</span></td>
2734
    <td align="right" class="linecount coveredLine"><pre>1284</pre></td>
2735
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_NORM-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2736
    </tr>
2737

    
2738
    <tr>
2739
    <td align="right" class="lineno"><pre>349</pre></td>
2740
    <td align="right" class="linebranch"></td>
2741
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2742
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2743
    </tr>
2744

    
2745
    <tr>
2746
    <td align="right" class="lineno"><pre>350</pre></td>
2747
    <td align="right" class="linebranch"></td>
2748
    <td align="right" class="linecount "><pre></pre></td>
2749
    <td align="left" class="src "><pre>        }</pre></td>
2750
    </tr>
2751

    
2752
    <tr>
2753
    <td align="right" class="lineno"><pre>351</pre></td>
2754
    <td align="right" class="linebranch"></td>
2755
    <td align="right" class="linecount "><pre></pre></td>
2756
    <td align="left" class="src "><pre>        else {</pre></td>
2757
    </tr>
2758

    
2759
    <tr>
2760
    <td align="right" class="lineno"><pre>352</pre></td>
2761
    <td align="right" class="linebranch"></td>
2762
    <td align="right" class="linecount coveredLine"><pre>1280</pre></td>
2763
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2764
    </tr>
2765

    
2766
    <tr>
2767
    <td align="right" class="lineno"><pre>353</pre></td>
2768
    <td align="right" class="linebranch"></td>
2769
    <td align="right" class="linecount "><pre></pre></td>
2770
    <td align="left" class="src "><pre>        }</pre></td>
2771
    </tr>
2772

    
2773
    <tr>
2774
    <td align="right" class="lineno"><pre>354</pre></td>
2775
    <td align="right" class="linebranch"></td>
2776
    <td align="right" class="linecount "><pre></pre></td>
2777
    <td align="left" class="src "><pre>        break;</pre></td>
2778
    </tr>
2779

    
2780
    <tr>
2781
    <td align="right" class="lineno"><pre>355</pre></td>
2782
    <td align="right" class="linebranch"></td>
2783
    <td align="right" class="linecount "><pre></pre></td>
2784
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_BURST:</pre></td>
2785
    </tr>
2786

    
2787
    <tr>
2788
    <td align="right" class="lineno"><pre>356</pre></td>
2789
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1233 times">&check;</span></td>
2790
    <td align="right" class="linecount coveredLine"><pre>1237</pre></td>
2791
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_BURST-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2792
    </tr>
2793

    
2794
    <tr>
2795
    <td align="right" class="lineno"><pre>357</pre></td>
2796
    <td align="right" class="linebranch"></td>
2797
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2798
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2799
    </tr>
2800

    
2801
    <tr>
2802
    <td align="right" class="lineno"><pre>358</pre></td>
2803
    <td align="right" class="linebranch"></td>
2804
    <td align="right" class="linecount "><pre></pre></td>
2805
    <td align="left" class="src "><pre>        }</pre></td>
2806
    </tr>
2807

    
2808
    <tr>
2809
    <td align="right" class="lineno"><pre>359</pre></td>
2810
    <td align="right" class="linebranch"></td>
2811
    <td align="right" class="linecount "><pre></pre></td>
2812
    <td align="left" class="src "><pre>        else {</pre></td>
2813
    </tr>
2814

    
2815
    <tr>
2816
    <td align="right" class="lineno"><pre>360</pre></td>
2817
    <td align="right" class="linebranch"></td>
2818
    <td align="right" class="linecount coveredLine"><pre>1233</pre></td>
2819
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2820
    </tr>
2821

    
2822
    <tr>
2823
    <td align="right" class="lineno"><pre>361</pre></td>
2824
    <td align="right" class="linebranch"></td>
2825
    <td align="right" class="linecount "><pre></pre></td>
2826
    <td align="left" class="src "><pre>        }</pre></td>
2827
    </tr>
2828

    
2829
    <tr>
2830
    <td align="right" class="lineno"><pre>362</pre></td>
2831
    <td align="right" class="linebranch"></td>
2832
    <td align="right" class="linecount "><pre></pre></td>
2833
    <td align="left" class="src "><pre>        break;</pre></td>
2834
    </tr>
2835

    
2836
    <tr>
2837
    <td align="right" class="lineno"><pre>363</pre></td>
2838
    <td align="right" class="linebranch"></td>
2839
    <td align="right" class="linecount "><pre></pre></td>
2840
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_SBM1:</pre></td>
2841
    </tr>
2842

    
2843
    <tr>
2844
    <td align="right" class="lineno"><pre>364</pre></td>
2845
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1235 times">&check;</span></td>
2846
    <td align="right" class="linecount coveredLine"><pre>1239</pre></td>
2847
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_SBM1-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2848
    </tr>
2849

    
2850
    <tr>
2851
    <td align="right" class="lineno"><pre>365</pre></td>
2852
    <td align="right" class="linebranch"></td>
2853
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2854
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2855
    </tr>
2856

    
2857
    <tr>
2858
    <td align="right" class="lineno"><pre>366</pre></td>
2859
    <td align="right" class="linebranch"></td>
2860
    <td align="right" class="linecount "><pre></pre></td>
2861
    <td align="left" class="src "><pre>        }</pre></td>
2862
    </tr>
2863

    
2864
    <tr>
2865
    <td align="right" class="lineno"><pre>367</pre></td>
2866
    <td align="right" class="linebranch"></td>
2867
    <td align="right" class="linecount "><pre></pre></td>
2868
    <td align="left" class="src "><pre>        else {</pre></td>
2869
    </tr>
2870

    
2871
    <tr>
2872
    <td align="right" class="lineno"><pre>368</pre></td>
2873
    <td align="right" class="linebranch"></td>
2874
    <td align="right" class="linecount coveredLine"><pre>1235</pre></td>
2875
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2876
    </tr>
2877

    
2878
    <tr>
2879
    <td align="right" class="lineno"><pre>369</pre></td>
2880
    <td align="right" class="linebranch"></td>
2881
    <td align="right" class="linecount "><pre></pre></td>
2882
    <td align="left" class="src "><pre>        }</pre></td>
2883
    </tr>
2884

    
2885
    <tr>
2886
    <td align="right" class="lineno"><pre>370</pre></td>
2887
    <td align="right" class="linebranch"></td>
2888
    <td align="right" class="linecount "><pre></pre></td>
2889
    <td align="left" class="src "><pre>        break;</pre></td>
2890
    </tr>
2891

    
2892
    <tr>
2893
    <td align="right" class="lineno"><pre>371</pre></td>
2894
    <td align="right" class="linebranch"></td>
2895
    <td align="right" class="linecount "><pre></pre></td>
2896
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_SBM2:</pre></td>
2897
    </tr>
2898

    
2899
    <tr>
2900
    <td align="right" class="lineno"><pre>372</pre></td>
2901
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1235 times">&check;</span></td>
2902
    <td align="right" class="linecount coveredLine"><pre>1239</pre></td>
2903
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_SBM2-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2904
    </tr>
2905

    
2906
    <tr>
2907
    <td align="right" class="lineno"><pre>373</pre></td>
2908
    <td align="right" class="linebranch"></td>
2909
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2910
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2911
    </tr>
2912

    
2913
    <tr>
2914
    <td align="right" class="lineno"><pre>374</pre></td>
2915
    <td align="right" class="linebranch"></td>
2916
    <td align="right" class="linecount "><pre></pre></td>
2917
    <td align="left" class="src "><pre>        }</pre></td>
2918
    </tr>
2919

    
2920
    <tr>
2921
    <td align="right" class="lineno"><pre>375</pre></td>
2922
    <td align="right" class="linebranch"></td>
2923
    <td align="right" class="linecount "><pre></pre></td>
2924
    <td align="left" class="src "><pre>        else {</pre></td>
2925
    </tr>
2926

    
2927
    <tr>
2928
    <td align="right" class="lineno"><pre>376</pre></td>
2929
    <td align="right" class="linebranch"></td>
2930
    <td align="right" class="linecount coveredLine"><pre>1235</pre></td>
2931
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2932
    </tr>
2933

    
2934
    <tr>
2935
    <td align="right" class="lineno"><pre>377</pre></td>
2936
    <td align="right" class="linebranch"></td>
2937
    <td align="right" class="linecount "><pre></pre></td>
2938
    <td align="left" class="src "><pre>        }</pre></td>
2939
    </tr>
2940

    
2941
    <tr>
2942
    <td align="right" class="lineno"><pre>378</pre></td>
2943
    <td align="right" class="linebranch"></td>
2944
    <td align="right" class="linecount "><pre></pre></td>
2945
    <td align="left" class="src "><pre>        break;</pre></td>
2946
    </tr>
2947

    
2948
    <tr>
2949
    <td align="right" class="lineno"><pre>379</pre></td>
2950
    <td align="right" class="linebranch"></td>
2951
    <td align="right" class="linecount "><pre></pre></td>
2952
    <td align="left" class="src "><pre>    case TC_SUBTYPE_DUMP:</pre></td>
2953
    </tr>
2954

    
2955
    <tr>
2956
    <td align="right" class="lineno"><pre>380</pre></td>
2957
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1671 times">&check;</span></td>
2958
    <td align="right" class="linecount coveredLine"><pre>1675</pre></td>
2959
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_DUMP-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
2960
    </tr>
2961

    
2962
    <tr>
2963
    <td align="right" class="lineno"><pre>381</pre></td>
2964
    <td align="right" class="linebranch"></td>
2965
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
2966
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
2967
    </tr>
2968

    
2969
    <tr>
2970
    <td align="right" class="lineno"><pre>382</pre></td>
2971
    <td align="right" class="linebranch"></td>
2972
    <td align="right" class="linecount "><pre></pre></td>
2973
    <td align="left" class="src "><pre>        }</pre></td>
2974
    </tr>
2975

    
2976
    <tr>
2977
    <td align="right" class="lineno"><pre>383</pre></td>
2978
    <td align="right" class="linebranch"></td>
2979
    <td align="right" class="linecount "><pre></pre></td>
2980
    <td align="left" class="src "><pre>        else {</pre></td>
2981
    </tr>
2982

    
2983
    <tr>
2984
    <td align="right" class="lineno"><pre>384</pre></td>
2985
    <td align="right" class="linebranch"></td>
2986
    <td align="right" class="linecount coveredLine"><pre>1671</pre></td>
2987
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
2988
    </tr>
2989

    
2990
    <tr>
2991
    <td align="right" class="lineno"><pre>385</pre></td>
2992
    <td align="right" class="linebranch"></td>
2993
    <td align="right" class="linecount "><pre></pre></td>
2994
    <td align="left" class="src "><pre>        }</pre></td>
2995
    </tr>
2996

    
2997
    <tr>
2998
    <td align="right" class="lineno"><pre>386</pre></td>
2999
    <td align="right" class="linebranch"></td>
3000
    <td align="right" class="linecount "><pre></pre></td>
3001
    <td align="left" class="src "><pre>        break;</pre></td>
3002
    </tr>
3003

    
3004
    <tr>
3005
    <td align="right" class="lineno"><pre>387</pre></td>
3006
    <td align="right" class="linebranch"></td>
3007
    <td align="right" class="linecount "><pre></pre></td>
3008
    <td align="left" class="src "><pre>    case TC_SUBTYPE_ENTER:</pre></td>
3009
    </tr>
3010

    
3011
    <tr>
3012
    <td align="right" class="lineno"><pre>388</pre></td>
3013
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 10745 times">&check;</span></td>
3014
    <td align="right" class="linecount coveredLine"><pre>10749</pre></td>
3015
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_ENTER-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3016
    </tr>
3017

    
3018
    <tr>
3019
    <td align="right" class="lineno"><pre>389</pre></td>
3020
    <td align="right" class="linebranch"></td>
3021
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3022
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3023
    </tr>
3024

    
3025
    <tr>
3026
    <td align="right" class="lineno"><pre>390</pre></td>
3027
    <td align="right" class="linebranch"></td>
3028
    <td align="right" class="linecount "><pre></pre></td>
3029
    <td align="left" class="src "><pre>        }</pre></td>
3030
    </tr>
3031

    
3032
    <tr>
3033
    <td align="right" class="lineno"><pre>391</pre></td>
3034
    <td align="right" class="linebranch"></td>
3035
    <td align="right" class="linecount "><pre></pre></td>
3036
    <td align="left" class="src "><pre>        else {</pre></td>
3037
    </tr>
3038

    
3039
    <tr>
3040
    <td align="right" class="lineno"><pre>392</pre></td>
3041
    <td align="right" class="linebranch"></td>
3042
    <td align="right" class="linecount coveredLine"><pre>10745</pre></td>
3043
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3044
    </tr>
3045

    
3046
    <tr>
3047
    <td align="right" class="lineno"><pre>393</pre></td>
3048
    <td align="right" class="linebranch"></td>
3049
    <td align="right" class="linecount "><pre></pre></td>
3050
    <td align="left" class="src "><pre>        }</pre></td>
3051
    </tr>
3052

    
3053
    <tr>
3054
    <td align="right" class="lineno"><pre>394</pre></td>
3055
    <td align="right" class="linebranch"></td>
3056
    <td align="right" class="linecount "><pre></pre></td>
3057
    <td align="left" class="src "><pre>        break;</pre></td>
3058
    </tr>
3059

    
3060
    <tr>
3061
    <td align="right" class="lineno"><pre>395</pre></td>
3062
    <td align="right" class="linebranch"></td>
3063
    <td align="right" class="linecount "><pre></pre></td>
3064
    <td align="left" class="src "><pre>    case TC_SUBTYPE_UPDT_INFO:</pre></td>
3065
    </tr>
3066

    
3067
    <tr>
3068
    <td align="right" class="lineno"><pre>396</pre></td>
3069
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 1 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1322 times">&check;</span></td>
3070
    <td align="right" class="linecount coveredLine"><pre>1323</pre></td>
3071
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_UPDT_INFO-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3072
    </tr>
3073

    
3074
    <tr>
3075
    <td align="right" class="lineno"><pre>397</pre></td>
3076
    <td align="right" class="linebranch"></td>
3077
    <td align="right" class="linecount coveredLine"><pre>1</pre></td>
3078
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3079
    </tr>
3080

    
3081
    <tr>
3082
    <td align="right" class="lineno"><pre>398</pre></td>
3083
    <td align="right" class="linebranch"></td>
3084
    <td align="right" class="linecount "><pre></pre></td>
3085
    <td align="left" class="src "><pre>        }</pre></td>
3086
    </tr>
3087

    
3088
    <tr>
3089
    <td align="right" class="lineno"><pre>399</pre></td>
3090
    <td align="right" class="linebranch"></td>
3091
    <td align="right" class="linecount "><pre></pre></td>
3092
    <td align="left" class="src "><pre>        else {</pre></td>
3093
    </tr>
3094

    
3095
    <tr>
3096
    <td align="right" class="lineno"><pre>400</pre></td>
3097
    <td align="right" class="linebranch"></td>
3098
    <td align="right" class="linecount coveredLine"><pre>1322</pre></td>
3099
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3100
    </tr>
3101

    
3102
    <tr>
3103
    <td align="right" class="lineno"><pre>401</pre></td>
3104
    <td align="right" class="linebranch"></td>
3105
    <td align="right" class="linecount "><pre></pre></td>
3106
    <td align="left" class="src "><pre>        }</pre></td>
3107
    </tr>
3108

    
3109
    <tr>
3110
    <td align="right" class="lineno"><pre>402</pre></td>
3111
    <td align="right" class="linebranch"></td>
3112
    <td align="right" class="linecount "><pre></pre></td>
3113
    <td align="left" class="src "><pre>        break;</pre></td>
3114
    </tr>
3115

    
3116
    <tr>
3117
    <td align="right" class="lineno"><pre>403</pre></td>
3118
    <td align="right" class="linebranch"></td>
3119
    <td align="right" class="linecount "><pre></pre></td>
3120
    <td align="left" class="src "><pre>    case TC_SUBTYPE_EN_CAL:</pre></td>
3121
    </tr>
3122

    
3123
    <tr>
3124
    <td align="right" class="lineno"><pre>404</pre></td>
3125
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1207 times">&check;</span></td>
3126
    <td align="right" class="linecount coveredLine"><pre>1211</pre></td>
3127
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_EN_CAL-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3128
    </tr>
3129

    
3130
    <tr>
3131
    <td align="right" class="lineno"><pre>405</pre></td>
3132
    <td align="right" class="linebranch"></td>
3133
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3134
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3135
    </tr>
3136

    
3137
    <tr>
3138
    <td align="right" class="lineno"><pre>406</pre></td>
3139
    <td align="right" class="linebranch"></td>
3140
    <td align="right" class="linecount "><pre></pre></td>
3141
    <td align="left" class="src "><pre>        }</pre></td>
3142
    </tr>
3143

    
3144
    <tr>
3145
    <td align="right" class="lineno"><pre>407</pre></td>
3146
    <td align="right" class="linebranch"></td>
3147
    <td align="right" class="linecount "><pre></pre></td>
3148
    <td align="left" class="src "><pre>        else {</pre></td>
3149
    </tr>
3150

    
3151
    <tr>
3152
    <td align="right" class="lineno"><pre>408</pre></td>
3153
    <td align="right" class="linebranch"></td>
3154
    <td align="right" class="linecount coveredLine"><pre>1207</pre></td>
3155
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3156
    </tr>
3157

    
3158
    <tr>
3159
    <td align="right" class="lineno"><pre>409</pre></td>
3160
    <td align="right" class="linebranch"></td>
3161
    <td align="right" class="linecount "><pre></pre></td>
3162
    <td align="left" class="src "><pre>        }</pre></td>
3163
    </tr>
3164

    
3165
    <tr>
3166
    <td align="right" class="lineno"><pre>410</pre></td>
3167
    <td align="right" class="linebranch"></td>
3168
    <td align="right" class="linecount "><pre></pre></td>
3169
    <td align="left" class="src "><pre>        break;</pre></td>
3170
    </tr>
3171

    
3172
    <tr>
3173
    <td align="right" class="lineno"><pre>411</pre></td>
3174
    <td align="right" class="linebranch"></td>
3175
    <td align="right" class="linecount "><pre></pre></td>
3176
    <td align="left" class="src "><pre>    case TC_SUBTYPE_DIS_CAL:</pre></td>
3177
    </tr>
3178

    
3179
    <tr>
3180
    <td align="right" class="lineno"><pre>412</pre></td>
3181
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1207 times">&check;</span></td>
3182
    <td align="right" class="linecount coveredLine"><pre>1211</pre></td>
3183
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_DIS_CAL-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3184
    </tr>
3185

    
3186
    <tr>
3187
    <td align="right" class="lineno"><pre>413</pre></td>
3188
    <td align="right" class="linebranch"></td>
3189
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3190
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3191
    </tr>
3192

    
3193
    <tr>
3194
    <td align="right" class="lineno"><pre>414</pre></td>
3195
    <td align="right" class="linebranch"></td>
3196
    <td align="right" class="linecount "><pre></pre></td>
3197
    <td align="left" class="src "><pre>        }</pre></td>
3198
    </tr>
3199

    
3200
    <tr>
3201
    <td align="right" class="lineno"><pre>415</pre></td>
3202
    <td align="right" class="linebranch"></td>
3203
    <td align="right" class="linecount "><pre></pre></td>
3204
    <td align="left" class="src "><pre>        else {</pre></td>
3205
    </tr>
3206

    
3207
    <tr>
3208
    <td align="right" class="lineno"><pre>416</pre></td>
3209
    <td align="right" class="linebranch"></td>
3210
    <td align="right" class="linecount coveredLine"><pre>1207</pre></td>
3211
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3212
    </tr>
3213

    
3214
    <tr>
3215
    <td align="right" class="lineno"><pre>417</pre></td>
3216
    <td align="right" class="linebranch"></td>
3217
    <td align="right" class="linecount "><pre></pre></td>
3218
    <td align="left" class="src "><pre>        }</pre></td>
3219
    </tr>
3220

    
3221
    <tr>
3222
    <td align="right" class="lineno"><pre>418</pre></td>
3223
    <td align="right" class="linebranch"></td>
3224
    <td align="right" class="linecount "><pre></pre></td>
3225
    <td align="left" class="src "><pre>        break;</pre></td>
3226
    </tr>
3227

    
3228
    <tr>
3229
    <td align="right" class="lineno"><pre>419</pre></td>
3230
    <td align="right" class="linebranch"></td>
3231
    <td align="right" class="linecount "><pre></pre></td>
3232
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_K:</pre></td>
3233
    </tr>
3234

    
3235
    <tr>
3236
    <td align="right" class="lineno"><pre>420</pre></td>
3237
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1551 times">&check;</span></td>
3238
    <td align="right" class="linecount coveredLine"><pre>1555</pre></td>
3239
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_K-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3240
    </tr>
3241

    
3242
    <tr>
3243
    <td align="right" class="lineno"><pre>421</pre></td>
3244
    <td align="right" class="linebranch"></td>
3245
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3246
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3247
    </tr>
3248

    
3249
    <tr>
3250
    <td align="right" class="lineno"><pre>422</pre></td>
3251
    <td align="right" class="linebranch"></td>
3252
    <td align="right" class="linecount "><pre></pre></td>
3253
    <td align="left" class="src "><pre>        }</pre></td>
3254
    </tr>
3255

    
3256
    <tr>
3257
    <td align="right" class="lineno"><pre>423</pre></td>
3258
    <td align="right" class="linebranch"></td>
3259
    <td align="right" class="linecount "><pre></pre></td>
3260
    <td align="left" class="src "><pre>        else {</pre></td>
3261
    </tr>
3262

    
3263
    <tr>
3264
    <td align="right" class="lineno"><pre>424</pre></td>
3265
    <td align="right" class="linebranch"></td>
3266
    <td align="right" class="linecount coveredLine"><pre>1551</pre></td>
3267
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3268
    </tr>
3269

    
3270
    <tr>
3271
    <td align="right" class="lineno"><pre>425</pre></td>
3272
    <td align="right" class="linebranch"></td>
3273
    <td align="right" class="linecount "><pre></pre></td>
3274
    <td align="left" class="src "><pre>        }</pre></td>
3275
    </tr>
3276

    
3277
    <tr>
3278
    <td align="right" class="lineno"><pre>426</pre></td>
3279
    <td align="right" class="linebranch"></td>
3280
    <td align="right" class="linecount "><pre></pre></td>
3281
    <td align="left" class="src "><pre>        break;</pre></td>
3282
    </tr>
3283

    
3284
    <tr>
3285
    <td align="right" class="lineno"><pre>427</pre></td>
3286
    <td align="right" class="linebranch"></td>
3287
    <td align="right" class="linecount "><pre></pre></td>
3288
    <td align="left" class="src "><pre>    case TC_SUBTYPE_DUMP_K:</pre></td>
3289
    </tr>
3290

    
3291
    <tr>
3292
    <td align="right" class="lineno"><pre>428</pre></td>
3293
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1550 times">&check;</span></td>
3294
    <td align="right" class="linecount coveredLine"><pre>1554</pre></td>
3295
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_DUMP_K-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3296
    </tr>
3297

    
3298
    <tr>
3299
    <td align="right" class="lineno"><pre>429</pre></td>
3300
    <td align="right" class="linebranch"></td>
3301
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3302
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3303
    </tr>
3304

    
3305
    <tr>
3306
    <td align="right" class="lineno"><pre>430</pre></td>
3307
    <td align="right" class="linebranch"></td>
3308
    <td align="right" class="linecount "><pre></pre></td>
3309
    <td align="left" class="src "><pre>        }</pre></td>
3310
    </tr>
3311

    
3312
    <tr>
3313
    <td align="right" class="lineno"><pre>431</pre></td>
3314
    <td align="right" class="linebranch"></td>
3315
    <td align="right" class="linecount "><pre></pre></td>
3316
    <td align="left" class="src "><pre>        else {</pre></td>
3317
    </tr>
3318

    
3319
    <tr>
3320
    <td align="right" class="lineno"><pre>432</pre></td>
3321
    <td align="right" class="linebranch"></td>
3322
    <td align="right" class="linecount coveredLine"><pre>1550</pre></td>
3323
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3324
    </tr>
3325

    
3326
    <tr>
3327
    <td align="right" class="lineno"><pre>433</pre></td>
3328
    <td align="right" class="linebranch"></td>
3329
    <td align="right" class="linecount "><pre></pre></td>
3330
    <td align="left" class="src "><pre>        }</pre></td>
3331
    </tr>
3332

    
3333
    <tr>
3334
    <td align="right" class="lineno"><pre>434</pre></td>
3335
    <td align="right" class="linebranch"></td>
3336
    <td align="right" class="linecount "><pre></pre></td>
3337
    <td align="left" class="src "><pre>        break;</pre></td>
3338
    </tr>
3339

    
3340
    <tr>
3341
    <td align="right" class="lineno"><pre>435</pre></td>
3342
    <td align="right" class="linebranch"></td>
3343
    <td align="right" class="linecount "><pre></pre></td>
3344
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_FBINS:</pre></td>
3345
    </tr>
3346

    
3347
    <tr>
3348
    <td align="right" class="lineno"><pre>436</pre></td>
3349
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1208 times">&check;</span></td>
3350
    <td align="right" class="linecount coveredLine"><pre>1212</pre></td>
3351
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_FBINS-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3352
    </tr>
3353

    
3354
    <tr>
3355
    <td align="right" class="lineno"><pre>437</pre></td>
3356
    <td align="right" class="linebranch"></td>
3357
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3358
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3359
    </tr>
3360

    
3361
    <tr>
3362
    <td align="right" class="lineno"><pre>438</pre></td>
3363
    <td align="right" class="linebranch"></td>
3364
    <td align="right" class="linecount "><pre></pre></td>
3365
    <td align="left" class="src "><pre>        }</pre></td>
3366
    </tr>
3367

    
3368
    <tr>
3369
    <td align="right" class="lineno"><pre>439</pre></td>
3370
    <td align="right" class="linebranch"></td>
3371
    <td align="right" class="linecount "><pre></pre></td>
3372
    <td align="left" class="src "><pre>        else {</pre></td>
3373
    </tr>
3374

    
3375
    <tr>
3376
    <td align="right" class="lineno"><pre>440</pre></td>
3377
    <td align="right" class="linebranch"></td>
3378
    <td align="right" class="linecount coveredLine"><pre>1208</pre></td>
3379
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3380
    </tr>
3381

    
3382
    <tr>
3383
    <td align="right" class="lineno"><pre>441</pre></td>
3384
    <td align="right" class="linebranch"></td>
3385
    <td align="right" class="linecount "><pre></pre></td>
3386
    <td align="left" class="src "><pre>        }</pre></td>
3387
    </tr>
3388

    
3389
    <tr>
3390
    <td align="right" class="lineno"><pre>442</pre></td>
3391
    <td align="right" class="linebranch"></td>
3392
    <td align="right" class="linecount "><pre></pre></td>
3393
    <td align="left" class="src "><pre>        break;</pre></td>
3394
    </tr>
3395

    
3396
    <tr>
3397
    <td align="right" class="lineno"><pre>443</pre></td>
3398
    <td align="right" class="linebranch"></td>
3399
    <td align="right" class="linecount "><pre></pre></td>
3400
    <td align="left" class="src "><pre>    case TC_SUBTYPE_LOAD_FILTER_PAR:</pre></td>
3401
    </tr>
3402

    
3403
    <tr>
3404
    <td align="right" class="lineno"><pre>444</pre></td>
3405
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 4 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1250 times">&check;</span></td>
3406
    <td align="right" class="linecount coveredLine"><pre>1254</pre></td>
3407
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_LOAD_FILTER_PAR-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3408
    </tr>
3409

    
3410
    <tr>
3411
    <td align="right" class="lineno"><pre>445</pre></td>
3412
    <td align="right" class="linebranch"></td>
3413
    <td align="right" class="linecount coveredLine"><pre>4</pre></td>
3414
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3415
    </tr>
3416

    
3417
    <tr>
3418
    <td align="right" class="lineno"><pre>446</pre></td>
3419
    <td align="right" class="linebranch"></td>
3420
    <td align="right" class="linecount "><pre></pre></td>
3421
    <td align="left" class="src "><pre>        }</pre></td>
3422
    </tr>
3423

    
3424
    <tr>
3425
    <td align="right" class="lineno"><pre>447</pre></td>
3426
    <td align="right" class="linebranch"></td>
3427
    <td align="right" class="linecount "><pre></pre></td>
3428
    <td align="left" class="src "><pre>        else {</pre></td>
3429
    </tr>
3430

    
3431
    <tr>
3432
    <td align="right" class="lineno"><pre>448</pre></td>
3433
    <td align="right" class="linebranch"></td>
3434
    <td align="right" class="linecount coveredLine"><pre>1250</pre></td>
3435
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3436
    </tr>
3437

    
3438
    <tr>
3439
    <td align="right" class="lineno"><pre>449</pre></td>
3440
    <td align="right" class="linebranch"></td>
3441
    <td align="right" class="linecount "><pre></pre></td>
3442
    <td align="left" class="src "><pre>        }</pre></td>
3443
    </tr>
3444

    
3445
    <tr>
3446
    <td align="right" class="lineno"><pre>450</pre></td>
3447
    <td align="right" class="linebranch"></td>
3448
    <td align="right" class="linecount "><pre></pre></td>
3449
    <td align="left" class="src "><pre>        break;</pre></td>
3450
    </tr>
3451

    
3452
    <tr>
3453
    <td align="right" class="lineno"><pre>451</pre></td>
3454
    <td align="right" class="linebranch"></td>
3455
    <td align="right" class="linecount "><pre></pre></td>
3456
    <td align="left" class="src "><pre>    case TC_SUBTYPE_UPDT_TIME:</pre></td>
3457
    </tr>
3458

    
3459
    <tr>
3460
    <td align="right" class="lineno"><pre>452</pre></td>
3461
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 1 times">&check;</span><span class="takenBranch" title="Branch 1 taken 1951 times">&check;</span></td>
3462
    <td align="right" class="linecount coveredLine"><pre>1952</pre></td>
3463
    <td align="left" class="src coveredLine"><pre>        if (length!=(TC_LEN_UPDT_TIME-CCSDS_TC_TM_PACKET_OFFSET)) {</pre></td>
3464
    </tr>
3465

    
3466
    <tr>
3467
    <td align="right" class="lineno"><pre>453</pre></td>
3468
    <td align="right" class="linebranch"></td>
3469
    <td align="right" class="linecount coveredLine"><pre>1</pre></td>
3470
    <td align="left" class="src coveredLine"><pre>            status = WRONG_LEN_PKT;</pre></td>
3471
    </tr>
3472

    
3473
    <tr>
3474
    <td align="right" class="lineno"><pre>454</pre></td>
3475
    <td align="right" class="linebranch"></td>
3476
    <td align="right" class="linecount "><pre></pre></td>
3477
    <td align="left" class="src "><pre>        }</pre></td>
3478
    </tr>
3479

    
3480
    <tr>
3481
    <td align="right" class="lineno"><pre>455</pre></td>
3482
    <td align="right" class="linebranch"></td>
3483
    <td align="right" class="linecount "><pre></pre></td>
3484
    <td align="left" class="src "><pre>        else {</pre></td>
3485
    </tr>
3486

    
3487
    <tr>
3488
    <td align="right" class="lineno"><pre>456</pre></td>
3489
    <td align="right" class="linebranch"></td>
3490
    <td align="right" class="linecount coveredLine"><pre>1951</pre></td>
3491
    <td align="left" class="src coveredLine"><pre>            status = CCSDS_TM_VALID;</pre></td>
3492
    </tr>
3493

    
3494
    <tr>
3495
    <td align="right" class="lineno"><pre>457</pre></td>
3496
    <td align="right" class="linebranch"></td>
3497
    <td align="right" class="linecount "><pre></pre></td>
3498
    <td align="left" class="src "><pre>        }</pre></td>
3499
    </tr>
3500

    
3501
    <tr>
3502
    <td align="right" class="lineno"><pre>458</pre></td>
3503
    <td align="right" class="linebranch"></td>
3504
    <td align="right" class="linecount "><pre></pre></td>
3505
    <td align="left" class="src "><pre>        break;</pre></td>
3506
    </tr>
3507

    
3508
    <tr>
3509
    <td align="right" class="lineno"><pre>459</pre></td>
3510
    <td align="right" class="linebranch"></td>
3511
    <td align="right" class="linecount "><pre></pre></td>
3512
    <td align="left" class="src "><pre>    default: // if the subtype is not a legal value, return ILL_SUBTYPE</pre></td>
3513
    </tr>
3514

    
3515
    <tr>
3516
    <td align="right" class="lineno"><pre>460</pre></td>
3517
    <td align="right" class="linebranch"></td>
3518
    <td align="right" class="linecount uncoveredLine"><pre></pre></td>
3519
    <td align="left" class="src uncoveredLine"><pre>        status = ILL_SUBTYPE;</pre></td>
3520
    </tr>
3521

    
3522
    <tr>
3523
    <td align="right" class="lineno"><pre>461</pre></td>
3524
    <td align="right" class="linebranch"></td>
3525
    <td align="right" class="linecount "><pre></pre></td>
3526
    <td align="left" class="src "><pre>        break    ;</pre></td>
3527
    </tr>
3528

    
3529
    <tr>
3530
    <td align="right" class="lineno"><pre>462</pre></td>
3531
    <td align="right" class="linebranch"></td>
3532
    <td align="right" class="linecount "><pre></pre></td>
3533
    <td align="left" class="src "><pre>    }</pre></td>
3534
    </tr>
3535

    
3536
    <tr>
3537
    <td align="right" class="lineno"><pre>463</pre></td>
3538
    <td align="right" class="linebranch"></td>
3539
    <td align="right" class="linecount "><pre></pre></td>
3540
    <td align="left" class="src "><pre></pre></td>
3541
    </tr>
3542

    
3543
    <tr>
3544
    <td align="right" class="lineno"><pre>464</pre></td>
3545
    <td align="right" class="linebranch"></td>
3546
    <td align="right" class="linecount coveredLine"><pre>30238</pre></td>
3547
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
3548
    </tr>
3549

    
3550
    <tr>
3551
    <td align="right" class="lineno"><pre>465</pre></td>
3552
    <td align="right" class="linebranch"></td>
3553
    <td align="right" class="linecount "><pre></pre></td>
3554
    <td align="left" class="src "><pre>}</pre></td>
3555
    </tr>
3556

    
3557
    <tr>
3558
    <td align="right" class="lineno"><pre>466</pre></td>
3559
    <td align="right" class="linebranch"></td>
3560
    <td align="right" class="linecount "><pre></pre></td>
3561
    <td align="left" class="src "><pre></pre></td>
3562
    </tr>
3563

    
3564
    <tr>
3565
    <td align="right" class="lineno"><pre>467</pre></td>
3566
    <td align="right" class="linebranch"></td>
3567
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3568
    <td align="left" class="src coveredLine"><pre>int tc_check_crc( ccsdsTelecommandPacket_t * TCPacket, unsigned int length, unsigned char *computed_CRC )</pre></td>
3569
    </tr>
3570

    
3571
    <tr>
3572
    <td align="right" class="lineno"><pre>468</pre></td>
3573
    <td align="right" class="linebranch"></td>
3574
    <td align="right" class="linecount "><pre></pre></td>
3575
    <td align="left" class="src "><pre>{</pre></td>
3576
    </tr>
3577

    
3578
    <tr>
3579
    <td align="right" class="lineno"><pre>469</pre></td>
3580
    <td align="right" class="linebranch"></td>
3581
    <td align="right" class="linecount "><pre></pre></td>
3582
    <td align="left" class="src "><pre>    /** This function checks the CRC validity of the corresponding TeleCommand packet.</pre></td>
3583
    </tr>
3584

    
3585
    <tr>
3586
    <td align="right" class="lineno"><pre>470</pre></td>
3587
    <td align="right" class="linebranch"></td>
3588
    <td align="right" class="linecount "><pre></pre></td>
3589
    <td align="left" class="src "><pre>     *</pre></td>
3590
    </tr>
3591

    
3592
    <tr>
3593
    <td align="right" class="lineno"><pre>471</pre></td>
3594
    <td align="right" class="linebranch"></td>
3595
    <td align="right" class="linecount "><pre></pre></td>
3596
    <td align="left" class="src "><pre>     * @param TCPacket points to the TeleCommand packet to check.</pre></td>
3597
    </tr>
3598

    
3599
    <tr>
3600
    <td align="right" class="lineno"><pre>472</pre></td>
3601
    <td align="right" class="linebranch"></td>
3602
    <td align="right" class="linecount "><pre></pre></td>
3603
    <td align="left" class="src "><pre>     * @param length is the length of the TC packet.</pre></td>
3604
    </tr>
3605

    
3606
    <tr>
3607
    <td align="right" class="lineno"><pre>473</pre></td>
3608
    <td align="right" class="linebranch"></td>
3609
    <td align="right" class="linecount "><pre></pre></td>
3610
    <td align="left" class="src "><pre>     *</pre></td>
3611
    </tr>
3612

    
3613
    <tr>
3614
    <td align="right" class="lineno"><pre>474</pre></td>
3615
    <td align="right" class="linebranch"></td>
3616
    <td align="right" class="linecount "><pre></pre></td>
3617
    <td align="left" class="src "><pre>     * @return Status code CCSDS_TM_VALID or INCOR_CHECKSUM.</pre></td>
3618
    </tr>
3619

    
3620
    <tr>
3621
    <td align="right" class="lineno"><pre>475</pre></td>
3622
    <td align="right" class="linebranch"></td>
3623
    <td align="right" class="linecount "><pre></pre></td>
3624
    <td align="left" class="src "><pre>     *</pre></td>
3625
    </tr>
3626

    
3627
    <tr>
3628
    <td align="right" class="lineno"><pre>476</pre></td>
3629
    <td align="right" class="linebranch"></td>
3630
    <td align="right" class="linecount "><pre></pre></td>
3631
    <td align="left" class="src "><pre>     */</pre></td>
3632
    </tr>
3633

    
3634
    <tr>
3635
    <td align="right" class="lineno"><pre>477</pre></td>
3636
    <td align="right" class="linebranch"></td>
3637
    <td align="right" class="linecount "><pre></pre></td>
3638
    <td align="left" class="src "><pre></pre></td>
3639
    </tr>
3640

    
3641
    <tr>
3642
    <td align="right" class="lineno"><pre>478</pre></td>
3643
    <td align="right" class="linebranch"></td>
3644
    <td align="right" class="linecount "><pre></pre></td>
3645
    <td align="left" class="src "><pre>    int status;</pre></td>
3646
    </tr>
3647

    
3648
    <tr>
3649
    <td align="right" class="lineno"><pre>479</pre></td>
3650
    <td align="right" class="linebranch"></td>
3651
    <td align="right" class="linecount "><pre></pre></td>
3652
    <td align="left" class="src "><pre>    unsigned char * CCSDSContent;</pre></td>
3653
    </tr>
3654

    
3655
    <tr>
3656
    <td align="right" class="lineno"><pre>480</pre></td>
3657
    <td align="right" class="linebranch"></td>
3658
    <td align="right" class="linecount "><pre></pre></td>
3659
    <td align="left" class="src "><pre></pre></td>
3660
    </tr>
3661

    
3662
    <tr>
3663
    <td align="right" class="lineno"><pre>481</pre></td>
3664
    <td align="right" class="linebranch"></td>
3665
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3666
    <td align="left" class="src coveredLine"><pre>    status = INCOR_CHECKSUM;</pre></td>
3667
    </tr>
3668

    
3669
    <tr>
3670
    <td align="right" class="lineno"><pre>482</pre></td>
3671
    <td align="right" class="linebranch"></td>
3672
    <td align="right" class="linecount "><pre></pre></td>
3673
    <td align="left" class="src "><pre></pre></td>
3674
    </tr>
3675

    
3676
    <tr>
3677
    <td align="right" class="lineno"><pre>483</pre></td>
3678
    <td align="right" class="linebranch"></td>
3679
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3680
    <td align="left" class="src coveredLine"><pre>    CCSDSContent = (unsigned char*) TCPacket->packetID;</pre></td>
3681
    </tr>
3682

    
3683
    <tr>
3684
    <td align="right" class="lineno"><pre>484</pre></td>
3685
    <td align="right" class="linebranch"></td>
3686
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3687
    <td align="left" class="src coveredLine"><pre>    GetCRCAsTwoBytes(CCSDSContent, computed_CRC, length + CCSDS_TC_TM_PACKET_OFFSET - BYTES_PER_CRC); // 2 CRC bytes removed from the calculation of the CRC</pre></td>
3688
    </tr>
3689

    
3690
    <tr>
3691
    <td align="right" class="lineno"><pre>485</pre></td>
3692
    <td align="right" class="linebranch"></td>
3693
    <td align="right" class="linecount "><pre></pre></td>
3694
    <td align="left" class="src "><pre></pre></td>
3695
    </tr>
3696

    
3697
    <tr>
3698
    <td align="right" class="lineno"><pre>486</pre></td>
3699
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 66 times">&check;</span><span class="takenBranch" title="Branch 1 taken 42111 times">&check;</span></td>
3700
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3701
    <td align="left" class="src coveredLine"><pre>    if (computed_CRC[0] != CCSDSContent[length + CCSDS_TC_TM_PACKET_OFFSET - BYTES_PER_CRC]) {</pre></td>
3702
    </tr>
3703

    
3704
    <tr>
3705
    <td align="right" class="lineno"><pre>487</pre></td>
3706
    <td align="right" class="linebranch"></td>
3707
    <td align="right" class="linecount coveredLine"><pre>66</pre></td>
3708
    <td align="left" class="src coveredLine"><pre>        status = INCOR_CHECKSUM;</pre></td>
3709
    </tr>
3710

    
3711
    <tr>
3712
    <td align="right" class="lineno"><pre>488</pre></td>
3713
    <td align="right" class="linebranch"></td>
3714
    <td align="right" class="linecount "><pre></pre></td>
3715
    <td align="left" class="src "><pre>    }</pre></td>
3716
    </tr>
3717

    
3718
    <tr>
3719
    <td align="right" class="lineno"><pre>489</pre></td>
3720
    <td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 322 times">&check;</span><span class="takenBranch" title="Branch 1 taken 41789 times">&check;</span></td>
3721
    <td align="right" class="linecount coveredLine"><pre>42111</pre></td>
3722
    <td align="left" class="src coveredLine"><pre>    else if (computed_CRC[1] != CCSDSContent[length + CCSDS_TC_TM_PACKET_OFFSET -1]) {</pre></td>
3723
    </tr>
3724

    
3725
    <tr>
3726
    <td align="right" class="lineno"><pre>490</pre></td>
3727
    <td align="right" class="linebranch"></td>
3728
    <td align="right" class="linecount coveredLine"><pre>322</pre></td>
3729
    <td align="left" class="src coveredLine"><pre>        status = INCOR_CHECKSUM;</pre></td>
3730
    </tr>
3731

    
3732
    <tr>
3733
    <td align="right" class="lineno"><pre>491</pre></td>
3734
    <td align="right" class="linebranch"></td>
3735
    <td align="right" class="linecount "><pre></pre></td>
3736
    <td align="left" class="src "><pre>    }</pre></td>
3737
    </tr>
3738

    
3739
    <tr>
3740
    <td align="right" class="lineno"><pre>492</pre></td>
3741
    <td align="right" class="linebranch"></td>
3742
    <td align="right" class="linecount "><pre></pre></td>
3743
    <td align="left" class="src "><pre>    else {</pre></td>
3744
    </tr>
3745

    
3746
    <tr>
3747
    <td align="right" class="lineno"><pre>493</pre></td>
3748
    <td align="right" class="linebranch"></td>
3749
    <td align="right" class="linecount coveredLine"><pre>41789</pre></td>
3750
    <td align="left" class="src coveredLine"><pre>        status = CCSDS_TM_VALID;</pre></td>
3751
    </tr>
3752

    
3753
    <tr>
3754
    <td align="right" class="lineno"><pre>494</pre></td>
3755
    <td align="right" class="linebranch"></td>
3756
    <td align="right" class="linecount "><pre></pre></td>
3757
    <td align="left" class="src "><pre>    }</pre></td>
3758
    </tr>
3759

    
3760
    <tr>
3761
    <td align="right" class="lineno"><pre>495</pre></td>
3762
    <td align="right" class="linebranch"></td>
3763
    <td align="right" class="linecount "><pre></pre></td>
3764
    <td align="left" class="src "><pre></pre></td>
3765
    </tr>
3766

    
3767
    <tr>
3768
    <td align="right" class="lineno"><pre>496</pre></td>
3769
    <td align="right" class="linebranch"></td>
3770
    <td align="right" class="linecount coveredLine"><pre>42177</pre></td>
3771
    <td align="left" class="src coveredLine"><pre>    return status;</pre></td>
3772
    </tr>
3773

    
3774
    <tr>
3775
    <td align="right" class="lineno"><pre>497</pre></td>
3776
    <td align="right" class="linebranch"></td>
3777
    <td align="right" class="linecount "><pre></pre></td>
3778
    <td align="left" class="src "><pre>}</pre></td>
3779
    </tr>
3780

    
3781
    <tr>
3782
    <td align="right" class="lineno"><pre>498</pre></td>
3783
    <td align="right" class="linebranch"></td>
3784
    <td align="right" class="linecount "><pre></pre></td>
3785
    <td align="left" class="src "><pre></pre></td>
3786
    </tr>
3787

    
3788
    <tr>
3789
    <td align="right" class="lineno"><pre>499</pre></td>
3790
    <td align="right" class="linebranch"></td>
3791
    <td align="right" class="linecount "><pre></pre></td>
3792
    <td align="left" class="src "><pre></pre></td>
3793
    </tr>
3794

    
3795
    <tr>
3796
    <td align="right" class="lineno"><pre>500</pre></td>
3797
    <td align="right" class="linebranch"></td>
3798
    <td align="right" class="linecount "><pre></pre></td>
3799
    <td align="left" class="src "><pre></pre></td>
3800
    </tr>
3801

    
3802
  </table>
3803
  <br>
3804

    
3805
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
3806
    <tr><td class="hr"><td></tr>
3807
    <tr><td class="footer">Generated by: <a href="http://gcovr.com">GCOVR (Version 4.1)</a></td></tr>
3808
  </table>
3809
  <br>
3810

    
3811
</body>
3812

    
3813
</html>
3814

    
(10-10/18)