CORDET Framework - C2 Implementation
CrPsDataPoolTestCases.c
Go to the documentation of this file.
1 
20 /* Include system files */
21 #include <unistd.h>
22 #include <stdlib.h>
23 
24 /* Include FW Profile files */
25 #include "FwSmConstants.h"
26 #include "FwSmConfig.h"
27 #include "FwSmCore.h"
28 #include "FwPrConfig.h"
29 #include "FwPrCore.h"
30 #include "FwPrConstants.h"
31 /* Include configuration files */
32 
33 /* Include framework files */
34 #include "CrFwCmpData.h"
35 #include "InStream/CrFwInStream.h"
36 #include "BaseCmp/CrFwBaseCmp.h"
37 #include "OutCmp/CrFwOutCmp.h"
40 #include "Pckt/CrFwPckt.h"
41 
42 #include "CrFwTime.h"
44 
45 #include <DataPool/CrPsDp.h>
48 #include <DataPool/CrPsDpServHk.h>
49 #include <DataPool/CrPsDpServEvt.h>
50 #include <DataPool/CrPsDpServLpt.h>
52 
53 #define MAX_CHAR 255u
54 #define MAX_SHORT 65535u
55 #define MAX_INT 4294967295u
56 #define MIN_VAL 0u
57 
58 uint8_t testentry(uint32_t id, uint8_t size)
59 {
60  uint8_t testset[MAX_CHAR], testget[MAX_CHAR], dest[MAX_CHAR], i, success;
61  size_t lene;
62  uint32_t nume;
63  success = 0;
64 
65  /*to ensure that testget is not 0 or 255 set the first entry to any number*/
66  testget[0] = 3;
67  dest[0] = 3;
68 
69  /*set all entries to minimal value*/
70  for (i=0;i<size;i++)
71  {
72  testset[i] = MIN_VAL;
73  }
74  if (setDpValue(id, &testset) == 0)
75  {
76  return 0;
77  }
78  if (getDpValue(id, &testget) == 0)
79  {
80  return 0;
81  }
82  for (i=0; i<size;i++)
83  {
84  if (testset[i] == testget[i])
85  {
86  success = 1;
87  }
88  else
89  {
90  return 0;
91  }
92  }
93  getDpValueEx(id, dest, &lene, &nume);
94  if (memcmp(testset, dest, size))
95  {
96  return 0;
97  }
98  if (lene*nume != size)
99  {
100  return 0;
101  }
102 
103  /*to ensure that testget is not 0 or 255 set the first entry to any number*/
104  testget[0] = 3;
105  dest[0] = 3;
106 
107  /*set all entries to maximal value*/
108  for (i=0;i<size;i++)
109  {
110  testset[i] = MAX_CHAR;
111  }
112  if (setDpValue(id, &testset) == 0)
113  {
114  return 0;
115  }
116  if (getDpValue(id, &testget) == 0)
117  {
118  return 0;
119  }
120  for (i=0; i<size;i++)
121  {
122  if (testset[i] == testget[i])
123  {
124  success = 1;
125  }
126  else
127  {
128  return 0;
129  }
130  }
131  getDpValueEx(id, dest, &lene, &nume);
132  if (memcmp(testset, dest, size))
133  {
134  return 0;
135  }
136  if (lene*nume != size)
137  {
138  return 0;
139  }
140 
141  /*to ensure that testget is not 0 or 255 set the first entry to any number*/
142  testget[0] = 3;
143  dest[0] = 3;
144 
145  /*set all entries to random value*/
146  for (i=0;i<size;i++)
147  {
148  testset[i] = rand() % MAX_CHAR+1;
149  }
150  if (setDpValue(id, &testset) == 0)
151  {
152  return 0;
153  }
154  if (getDpValue(id, &testget) == 0)
155  {
156  return 0;
157  }
158  for (i=0; i<size;i++)
159  {
160  if (testset[i] == testget[i])
161  {
162  success = 1;
163  }
164  else
165  {
166  return 0;
167  }
168  }
169  getDpValueEx(id, dest, &lene, &nume);
170  if (memcmp(testset, dest, size))
171  {
172  return 0;
173  }
174  if (lene*nume != size)
175  {
176  return 0;
177  }
178 
179  if (success == 1)
180  {
181  return 1;
182  }
183  else
184  {
185  return 0;
186  }
187 }
188 
189 /* ---------------------------------------------------------------------------------------------*/
191 {
192  /* Test the generic Datapool Getter and Setter */
193  uint32_t i;
194  size_t lene;
195  uint32_t nume;
196  uint8_t dest[1];
197  uint8_t testval;
198  uint8_t maxval=MAX_CHAR;
199 
200  for (i=DpIdParamsLowest;i<=DpIdParamsHighest;i++)
201  {
202  if (getDpSize(i) != getDpParamSize(i))
203  {
204  return 0;
205  }
206  if (testentry(i, getDpSize(i)) == 0)
207  {
208  return 0;
209  }
210  }
211 
212  for (i=DpIdVarsLowest;i<=DpIdVarsHighest;i++)
213  {
214  if (getDpSize(i) != getDpVarSize(i))
215  {
216  return 0;
217  }
218  if (testentry(i, getDpSize(i)) == 0)
219  {
220  return 0;
221  }
222  }
223 
224  testval = 3;
225 
226  if (setDpValue(DpIdVarsHighest+1, &maxval) != 0)
227  {
228  return 0;
229  }
230  if (getDpValue(DpIdVarsHighest+1, &testval) != 0)
231  {
232  return 0;
233  }
234  if (getDpSize(DpIdVarsHighest+1) != 0)
235  {
236  return 0;
237  }
238  if( getDpValueEx(DpIdVarsHighest+1, dest, &lene, &nume) != 0)
239  {
240  return 0;
241  }
242 
243  return 1;
244 }
245 
246 
247 /* ---------------------------------------------------------------------------------------------*/
249 {
250  /*Service 17: TestService Test the Datapool Getter and Setter*/
251 
252  uint32_t i, pos, len;
253  unsigned short destId, destIdDp;
254  unsigned short* destIdArray;
255  unsigned short* testarrayptr;
256  DpServTestParams_t test;
257 
258  initDpServTest();
259 
260  /* Set and re-read single data pool parameter */
261  setDpAreYouAliveTimeOut(MIN_VAL);
262  if (getDpAreYouAliveTimeOut() != MIN_VAL)
263  {
264  return 0;
265  }
266  setDpAreYouAliveTimeOut(MAX_INT);
267  if (getDpAreYouAliveTimeOut() != MAX_INT)
268  {
269  return 0;
270  }
271 
272  setDpAreYouAliveSrc(MIN_VAL);
273  if (getDpAreYouAliveSrc() != MIN_VAL)
274  {
275  return 0;
276  }
277 
278  setDpAreYouAliveSrc(MAX_SHORT);
279  if (getDpAreYouAliveSrc() != MAX_SHORT)
280  {
281  return 0;
282  }
283 
284  setDpOnBoardConnectDest(MIN_VAL);
285  if (getDpOnBoardConnectDest() != MIN_VAL)
286  {
287  return 0;
288  }
289  setDpOnBoardConnectDest(MAX_SHORT);
290  if (getDpOnBoardConnectDest() != MAX_SHORT)
291  {
292  return 0;
293  }
294 
295  len = sizeof(test.OnBoardConnectDestLst)/sizeof(test.OnBoardConnectDestLst[0]);
296  for (i=0; i<len; i++)
297  {
298  setDpOnBoardConnectDestLstItem(i, MIN_VAL);
299  if(getDpOnBoardConnectDestLstItem(i) != MIN_VAL)
300  {
301  return 0;
302  }
303  }
304  for (i=0; i<len; i++)
305  {
306  setDpOnBoardConnectDestLstItem(i, MAX_SHORT);
307  if(getDpOnBoardConnectDestLstItem(i) != MAX_SHORT)
308  {
309  return 0;
310  }
311  }
312  testarrayptr = getDpOnBoardConnectDestLstArray();
313  for (i =0;i<len;i++)
314  {
315  if(testarrayptr[i] != MAX_SHORT)
316  return 0;
317  }
318 
319 
320  initDpServTest();
321  /* Set and re-read data pool parameter array (default values) */
322  for (i=0; i<10; i++)
323  {
324  pos = i;
325  destId = getDpOnBoardConnectDestLstItem(pos);
326  setDpOnBoardConnectDestLstItem(pos, destId + 1);
327  destIdDp = getDpOnBoardConnectDestLstItem(pos);
328  if ( destId != destIdDp - 1 )
329  return 0;
330  }
331 
332  /* Set and re-read data pool parameter array (preset values) */
333  for (i=0; i<10; i++)
334  {
335  pos = i;
336  setDpOnBoardConnectDestLstItem(pos, pos + 1);
337  }
338  for (i=0; i<10; i++)
339  {
340  pos = i;
341  destId = getDpOnBoardConnectDestLstItem(pos);
342  if ( destId != pos + 1 )
343  return 0;
344  }
345 
346  /* Get whole data pool parameter array previously set */
347  destIdArray = getDpOnBoardConnectDestLstArray();
348  for (i=0; i<10; i++)
349  {
350  pos = i;
351  if ( destIdArray[pos] != pos + 1 )
352  return 0;
353  }
354 
355  /* Call the GetSize Functions with an invalid ID */
356  if(getDpVarSize(0)!=0)
357  return 0;
358 
359  if(getDpParamSize(0)!=0)
360  return 0;
361 
362  return 1;
363 }
364 
365 /* ---------------------------------------------------------------------------------------------*/
366 
368 {
369  /*Service 1: Request Verification Test the Datapool Getter and Setter*/
370 
371  /*initialize Request Verification Service Datapool Entries*/
373 
374  /*Set and Get all Datapool Entries with 0 and maximal value*/
375  setDpfailCodeAccFailed(MIN_VAL);
376  if (getDpfailCodeAccFailed() != MIN_VAL)
377  {
378  return 0;
379  }
380  setDpfailCodeAccFailed(MAX_SHORT);
381  if (getDpfailCodeAccFailed() != MAX_SHORT)
382  {
383  return 0;
384  }
385 
386  setDpfailCodePrgrFailed(MIN_VAL);
387  if (getDpfailCodePrgrFailed() != MIN_VAL)
388  {
389  return 0;
390  }
391  setDpfailCodePrgrFailed(MAX_SHORT);
392  if (getDpfailCodePrgrFailed() != MAX_SHORT)
393  {
394  return 0;
395  }
396 
397  setDpfailCodeStartFailed(MIN_VAL);
398  if (getDpfailCodeStartFailed() != MIN_VAL)
399  {
400  return 0;
401  }
402  setDpfailCodeStartFailed(MAX_SHORT);
403  if (getDpfailCodeStartFailed() != MAX_SHORT)
404  {
405  return 0;
406  }
407 
408  setDpfailCodeTermFailed(MIN_VAL);
409  if (getDpfailCodeTermFailed() != MIN_VAL)
410  {
411  return 0;
412  }
413  setDpfailCodeTermFailed(MAX_SHORT);
414  if (getDpfailCodeTermFailed() != MAX_SHORT)
415  {
416  return 0;
417  }
418 
419  setDpinvDestRerouting(MIN_VAL);
420  if (getDpinvDestRerouting() != MIN_VAL)
421  {
422  return 0;
423  }
424  setDpinvDestRerouting(MAX_SHORT);
425  if (getDpinvDestRerouting() != MAX_SHORT)
426  {
427  return 0;
428  }
429 
430  setDpnOfAccFailed(MIN_VAL);
431  if (getDpnOfAccFailed() != MIN_VAL)
432  {
433  return 0;
434  }
435  setDpnOfAccFailed(MAX_INT);
436  if (getDpnOfAccFailed() != MAX_INT)
437  {
438  return 0;
439  }
440 
441  setDpnOfPrgrFailed(MIN_VAL);
442  if (getDpnOfPrgrFailed() != MIN_VAL)
443  {
444  return 0;
445  }
446  setDpnOfPrgrFailed(MAX_INT);
447  if (getDpnOfPrgrFailed() != MAX_INT)
448  {
449  return 0;
450  }
451 
452  setDpnOfReroutingFailed(MIN_VAL);
453  if (getDpnOfReroutingFailed() != MIN_VAL)
454  {
455  return 0;
456  }
457  setDpnOfReroutingFailed(MAX_INT);
458  if (getDpnOfReroutingFailed() != MAX_INT)
459  {
460  return 0;
461  }
462 
463  setDpnOfStartFailed(MIN_VAL);
464  if (getDpnOfStartFailed() != MIN_VAL)
465  {
466  return 0;
467  }
468  setDpnOfStartFailed(MAX_INT);
469  if (getDpnOfStartFailed() != MAX_INT)
470  {
471  return 0;
472  }
473 
474  setDpnOfTermFailed(MIN_VAL);
475  if (getDpnOfTermFailed() != MIN_VAL)
476  {
477  return 0;
478  }
479  setDpnOfTermFailed(MAX_INT);
480  if (getDpnOfTermFailed() != MAX_INT)
481  {
482  return 0;
483  }
484 
485  setDppcktIdAccFailed(MIN_VAL);
486  if (getDppcktIdAccFailed() != MIN_VAL)
487  {
488  return 0;
489  }
490  setDppcktIdAccFailed(MAX_SHORT);
491  if (getDppcktIdAccFailed() != MAX_SHORT)
492  {
493  return 0;
494  }
495 
496  setDppcktIdPrgrFailed(MIN_VAL);
497  if (getDppcktIdPrgrFailed() != MIN_VAL)
498  {
499  return 0;
500  }
501  setDppcktIdPrgrFailed(MAX_SHORT);
502  if (getDppcktIdPrgrFailed() != MAX_SHORT)
503  {
504  return 0;
505  }
506 
508  if (getDppcktIdReroutingFailed() != MIN_VAL)
509  {
510  return 0;
511  }
512  setDppcktIdReroutingFailed(MAX_SHORT);
513  if (getDppcktIdReroutingFailed() != MAX_SHORT)
514  {
515  return 0;
516  }
517 
518  setDppcktIdStartFailed(MIN_VAL);
519  if (getDppcktIdStartFailed() != MIN_VAL)
520  {
521  return 0;
522  }
523  setDppcktIdStartFailed(MAX_SHORT);
524  if (getDppcktIdStartFailed() != MAX_SHORT)
525  {
526  return 0;
527  }
528 
529  setDppcktIdTermFailed(MIN_VAL);
530  if (getDppcktIdTermFailed() != MIN_VAL)
531  {
532  return 0;
533  }
534  setDppcktIdTermFailed(MAX_SHORT);
535  if (getDppcktIdTermFailed() != MAX_SHORT)
536  {
537  return 0;
538  }
539 
540  setDpstepPrgrFailed(MIN_VAL);
541  if (getDpstepPrgrFailed() != MIN_VAL)
542  {
543  return 0;
544  }
545  setDpstepPrgrFailed(MAX_SHORT);
546  if (getDpstepPrgrFailed() != MAX_SHORT)
547  {
548  return 0;
549  }
550 
551  setDpverFailData(MIN_VAL);
552  if (getDpverFailData() != MIN_VAL)
553  {
554  return 0;
555  }
556  setDpverFailData(MAX_INT);
557  if (getDpverFailData() != MAX_INT)
558  {
559  return 0;
560  }
561 
562  return 1;
563 }
564 
565 /* ---------------------------------------------------------------------------------------------*/
567 {
568  /*Service 3: Housekeeping Test the Datapool Getter and Setter*/
569  uint32_t i, len;
570  unsigned char* testchararrptr;
571  unsigned short* testshortarrptr;
572  unsigned int* testintarrptr;
573  DpServHkParams_t testparams;
574  DpServHkVars_t testvals;
575 
576  /*initialize Housekeeping Service Datapool Entries*/
577  initDpServHk();
578 
579  len = sizeof(testparams.debugVarAddr)/sizeof(testparams.debugVarAddr[0]);
580  for (i=0; i<len; i++)
581  {
582  setDpdebugVarAddrItem(i, MIN_VAL);
583  if(getDpdebugVarAddrItem(i) != MIN_VAL)
584  {
585  return 0;
586  }
587  }
588  for (i=0; i<len; i++)
589  {
590  setDpdebugVarAddrItem(i, MAX_INT);
591  if(getDpdebugVarAddrItem(i) != MAX_INT)
592  {
593  return 0;
594  }
595  }
596  testintarrptr = getDpdebugVarAddrArray();
597  for (i =0;i<len;i++)
598  {
599  if(testintarrptr[i] != MAX_INT)
600  return 0;
601  }
602 
603  len = sizeof(testparams.dest)/sizeof(testparams.dest[0]);
604  for (i=0; i<len; i++)
605  {
606  setDpdestItem(i, MIN_VAL);
607  if(getDpdestItem(i) != MIN_VAL)
608  {
609  return 0;
610  }
611  }
612  for (i=0; i<len; i++)
613  {
614  setDpdestItem(i, MAX_SHORT);
615  if(getDpdestItem(i) != MAX_SHORT)
616  {
617  return 0;
618  }
619  }
620  testshortarrptr = getDpdestArray();
621  for (i =0;i<len;i++)
622  {
623  if(testshortarrptr[i] != MAX_SHORT)
624  return 0;
625  }
626 
627  len = sizeof(testparams.isEnabled)/sizeof(testparams.isEnabled[0]);
628  for (i=0; i<len; i++)
629  {
630  setDpisEnabledItem(i, MIN_VAL);
631  if(getDpisEnabledItem(i) != MIN_VAL)
632  {
633  return 0;
634  }
635  }
636  for (i=0; i<len; i++)
637  {
638  setDpisEnabledItem(i, MAX_CHAR);
639  if(getDpisEnabledItem(i) != MAX_CHAR)
640  {
641  return 0;
642  }
643  }
644  testchararrptr = getDpisEnabledArray();
645  for (i =0;i<len;i++)
646  {
647  if(testchararrptr[i] != MAX_CHAR)
648  return 0;
649  }
650 
651  len = sizeof(testparams.sid)/sizeof(testparams.sid[0]);
652  for (i=0; i<len; i++)
653  {
654  setDpsidItem(i, MIN_VAL);
655  if(getDpsidItem(i) != MIN_VAL)
656  {
657  return 0;
658  }
659  }
660  for (i=0; i<len; i++)
661  {
662  setDpsidItem(i, MAX_CHAR);
663  if(getDpsidItem(i) != MAX_CHAR)
664  {
665  return 0;
666  }
667  }
668  testchararrptr = getDpsidArray();
669  for (i =0;i<len;i++)
670  {
671  if(testchararrptr[i] != MAX_CHAR)
672  return 0;
673  }
674 
675  len = sizeof(testvals.cycleCnt)/sizeof(testvals.cycleCnt[0]);
676  for (i=0; i<len; i++)
677  {
678  setDpcycleCntItem(i, MIN_VAL);
679  if(getDpcycleCntItem(i) != MIN_VAL)
680  {
681  return 0;
682  }
683  }
684  for (i=0; i<len; i++)
685  {
686  setDpcycleCntItem(i, MAX_INT);
687  if(getDpcycleCntItem(i) != MAX_INT)
688  {
689  return 0;
690  }
691  }
692  testintarrptr = getDpcycleCntArray();
693  for (i =0;i<len;i++)
694  {
695  if(testintarrptr[i] != MAX_INT)
696  return 0;
697  }
698 
699  len = sizeof(testvals.debugVar)/sizeof(testvals.debugVar[0]);
700  for (i=0; i<len; i++)
701  {
702  setDpdebugVarItem(i, MIN_VAL);
703  if(getDpdebugVarItem(i) != MIN_VAL)
704  {
705  return 0;
706  }
707  }
708  for (i=0; i<len; i++)
709  {
710  setDpdebugVarItem(i, MAX_INT);
711  if(getDpdebugVarItem(i) != MAX_INT)
712  {
713  return 0;
714  }
715  }
716  testintarrptr = getDpdebugVarArray();
717  for (i =0;i<len;i++)
718  {
719  if(testintarrptr[i] != MAX_INT)
720  return 0;
721  }
722 
723  len = sizeof(testvals.lstId)/sizeof(testvals.lstId[0]);
724  for (i=0; i<len; i++)
725  {
726  setDplstIdItem(i, MIN_VAL);
727  if(getDplstIdItem(i) != MIN_VAL)
728  {
729  return 0;
730  }
731  }
732  for (i=0; i<len; i++)
733  {
734  setDplstIdItem(i, MAX_SHORT);
735  if(getDplstIdItem(i) != MAX_SHORT)
736  {
737  return 0;
738  }
739  }
740  testshortarrptr = getDplstIdArray();
741  for (i =0;i<len;i++)
742  {
743  if(testshortarrptr[i] != MAX_SHORT)
744  return 0;
745  }
746 
747  len = sizeof(testvals.lstNSampRep)/sizeof(testvals.lstNSampRep[0]);
748  for (i=0; i<len; i++)
749  {
750  setDplstNSampRepItem(i, MIN_VAL);
751  if(getDplstNSampRepItem(i) != MIN_VAL)
752  {
753  return 0;
754  }
755  }
756  for (i=0; i<len; i++)
757  {
758  setDplstNSampRepItem(i, MAX_SHORT);
759  if(getDplstNSampRepItem(i) != MAX_SHORT)
760  {
761  return 0;
762  }
763  }
764  testshortarrptr = getDplstNSampRepArray();
765  for (i =0;i<len;i++)
766  {
767  if(testshortarrptr[i] != MAX_SHORT)
768  return 0;
769  }
770 
771  len = sizeof(testvals.lstSampleRep)/sizeof(testvals.lstSampleRep[0]);
772  for (i=0; i<len; i++)
773  {
774  setDplstSampleRepItem(i, MIN_VAL);
775  if(getDplstSampleRepItem(i) != MIN_VAL)
776  {
777  return 0;
778  }
779  }
780  for (i=0; i<len; i++)
781  {
782  setDplstSampleRepItem(i, MAX_SHORT);
783  if(getDplstSampleRepItem(i) != MAX_SHORT)
784  {
785  return 0;
786  }
787  }
788  testshortarrptr = getDplstSampleRepArray();
789  for (i =0;i<len;i++)
790  {
791  if(testshortarrptr[i] != MAX_SHORT)
792  return 0;
793  }
794 
795  len = sizeof(testvals.nSimple)/sizeof(testvals.nSimple[0]);
796  for (i=0; i<len; i++)
797  {
798  setDpnSimpleItem(i, MIN_VAL);
799  if(getDpnSimpleItem(i) != MIN_VAL)
800  {
801  return 0;
802  }
803  }
804  for (i=0; i<len; i++)
805  {
806  setDpnSimpleItem(i, MAX_SHORT);
807  if(getDpnSimpleItem(i) != MAX_SHORT)
808  {
809  return 0;
810  }
811  }
812  testshortarrptr = getDpnSimpleArray();
813  for (i =0;i<len;i++)
814  {
815  if(testshortarrptr[i] != MAX_SHORT)
816  return 0;
817  }
818 
819  len = sizeof(testvals.sampleBufId)/sizeof(testvals.sampleBufId[0]);
820  for (i=0; i<len; i++)
821  {
822  setDpsampleBufIdItem(i, MIN_VAL);
823  if(getDpsampleBufIdItem(i) != MIN_VAL)
824  {
825  return 0;
826  }
827  }
828  for (i=0; i<len; i++)
829  {
830  setDpsampleBufIdItem(i, MAX_SHORT);
831  if(getDpsampleBufIdItem(i) != MAX_SHORT)
832  {
833  return 0;
834  }
835  }
836  testshortarrptr = getDpsampleBufIdArray();
837  for (i =0;i<len;i++)
838  {
839  if(testshortarrptr[i] != MAX_SHORT)
840  return 0;
841  }
842 
843  return 1;
844 }
845 
846 /* ---------------------------------------------------------------------------------------------*/
848 {
849  /*Service 5: Event Reporting Test the Datapool Getter and Setter*/
850  uint32_t i, len;
851  unsigned char* testarrptr;
852  DpServEvtVars_t testvals;
853  CrFwTimeStamp_t tim0, timmax, ret;
854 
855  for (i=0;i<6;i++)
856  {
857  tim0.t[i]=0;
858  timmax.t[i]=255u;
859  }
860 
861 
862  initDpServEvt();
863 
864  len = sizeof(testvals.isEidEnabled)/sizeof(testvals.isEidEnabled[0]);
865  for (i=0; i<len; i++)
866  {
867  setDpisEidEnabledItem(i, MIN_VAL);
868  if(getDpisEidEnabledItem(i) != MIN_VAL)
869  {
870  return 0;
871  }
872  }
873  for (i=0; i<len; i++)
874  {
875  setDpisEidEnabledItem(i, MAX_CHAR);
876  if(getDpisEidEnabledItem(i) != MAX_CHAR)
877  {
878  return 0;
879  }
880  }
881  testarrptr = getDpisEidEnabledArray();
882  for (i =0;i<len;i++)
883  {
884  if(testarrptr[i] != MAX_CHAR)
885  return 0;
886  }
887 
888  setDplastEvtEid_1(MIN_VAL);
889  if (getDplastEvtEid_1() != MIN_VAL)
890  {
891  return 0;
892  }
893  setDplastEvtEid_1(MAX_CHAR);
894  if (getDplastEvtEid_1() != MAX_CHAR)
895  {
896  return 0;
897  }
898 
899  setDplastEvtEid_2(MIN_VAL);
900  if (getDplastEvtEid_2() != MIN_VAL)
901  {
902  return 0;
903  }
904  setDplastEvtEid_2(MAX_CHAR);
905  if (getDplastEvtEid_2() != MAX_CHAR)
906  {
907  return 0;
908  }
909 
910  setDplastEvtEid_3(MIN_VAL);
911  if (getDplastEvtEid_3() != MIN_VAL)
912  {
913  return 0;
914  }
915  setDplastEvtEid_3(MAX_CHAR);
916  if (getDplastEvtEid_3() != MAX_CHAR)
917  {
918  return 0;
919  }
920 
921  setDplastEvtEid_4(MIN_VAL);
922  if (getDplastEvtEid_4() != MIN_VAL)
923  {
924  return 0;
925  }
926  setDplastEvtEid_4(MAX_CHAR);
927  if (getDplastEvtEid_4() != MAX_CHAR)
928  {
929  return 0;
930  }
931 
932  setDplastEvtTime_1(tim0);
933  ret = getDplastEvtTime_1();
934  if (memcmp(ret.t, tim0.t, sizeof(tim0))!=0)
935  {
936  return 0;
937  }
938  setDplastEvtTime_1(timmax);
939  ret = getDplastEvtTime_1();
940  if (memcmp(ret.t, timmax.t, sizeof(timmax))!=0)
941  {
942  return 0;
943  }
944 
945  setDplastEvtTime_2(tim0);
946  ret = getDplastEvtTime_2();
947  if (memcmp(ret.t, tim0.t, sizeof(tim0)))
948  {
949  return 0;
950  }
951 
952  setDplastEvtTime_2(timmax);
953  ret = getDplastEvtTime_2();
954  if (memcmp(ret.t, timmax.t, sizeof(timmax)))
955  {
956  return 0;
957  }
958 
959  setDplastEvtTime_3(tim0);
960  ret = getDplastEvtTime_3();
961  if (memcmp(ret.t, tim0.t, sizeof(tim0)))
962  {
963  return 0;
964  }
965 
966  setDplastEvtTime_3(timmax);
967  ret = getDplastEvtTime_3();
968  if (memcmp(ret.t, timmax.t, sizeof(timmax)))
969  {
970  return 0;
971  }
972 
973  setDplastEvtTime_4(tim0);
974  ret = getDplastEvtTime_4();
975  if (memcmp(ret.t, tim0.t, sizeof(tim0)))
976  {
977  return 0;
978  }
979 
980  setDplastEvtTime_4(timmax);
981  ret = getDplastEvtTime_4();
982  if (memcmp(ret.t, timmax.t, sizeof(timmax)))
983  {
984  return 0;
985  }
986 
987  setDpnOfDetectedEvts_1(MIN_VAL);
988  if (getDpnOfDetectedEvts_1() != MIN_VAL)
989  {
990  return 0;
991  }
992  setDpnOfDetectedEvts_1(MAX_CHAR);
993  if (getDpnOfDetectedEvts_1() != MAX_CHAR)
994  {
995  return 0;
996  }
997 
998  setDpnOfDetectedEvts_2(MIN_VAL);
999  if (getDpnOfDetectedEvts_2() != MIN_VAL)
1000  {
1001  return 0;
1002  }
1003  setDpnOfDetectedEvts_2(MAX_CHAR);
1004  if (getDpnOfDetectedEvts_2() != MAX_CHAR)
1005  {
1006  return 0;
1007  }
1008 
1009  setDpnOfDetectedEvts_3(MIN_VAL);
1010  if (getDpnOfDetectedEvts_3() != MIN_VAL)
1011  {
1012  return 0;
1013  }
1014  setDpnOfDetectedEvts_3(MAX_CHAR);
1015  if (getDpnOfDetectedEvts_3() != MAX_CHAR)
1016  {
1017  return 0;
1018  }
1019 
1020  setDpnOfDetectedEvts_4(MIN_VAL);
1021  if (getDpnOfDetectedEvts_4() != MIN_VAL)
1022  {
1023  return 0;
1024  }
1025  setDpnOfDetectedEvts_4(MAX_CHAR);
1026  if (getDpnOfDetectedEvts_4() != MAX_CHAR)
1027  {
1028  return 0;
1029  }
1030 
1031  setDpnOfDisabledEid_1(MIN_VAL);
1032  if (getDpnOfDisabledEid_1() != MIN_VAL)
1033  {
1034  return 0;
1035  }
1036  setDpnOfDisabledEid_1(MAX_CHAR);
1037  if (getDpnOfDisabledEid_1() != MAX_CHAR)
1038  {
1039  return 0;
1040  }
1041 
1042  setDpnOfDisabledEid_2(MIN_VAL);
1043  if (getDpnOfDisabledEid_2() != MIN_VAL)
1044  {
1045  return 0;
1046  }
1047  setDpnOfDisabledEid_2(MAX_CHAR);
1048  if (getDpnOfDisabledEid_2() != MAX_CHAR)
1049  {
1050  return 0;
1051  }
1052 
1053  setDpnOfDisabledEid_3(MIN_VAL);
1054  if (getDpnOfDisabledEid_3() != MIN_VAL)
1055  {
1056  return 0;
1057  }
1058  setDpnOfDisabledEid_3(MAX_CHAR);
1059  if (getDpnOfDisabledEid_3() != MAX_CHAR)
1060  {
1061  return 0;
1062  }
1063 
1064  setDpnOfDisabledEid_4(MIN_VAL);
1065  if (getDpnOfDisabledEid_4() != MIN_VAL)
1066  {
1067  return 0;
1068  }
1069  setDpnOfDisabledEid_4(MAX_CHAR);
1070  if (getDpnOfDisabledEid_4() != MAX_CHAR)
1071  {
1072  return 0;
1073  }
1074 
1075  setDpnOfGenEvtRep_1(MIN_VAL);
1076  if (getDpnOfGenEvtRep_1() != MIN_VAL)
1077  {
1078  return 0;
1079  }
1080  setDpnOfGenEvtRep_1(MAX_CHAR);
1081  if (getDpnOfGenEvtRep_1() != MAX_CHAR)
1082  {
1083  return 0;
1084  }
1085 
1086  setDpnOfGenEvtRep_2(MIN_VAL);
1087  if (getDpnOfGenEvtRep_2() != MIN_VAL)
1088  {
1089  return 0;
1090  }
1091  setDpnOfGenEvtRep_2(MAX_CHAR);
1092  if (getDpnOfGenEvtRep_2() != MAX_CHAR)
1093  {
1094  return 0;
1095  }
1096 
1097  setDpnOfGenEvtRep_3(MIN_VAL);
1098  if (getDpnOfGenEvtRep_3() != MIN_VAL)
1099  {
1100  return 0;
1101  }
1102  setDpnOfGenEvtRep_3(MAX_CHAR);
1103  if (getDpnOfGenEvtRep_3() != MAX_CHAR)
1104  {
1105  return 0;
1106  }
1107 
1108  setDpnOfGenEvtRep_4(MIN_VAL);
1109  if (getDpnOfGenEvtRep_4() != MIN_VAL)
1110  {
1111  return 0;
1112  }
1113  setDpnOfGenEvtRep_4(MAX_CHAR);
1114  if (getDpnOfGenEvtRep_4() != MAX_CHAR)
1115  {
1116  return 0;
1117  }
1118 
1119  return 1;
1120 }
1121 
1122 
1123 /* ---------------------------------------------------------------------------------------------*/
1125 {
1126  /*Service 13: Large Packet Transfer Test the Datapool Getter and Setter*/
1127  uint32_t i, len;
1128  uint32_t* testarrptr32;
1129  uint16_t* testarrptr16;
1130  CrFwTimeStamp_t* testarrptrtim;
1131  CrFwTimeStamp_t tim0, timmax, ret;
1132  DpServLptParams_t testparams;
1133  DpServLptVars_t testvars;
1134 
1135  for (i=0;i<6;i++)
1136  {
1137  tim0.t[i]=0;
1138  timmax.t[i]=255u;
1139  }
1140 
1141  initDpServLpt();
1142 
1143  len = sizeof(testparams.lptTimeOut)/sizeof(testparams.lptTimeOut[0]);
1144  for (i=0; i<len; i++)
1145  {
1146  setDplptTimeOutItem(i, MIN_VAL);
1147  if(getDplptTimeOutItem(i) != MIN_VAL)
1148  {
1149  return 0;
1150  }
1151  }
1152  for (i=0; i<len; i++)
1153  {
1154  setDplptTimeOutItem(i, MAX_INT);
1155  if(getDplptTimeOutItem(i) != MAX_INT)
1156  {
1157  return 0;
1158  }
1159  }
1160  testarrptr32 = getDplptTimeOutArray();
1161  for (i =0;i<len;i++)
1162  {
1163  if(testarrptr32[i] != MAX_INT)
1164  return 0;
1165  }
1166 
1167  len = sizeof(testvars.largeMsgTransId)/sizeof(testvars.largeMsgTransId[0]);
1168  for (i=0; i<len; i++)
1169  {
1170  setDplargeMsgTransIdItem(i, MIN_VAL);
1171  if(getDplargeMsgTransIdItem(i) != MIN_VAL)
1172  {
1173  return 0;
1174  }
1175  }
1176  for (i=0; i<len; i++)
1177  {
1178  setDplargeMsgTransIdItem(i, MAX_INT);
1179  if(getDplargeMsgTransIdItem(i) != MAX_INT)
1180  {
1181  return 0;
1182  }
1183  }
1184  testarrptr32 = getDplargeMsgTransIdArray();
1185  for (i =0;i<len;i++)
1186  {
1187  if(testarrptr32[i] != MAX_INT)
1188  return 0;
1189  }
1190 
1191  len = sizeof(testvars.lptFailCode)/sizeof(testvars.lptFailCode[0]);
1192  for (i=0; i<len; i++)
1193  {
1194  setDplptFailCodeItem(i, MIN_VAL);
1195  if(getDplptFailCodeItem(i) != MIN_VAL)
1196  {
1197  return 0;
1198  }
1199  }
1200  for (i=0; i<len; i++)
1201  {
1202  setDplptFailCodeItem(i, MAX_SHORT);
1203  if(getDplptFailCodeItem(i) != MAX_SHORT)
1204  {
1205  return 0;
1206  }
1207  }
1208  testarrptr16 = getDplptFailCodeArray();
1209  for (i =0;i<len;i++)
1210  {
1211  if(testarrptr16[i] != MAX_SHORT)
1212  return 0;
1213  }
1214 
1215  len = sizeof(testvars.lptRemSize)/sizeof(testvars.lptRemSize[0]);
1216  for (i=0; i<len; i++)
1217  {
1218  setDplptRemSizeItem(i, MIN_VAL);
1219  if(getDplptRemSizeItem(i) != MIN_VAL)
1220  {
1221  return 0;
1222  }
1223  }
1224  for (i=0; i<len; i++)
1225  {
1226  setDplptRemSizeItem(i, MAX_INT);
1227  if(getDplptRemSizeItem(i) != MAX_INT)
1228  {
1229  return 0;
1230  }
1231  }
1232  testarrptr32 = getDplptRemSizeArray();
1233  for (i =0;i<len;i++)
1234  {
1235  if(testarrptr32[i] != MAX_INT)
1236  return 0;
1237  }
1238 
1239  len = sizeof(testvars.lptSize)/sizeof(testvars.lptSize[0]);
1240  for (i=0; i<len; i++)
1241  {
1242  setDplptSizeItem(i, MIN_VAL);
1243  if(getDplptSizeItem(i) != MIN_VAL)
1244  {
1245  return 0;
1246  }
1247  }
1248  for (i=0; i<len; i++)
1249  {
1250  setDplptSizeItem(i, MAX_INT);
1251  if(getDplptSizeItem(i) != MAX_INT)
1252  {
1253  return 0;
1254  }
1255  }
1256  testarrptr32 = getDplptSizeArray();
1257  for (i =0;i<len;i++)
1258  {
1259  if(testarrptr32[i] != MAX_INT)
1260  return 0;
1261  }
1262 
1263 
1264  len = sizeof(testvars.lptSize)/sizeof(testvars.lptSize[0]);
1265  for (i=0; i<len; i++)
1266  {
1267  setDplptSizeItem(i, MIN_VAL);
1268  if(getDplptSizeItem(i) != MIN_VAL)
1269  {
1270  return 0;
1271  }
1272  }
1273  for (i=0; i<len; i++)
1274  {
1275  setDplptSizeItem(i, MAX_INT);
1276  if(getDplptSizeItem(i) != MAX_INT)
1277  {
1278  return 0;
1279  }
1280  }
1281  testarrptr32 = getDplptSizeArray();
1282  for (i =0;i<len;i++)
1283  {
1284  if(testarrptr32[i] != MAX_INT)
1285  return 0;
1286  }
1287 
1288  len = sizeof(testvars.lptSrc)/sizeof(testvars.lptSrc[0]);
1289  for (i=0; i<len; i++)
1290  {
1291  setDplptSrcItem(i, MIN_VAL);
1292  if(getDplptSrcItem(i) != MIN_VAL)
1293  {
1294  return 0;
1295  }
1296  }
1297  for (i=0; i<len; i++)
1298  {
1299  setDplptSrcItem(i, MAX_SHORT);
1300  if(getDplptSrcItem(i) != MAX_SHORT)
1301  {
1302  return 0;
1303  }
1304  }
1305  testarrptr16 = getDplptSrcArray();
1306  for (i =0;i<len;i++)
1307  {
1308  if(testarrptr16[i] != MAX_SHORT)
1309  return 0;
1310  }
1311 
1312  len = sizeof(testvars.lptTime)/sizeof(testvars.lptTime[0]);
1313  for (i=0; i<len; i++)
1314  {
1315  setDplptTimeItem(i, tim0);
1316  ret = getDplptTimeItem(i);
1317  if(memcmp(ret.t, tim0.t, sizeof(tim0)))
1318  {
1319  return 0;
1320  }
1321  }
1322  for (i=0; i<len; i++)
1323  {
1324  setDplptTimeItem(i, timmax);
1325  ret = getDplptTimeItem(i);
1326  if(memcmp(ret.t, timmax.t, sizeof(timmax)))
1327  {
1328  return 0;
1329  }
1330  }
1331  testarrptrtim = getDplptTimeArray();
1332  for (i =0;i<len;i++)
1333  {
1334  if(memcmp(testarrptrtim[i].t, timmax.t, sizeof(timmax)))
1335  return 0;
1336  }
1337 
1338  setDpnOfDownlinks(MIN_VAL);
1339  if (getDpnOfDownlinks() != MIN_VAL)
1340  {
1341  return 0;
1342  }
1343  setDpnOfDownlinks(MAX_INT);
1344  if (getDpnOfDownlinks() != MAX_INT)
1345  {
1346  return 0;
1347  }
1348 
1349  setDpnOfUplinks(MIN_VAL);
1350  if (getDpnOfUplinks() != MIN_VAL)
1351  {
1352  return 0;
1353  }
1354  setDpnOfUplinks(MAX_INT);
1355  if (getDpnOfUplinks() != MAX_INT)
1356  {
1357  return 0;
1358  }
1359 
1360  len = sizeof(testvars.partSeqNmb)/sizeof(testvars.partSeqNmb[0]);
1361  for (i=0; i<len; i++)
1362  {
1363  setDppartSeqNmbItem(i, MIN_VAL);
1364  if(getDppartSeqNmbItem(i) != MIN_VAL)
1365  {
1366  return 0;
1367  }
1368  }
1369  for (i=0; i<len; i++)
1370  {
1371  setDppartSeqNmbItem(i, MAX_INT);
1372  if(getDppartSeqNmbItem(i) != MAX_INT)
1373  {
1374  return 0;
1375  }
1376  }
1377  testarrptr32 = getDppartSeqNmbArray();
1378  for (i =0;i<len;i++)
1379  {
1380  if(testarrptr32[i] != MAX_INT)
1381  return 0;
1382  }
1383 
1384  return 1;
1385 }
void initDpServReqVerif(void)
Initialises ServReqVerif.
CrPsTid_t largeMsgTransId[LPT_N_BUF]
CrPsTid_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:48
static void setDpfailCodeAccFailed(CrPsFailCode_t failCodeAccFailed)
Sets the value of the datapool item failCodeAccFailed.
Interface through which framework components access the current time.
static void setDpnOfAccFailed(CrFwCounterU4_t nOfAccFailed)
Sets the value of the datapool item nOfAccFailed.
CrPsDestSrc_t OnBoardConnectDestLst[TEST_MAX_APP]
List of identifiers of target applications for an On-Board-Connection Test.
static void setDpnOfDownlinks(CrFwCounterU4_t nOfDownlinks)
Sets the value of the datapool item nOfDownlinks.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
Type description.
Definition: CrPsDpServLpt.h:32
void initDpServEvt(void)
Initialises ServEvt.
Definition: CrPsDpServEvt.c:30
static CrPsAddr_t getDpdebugVarAddrItem(int i)
Gets the value of the i-th element in the datapool array debugVarAddr.
Definition: CrPsDpServHk.h:169
static void setDpfailCodePrgrFailed(CrPsFailCode_t failCodePrgrFailed)
Sets the value of the datapool item failCodePrgrFailed.
static CrFwCounterU4_t getDpnOfUplinks()
Gets the value of the datapool item nOfUplinks.
void initDpServTest(void)
Initialises ServTest.
static CrPsNumberU4_t getDpnOfGenEvtRep_4()
Gets the value of the datapool item nOfGenEvtRep_4.
static CrPsEid_t getDplastEvtEid_3()
Gets the value of the datapool item lastEvtEid_3.
static void setDpdebugVarAddrItem(int i, CrPsAddr_t debugVarAddr)
Sets the value of the i-th element in the datapool array debugVarAddr.
Definition: CrPsDpServHk.h:180
static CrPsSize_t getDplptRemSizeItem(int i)
Gets the value of the i-th element in the datapool array lptRemSize.
static void setDplargeMsgTransIdItem(int i, CrPsTid_t largeMsgTransId)
Sets the value of the i-th element in the datapool array largeMsgTransId.
static void setDplptFailCodeItem(int i, CrPsFailCode_t lptFailCode)
Sets the value of the i-th element in the datapool array lptFailCode.
Interface for accessing data pool items.
CrPsSid_t sid[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
Definition: CrPsDpServHk.h:56
static CrPsEid_t getDplastEvtEid_4()
Gets the value of the datapool item lastEvtEid_4.
static CrPsFailData_t getDpverFailData()
Gets the value of the datapool item verFailData.
void initDpServHk(void)
Initialises ServHk.
Definition: CrPsDpServHk.c:31
Interface for accessing data pool items.
static CrPsTimeOut_t getDplptTimeOutItem(int i)
Gets the value of the i-th element in the datapool array lptTimeOut.
static void setDpnOfDetectedEvts_3(CrPsNumberU4_t nOfDetectedEvts_3)
Sets the value of the datapool item nOfDetectedEvts_3.
static void setDpnOfDisabledEid_3(CrPsNumberU2_t nOfDisabledEid_3)
Sets the value of the datapool item nOfDisabledEid_3.
Interface for accessing data pool items.
static void setDppcktIdTermFailed(CrFwTypeId_t pcktIdTermFailed)
Sets the value of the datapool item pcktIdTermFailed.
Interface for accessing data pool items.
static CrPsDestSrc_t getDpOnBoardConnectDestLstItem(int i)
Gets the value of the i-th element in the datapool array OnBoardConnectDestLst.
Definition of the OutFactory component.
static void setDplptSizeItem(int i, CrPsSize_t lptSize)
Sets the value of the i-th element in the datapool array lptSize.
static void setDpOnBoardConnectDestLstItem(int i, CrPsDestSrc_t OnBoardConnectDestLst)
Sets the value of the i-th element in the datapool array OnBoardConnectDestLst.
static void setDpnOfGenEvtRep_2(CrPsNumberU4_t nOfGenEvtRep_2)
Sets the value of the datapool item nOfGenEvtRep_2.
static void setDpnOfDetectedEvts_1(CrPsNumberU4_t nOfDetectedEvts_1)
Sets the value of the datapool item nOfDetectedEvts_1.
static CrPsFlag_t getDpisEnabledItem(int i)
Gets the value of the i-th element in the datapool array isEnabled.
Definition: CrPsDpServHk.h:229
static CrFwCounterU4_t getDpnOfTermFailed()
Gets the value of the datapool item nOfTermFailed.
static void setDplptTimeItem(int i, CrFwTimeStamp_t lptTime)
Sets the value of the i-th element in the datapool array lptTime.
static CrPsParamId_t * getDplstIdArray()
Gets the datapool array lstId.
Definition: CrPsDpServHk.h:369
static CrPsFailCode_t * getDplptFailCodeArray()
Gets the datapool array lptFailCode.
size_t getDpSize(ParameterId_t id)
Get the size of a datapool item by identifier.
Definition: CrPsDp.c:250
Interface for creating and accessing a report or command packet.
Definition of the InStream component.
static CrPsAddr_t * getDpdebugVarAddrArray()
Gets the datapool array debugVarAddr.
Definition: CrPsDpServHk.h:159
static CrPsEid_t getDplastEvtEid_1()
Gets the value of the datapool item lastEvtEid_1.
size_t getDpParamSize(ParameterId_t id)
Get the size of a datapool parameter by identifier.
Definition: CrPsDp.c:266
CrPsTimeOut_t lptTimeOut[LPT_N_BUF]
CrPsTimeOut_t TimeOut.
Definition: CrPsDpServLpt.h:36
static CrPsSid_t * getDpsidArray()
Gets the datapool array sid.
Definition: CrPsDpServHk.h:279
static CrFwTypeId_t getDppcktIdPrgrFailed()
Gets the value of the datapool item pcktIdPrgrFailed.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
Definition: CrFwConstants.h:30
static void setDplptTimeOutItem(int i, CrPsTimeOut_t lptTimeOut)
Sets the value of the i-th element in the datapool array lptTimeOut.
Type description.
Definition: CrPsDpServHk.h:62
size_t getDpValue(ParameterId_t id, void *dest)
Get the value of a datapool item by identifier.
Definition: CrPsDp.c:191
static CrPsNumberU4_t getDpnOfGenEvtRep_1()
Gets the value of the datapool item nOfGenEvtRep_1.
static CrPsDestSrc_t getDpinvDestRerouting()
Gets the value of the datapool item invDestRerouting.
static void setDpverFailData(CrPsFailData_t verFailData)
Sets the value of the datapool item verFailData.
static CrPsNumberU4_t getDpnOfDetectedEvts_3()
Gets the value of the datapool item nOfDetectedEvts_3.
static CrPsNumberU2_t getDpnOfDisabledEid_1()
Gets the value of the datapool item nOfDisabledEid_1.
static void setDppcktIdReroutingFailed(CrFwTypeId_t pcktIdReroutingFailed)
Sets the value of the datapool item pcktIdReroutingFailed.
static CrPsNumberU4_t getDpnOfDetectedEvts_1()
Gets the value of the datapool item nOfDetectedEvts_1.
static CrPsEid_t getDplastEvtEid_2()
Gets the value of the datapool item lastEvtEid_2.
static CrPsFailCode_t getDpfailCodeTermFailed()
Gets the value of the datapool item failCodeTermFailed.
static CrFwTypeId_t getDppcktIdAccFailed()
Gets the value of the datapool item pcktIdAccFailed.
static void setDpdestItem(int i, CrPsDestSrc_t dest)
Sets the value of the i-th element in the datapool array dest.
Definition: CrPsDpServHk.h:210
static CrFwTimeStamp_t getDplastEvtTime_4()
Gets the value of the datapool item lastEvtTime_4.
static void setDppcktIdAccFailed(CrFwTypeId_t pcktIdAccFailed)
Sets the value of the datapool item pcktIdAccFailed.
static void setDpnOfUplinks(CrFwCounterU4_t nOfUplinks)
Sets the value of the datapool item nOfUplinks.
static CrPsDestSrc_t * getDpOnBoardConnectDestLstArray()
Gets the datapool array OnBoardConnectDestLst.
static void setDpAreYouAliveSrc(CrPsDestSrc_t AreYouAliveSrc)
Sets the value of the datapool item AreYouAliveSrc.
static void setDpnOfPrgrFailed(CrFwCounterU4_t nOfPrgrFailed)
Sets the value of the datapool item nOfPrgrFailed.
static CrPsDestSrc_t * getDplptSrcArray()
Gets the datapool array lptSrc.
static CrPsFailCode_t getDplptFailCodeItem(int i)
Gets the value of the i-th element in the datapool array lptFailCode.
static void setDplptRemSizeItem(int i, CrPsSize_t lptRemSize)
Sets the value of the i-th element in the datapool array lptRemSize.
CrPsAddr_t debugVarAddr[HK_N_DEBUG_VAR]
Array of HK_N_DEBUG_VAR elements.
Definition: CrPsDpServHk.h:37
CrFwBool_t CrPsDataPoolTestCase5()
Test the Service 5 Event reporting.
static CrPsDestSrc_t getDpOnBoardConnectDest()
Gets the value of the datapool item OnBoardConnectDest.
static void setDpnOfDisabledEid_1(CrPsNumberU2_t nOfDisabledEid_1)
Sets the value of the datapool item nOfDisabledEid_1.
CrPsNumberU2_t nSimple[HK_N_REP_DEF]
max ximple
Definition: CrPsDpServHk.h:88
static CrPsValueU4_t getDpdebugVarItem(int i)
Gets the value of the i-th element in the datapool array debugVar.
Definition: CrPsDpServHk.h:349
static CrPsStepId_t getDpstepPrgrFailed()
Gets the value of the datapool item stepPrgrFailed.
static CrFwCounterU4_t getDpnOfDownlinks()
Gets the value of the datapool item nOfDownlinks.
static void setDplstNSampRepItem(int i, CrPsNumberU2_t lstNSampRep)
Sets the value of the i-th element in the datapool array lstNSampRep.
Definition: CrPsDpServHk.h:420
CrFwBool_t CrPsDataPoolTestCase3()
Test the Service 1 Request Verificationl.
static CrFwCounterU4_t * getDppartSeqNmbArray()
Gets the datapool array partSeqNmb.
static void setDplastEvtEid_1(CrPsEid_t lastEvtEid_1)
Sets the value of the datapool item lastEvtEid_1.
static CrPsSid_t getDpsidItem(int i)
Gets the value of the i-th element in the datapool array sid.
Definition: CrPsDpServHk.h:289
static CrPsTid_t getDplargeMsgTransIdItem(int i)
Gets the value of the i-th element in the datapool array largeMsgTransId.
static void setDpsidItem(int i, CrPsSid_t sid)
Sets the value of the i-th element in the datapool array sid.
Definition: CrPsDpServHk.h:300
static void setDpcycleCntItem(int i, CrFwCounterU4_t cycleCnt)
Sets the value of the i-th element in the datapool array cycleCnt.
Definition: CrPsDpServHk.h:330
static void setDpisEnabledItem(int i, CrPsFlag_t isEnabled)
Sets the value of the i-th element in the datapool array isEnabled.
Definition: CrPsDpServHk.h:240
size_t getDpValueEx(ParameterId_t id, void *dest, size_t *pElementLength, unsigned int *pNElements)
Get the value of a datapool item plus meta information by identifier.
Definition: CrPsDp.c:212
static CrPsSize_t * getDplptSizeArray()
Gets the datapool array lptSize.
CrPsFailCode_t lptFailCode[LPT_N_BUF]
CrPsFailCode_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:53
Interface for accessing fields in packets of service "ServReqVerif".
static CrFwTimeStamp_t getDplastEvtTime_3()
Gets the value of the datapool item lastEvtTime_3.
static CrFwTimeStamp_t * getDplptTimeArray()
Gets the datapool array lptTime.
static CrFwTimeStamp_t getDplastEvtTime_1()
Gets the value of the datapool item lastEvtTime_1.
static void setDpisEidEnabledItem(int i, CrPsFlag_t isEidEnabled)
Sets the value of the i-th element in the datapool array isEidEnabled.
static CrPsNumberU4_t getDpnOfDetectedEvts_2()
Gets the value of the datapool item nOfDetectedEvts_2.
int setDpValue(ParameterId_t id, const void *src)
Set the value of a datapool item by identifier.
Definition: CrPsDp.c:233
CrFwCounterU4_t partSeqNmb[LPT_N_BUF]
conteru4_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:89
CrPsFlag_t isEnabled[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
Definition: CrPsDpServHk.h:47
static CrFwCounterU4_t getDpnOfStartFailed()
Gets the value of the datapool item nOfStartFailed.
static void setDplstSampleRepItem(int i, CrPsRepetition_t lstSampleRep)
Sets the value of the i-th element in the datapool array lstSampleRep.
Definition: CrPsDpServHk.h:450
Interface for accessing data pool items.
static void setDpnOfGenEvtRep_1(CrPsNumberU4_t nOfGenEvtRep_1)
Sets the value of the datapool item nOfGenEvtRep_1.
Type description.
static void setDpnOfStartFailed(CrFwCounterU4_t nOfStartFailed)
Sets the value of the datapool item nOfStartFailed.
static CrPsNumberU2_t * getDpnSimpleArray()
Gets the datapool array nSimple.
Definition: CrPsDpServHk.h:459
void initDpServLpt(void)
Initialises ServLpt.
Definition: CrPsDpServLpt.c:32
static void setDplastEvtEid_3(CrPsEid_t lastEvtEid_3)
Sets the value of the datapool item lastEvtEid_3.
CrFwBool_t CrPsDataPoolTestCase1()
Test the generic Datapool Getter an Setter.
static CrPsNumberU4_t getDpnOfDetectedEvts_4()
Gets the value of the datapool item nOfDetectedEvts_4.
CrPsDestSrc_t lptSrc[LPT_N_BUF]
CrPsDestSrc_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:70
Definition of the InFactory component.
static void setDpstepPrgrFailed(CrPsStepId_t stepPrgrFailed)
Sets the value of the datapool item stepPrgrFailed.
static CrFwCounterU4_t getDpnOfAccFailed()
Gets the value of the datapool item nOfAccFailed.
CrPsRepetition_t lstSampleRep[HK_N_REP_DEF *HK_MAX_N_GR]
max N group; rep[1..nGroup]
Definition: CrPsDpServHk.h:84
Definition of the utility functions for the CORDET Framework.
CrPsNumberU2_t lstNSampRep[HK_N_REP_DEF *HK_MAX_N_GR]
Max N rep; nRep[1..nGroup].
Definition: CrPsDpServHk.h:80
size_t getDpVarSize(ParameterId_t id)
Get the size of a datapool variable by identifier.
Definition: CrPsDp.c:282
static void setDpnSimpleItem(int i, CrPsNumberU2_t nSimple)
Sets the value of the i-th element in the datapool array nSimple.
Definition: CrPsDpServHk.h:480
static CrPsNumberU2_t getDpnOfDisabledEid_3()
Gets the value of the datapool item nOfDisabledEid_3.
CrFwCounterU4_t cycleCnt[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
Definition: CrPsDpServHk.h:67
static void setDpsampleBufIdItem(int i, CrPsParamId_t sampleBufId)
Sets the value of the i-th element in the datapool array sampleBufId.
Definition: CrPsDpServHk.h:510
static void setDplastEvtTime_2(CrFwTimeStamp_t lastEvtTime_2)
Sets the value of the datapool item lastEvtTime_2.
static CrPsTimeOut_t * getDplptTimeOutArray()
Gets the datapool array lptTimeOut.
static void setDpfailCodeStartFailed(CrPsFailCode_t failCodeStartFailed)
Sets the value of the datapool item failCodeStartFailed.
CrPsSize_t lptRemSize[LPT_N_BUF]
CrPsSize_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:59
static CrPsNumberU2_t * getDplstNSampRepArray()
Gets the datapool array lstNSampRep.
Definition: CrPsDpServHk.h:399
static CrPsSize_t getDplptSizeItem(int i)
Gets the value of the i-th element in the datapool array lptSize.
static void setDpfailCodeTermFailed(CrPsFailCode_t failCodeTermFailed)
Sets the value of the datapool item failCodeTermFailed.
static CrPsNumberU4_t getDpnOfGenEvtRep_3()
Gets the value of the datapool item nOfGenEvtRep_3.
CrPsSize_t lptSize[LPT_N_BUF]
CrPsSize_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:64
static CrPsValueU4_t * getDpdebugVarArray()
Gets the datapool array debugVar.
Definition: CrPsDpServHk.h:339
static void setDpnOfDisabledEid_4(CrPsNumberU2_t nOfDisabledEid_4)
Sets the value of the datapool item nOfDisabledEid_4.
static CrPsNumberU2_t getDplstNSampRepItem(int i)
Gets the value of the i-th element in the datapool array lstNSampRep.
Definition: CrPsDpServHk.h:409
static CrFwTypeId_t getDppcktIdReroutingFailed()
Gets the value of the datapool item pcktIdReroutingFailed.
static void setDplastEvtEid_4(CrPsEid_t lastEvtEid_4)
Sets the value of the datapool item lastEvtEid_4.
static CrPsNumberU2_t getDpnOfDisabledEid_2()
Gets the value of the datapool item nOfDisabledEid_2.
static void setDpnOfDetectedEvts_4(CrPsNumberU4_t nOfDetectedEvts_4)
Sets the value of the datapool item nOfDetectedEvts_4.
static CrFwDestSrc_t dest
Destination.
static void setDpAreYouAliveTimeOut(CrPsTimeOut_t AreYouAliveTimeOut)
Sets the value of the datapool item AreYouAliveTimeOut.
static void setDplastEvtEid_2(CrPsEid_t lastEvtEid_2)
Sets the value of the datapool item lastEvtEid_2.
static CrFwCounterU4_t getDpnOfReroutingFailed()
Gets the value of the datapool item nOfReroutingFailed.
static CrPsDestSrc_t getDplptSrcItem(int i)
Gets the value of the i-th element in the datapool array lptSrc.
static void setDplastEvtTime_4(CrFwTimeStamp_t lastEvtTime_4)
Sets the value of the datapool item lastEvtTime_4.
Definition of Base Component.
static void setDpnOfReroutingFailed(CrFwCounterU4_t nOfReroutingFailed)
Sets the value of the datapool item nOfReroutingFailed.
static CrFwTimeStamp_t getDplastEvtTime_2()
Gets the value of the datapool item lastEvtTime_2.
static CrFwCounterU4_t * getDpcycleCntArray()
Gets the datapool array cycleCnt.
Definition: CrPsDpServHk.h:309
CrFwBool_t CrPsDataPoolTestCase6()
Test the Service 13 Large Packet Transfer.
static CrPsParamId_t getDpsampleBufIdItem(int i)
Gets the value of the i-th element in the datapool array sampleBufId.
Definition: CrPsDpServHk.h:499
static CrPsFailCode_t getDpfailCodePrgrFailed()
Gets the value of the datapool item failCodePrgrFailed.
Type description.
Definition: CrPsDpServLpt.h:42
static CrFwTypeId_t getDppcktIdStartFailed()
Gets the value of the datapool item pcktIdStartFailed.
static CrPsNumberU4_t getDpnOfGenEvtRep_2()
Gets the value of the datapool item nOfGenEvtRep_2.
CrPsFlag_t isEidEnabled[EVT_N_EID]
Array of EVT_N_EID elements holding the enable status of the event identifiers.
Definition: CrPsDpServEvt.h:37
CrPsValueU4_t debugVar[HK_N_DEBUG_VAR]
Array of HK_N_DEBUG_VAR elements.
Definition: CrPsDpServHk.h:72
static CrFwCounterU4_t getDpcycleCntItem(int i)
Gets the value of the i-th element in the datapool array cycleCnt.
Definition: CrPsDpServHk.h:319
Type description.
Definition: CrPsDpServHk.h:32
static CrPsFailCode_t getDpfailCodeAccFailed()
Gets the value of the datapool item failCodeAccFailed.
static void setDpnOfDisabledEid_2(CrPsNumberU2_t nOfDisabledEid_2)
Sets the value of the datapool item nOfDisabledEid_2.
Definition of the OutComponent Component of the framework.
static CrPsDestSrc_t getDpAreYouAliveSrc()
Gets the value of the datapool item AreYouAliveSrc.
static CrFwCounterU4_t getDppartSeqNmbItem(int i)
Gets the value of the i-th element in the datapool array partSeqNmb.
static CrPsDestSrc_t * getDpdestArray()
Gets the datapool array dest.
Definition: CrPsDpServHk.h:189
static CrFwTimeStamp_t getDplptTimeItem(int i)
Gets the value of the i-th element in the datapool array lptTime.
static uint16_t getDplstSampleRepItem(int i)
Gets the value of the i-th element in the datapool array lstSampleRep.
Definition: CrPsDpServHk.h:439
static CrPsNumberU2_t getDpnOfDisabledEid_4()
Gets the value of the datapool item nOfDisabledEid_4.
static CrPsDestSrc_t getDpdestItem(int i)
Gets the value of the i-th element in the datapool array dest.
Definition: CrPsDpServHk.h:199
CrFwBool_t CrPsDataPoolTestCase2()
Test the Service 17 Are-You-Alive Test Connection.
CrPsParamId_t lstId[HK_N_REP_DEF *HK_MAX_N_ITEMS]
Max N Items.
Definition: CrPsDpServHk.h:76
CrPsDestSrc_t dest[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
Definition: CrPsDpServHk.h:42
Type description.
Definition: CrPsDpServEvt.h:32
static void setDplstIdItem(int i, CrPsParamId_t lstId)
Sets the value of the i-th element in the datapool array lstId.
Definition: CrPsDpServHk.h:390
static void setDpnOfGenEvtRep_4(CrPsNumberU4_t nOfGenEvtRep_4)
Sets the value of the datapool item nOfGenEvtRep_4.
static void setDppcktIdStartFailed(CrFwTypeId_t pcktIdStartFailed)
Sets the value of the datapool item pcktIdStartFailed.
static void setDpinvDestRerouting(CrPsDestSrc_t invDestRerouting)
Sets the value of the datapool item invDestRerouting.
static CrPsFlag_t * getDpisEnabledArray()
Gets the datapool array isEnabled.
Definition: CrPsDpServHk.h:219
static void setDpOnBoardConnectDest(CrPsDestSrc_t OnBoardConnectDest)
Sets the value of the datapool item OnBoardConnectDest.
static CrPsParamId_t getDplstIdItem(int i)
Gets the value of the i-th element in the datapool array lstId.
Definition: CrPsDpServHk.h:379
static void setDppartSeqNmbItem(int i, CrFwCounterU4_t partSeqNmb)
Sets the value of the i-th element in the datapool array partSeqNmb.
static CrPsTimeOut_t getDpAreYouAliveTimeOut()
Gets the value of the datapool item AreYouAliveTimeOut.
CrFwBool_t CrPsDataPoolTestCase4()
Test the Service 3 Housekeeping.
static void setDpnOfDetectedEvts_2(CrPsNumberU4_t nOfDetectedEvts_2)
Sets the value of the datapool item nOfDetectedEvts_2.
static void setDppcktIdPrgrFailed(CrFwTypeId_t pcktIdPrgrFailed)
Sets the value of the datapool item pcktIdPrgrFailed.
static void setDplastEvtTime_1(CrFwTimeStamp_t lastEvtTime_1)
Sets the value of the datapool item lastEvtTime_1.
static CrPsParamId_t * getDpsampleBufIdArray()
Gets the datapool array sampleBufId.
Definition: CrPsDpServHk.h:489
Interface for accessing data pool items.
static void setDplptSrcItem(int i, CrPsDestSrc_t lptSrc)
Sets the value of the i-th element in the datapool array lptSrc.
CrFwTimeStamp_t lptTime[LPT_N_BUF]
CrFwTimeStamp_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:75
static CrPsFlag_t * getDpisEidEnabledArray()
Gets the datapool array isEidEnabled.
static CrPsRepetition_t * getDplstSampleRepArray()
Gets the datapool array lstSampleRep.
Definition: CrPsDpServHk.h:429
static CrPsTid_t * getDplargeMsgTransIdArray()
Gets the datapool array largeMsgTransId.
static CrPsFailCode_t getDpfailCodeStartFailed()
Gets the value of the datapool item failCodeStartFailed.
static CrFwCounterU4_t getDpnOfPrgrFailed()
Gets the value of the datapool item nOfPrgrFailed.
static void setDpnOfGenEvtRep_3(CrPsNumberU4_t nOfGenEvtRep_3)
Sets the value of the datapool item nOfGenEvtRep_3.
static CrPsSize_t * getDplptRemSizeArray()
Gets the datapool array lptRemSize.
CrPsParamId_t sampleBufId[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
Definition: CrPsDpServHk.h:93
static CrPsFlag_t getDpisEidEnabledItem(int i)
Gets the value of the i-th element in the datapool array isEidEnabled.
static CrPsNumberU2_t getDpnSimpleItem(int i)
Gets the value of the i-th element in the datapool array nSimple.
Definition: CrPsDpServHk.h:469
static void setDplastEvtTime_3(CrFwTimeStamp_t lastEvtTime_3)
Sets the value of the datapool item lastEvtTime_3.
static void setDpnOfTermFailed(CrFwCounterU4_t nOfTermFailed)
Sets the value of the datapool item nOfTermFailed.
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.
static void setDpdebugVarItem(int i, CrPsValueU4_t debugVar)
Sets the value of the i-th element in the datapool array debugVar.
Definition: CrPsDpServHk.h:360
static CrFwTypeId_t getDppcktIdTermFailed()
Gets the value of the datapool item pcktIdTermFailed.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved