CORDET Framework - C2 Implementation
CrPsUtilitiesServHk.c
Go to the documentation of this file.
1 
21 #include "CrPsUtilitiesServHk.h"
22 #include "Pckt/CrFwPckt.h" /* --- interface to adaptation point CrFwPckt --- */
23 
24 /* CrFramework includes */
27 #include <CrFwCmpData.h>
28 
29 /* FwProfile includes */
30 #include <FwPrCore.h>
31 #include <FwPrConfig.h>
32 #include <FwSmConfig.h>
33 
40 
41 #include <DataPool/CrPsDp.h>
42 #include <DataPool/CrPsDpServHk.h>
43 
44 #include <stdlib.h>
45 
46 /* global handles for the procedures */
47 FwPrDesc_t prDescHkCmd3s1Start, prDescHkCmd3s3Start, prDescHkRepReadyCheck;
48 FwPrDesc_t prDescMultiSidCmdStart, prDescCmd3s9Prgr;
49 
50 
55 {
56  /***********************************************************************/
57  /* Service Housekeeping Create Hk ParRep Procedure */
58  /***********************************************************************/
59  prDescHkCmd3s1Start = CrPsCmd3s1StartCreate(NULL);
60  if (FwPrCheck(prDescHkCmd3s1Start) != prSuccess)
61  {
62  return EXIT_FAILURE;
63  }
64 
65  /***********************************************************************/
66  /* Service Housekeeping Delete HK Struct Procedure */
67  /***********************************************************************/
68  prDescHkCmd3s3Start = CrPsCmd3s3StartCreate(NULL);
69  if (FwPrCheck(prDescHkCmd3s3Start) != prSuccess)
70  {
71  return EXIT_FAILURE;
72  }
73 
74  /***********************************************************************/
75  /* Service Housekeeping HkRep Ready Check Procedure */
76  /***********************************************************************/
77  prDescHkRepReadyCheck = CrPsRep3s25ReadyCreate(NULL);
78  if (FwPrCheck(prDescHkRepReadyCheck) != prSuccess)
79  {
80  return EXIT_FAILURE;
81  }
82 
83  /***********************************************************************/
84  /* Service Housekeeping Multi-SID Command Procedure */
85  /***********************************************************************/
86  prDescMultiSidCmdStart = CrPsCmd3SidStartCreate(NULL);
87  if (FwPrCheck(prDescMultiSidCmdStart) != prSuccess) {
88  return EXIT_FAILURE;
89  }
90 
91  /***********************************************************************/
92  /* Service Housekeeping HkRepStructCmd Command Procedure */
93  /***********************************************************************/
94  prDescCmd3s9Prgr = CrPsCmd3s9PrgrCreate(NULL);
95  if (FwPrCheck(prDescCmd3s9Prgr) != prSuccess) {
96  return EXIT_FAILURE;
97  }
98 
99  /* initialize Datapool Values */
100  initDpServHk();
101 
102  return EXIT_SUCCESS;
103 }
104 
109 {
110  return;
111 }
112 
116 inline FwPrDesc_t getPrDescHkCmd3s1Start()
117 {
118  return prDescHkCmd3s1Start;
119 }
120 
124 inline FwPrDesc_t getPrDescHkCmd3s3Start()
125 {
126  return prDescHkCmd3s3Start;
127 }
128 
132 inline FwPrDesc_t getPrDescHkRepReadyCheck()
133 {
134  return prDescHkRepReadyCheck;
135 }
136 
140 inline FwPrDesc_t getPrDescMultiSidCmdStart()
141 {
142  return prDescMultiSidCmdStart;
143 }
144 
148 inline FwPrDesc_t getPrDescCmd3s9Prgr()
149 {
150  return prDescCmd3s9Prgr;
151 }
Interface through which applications can initialize and execute framework PUS extension components...
Create one instance of the CrPsCmd3s9Prgr procedure.
void initDpServHk(void)
Initialises ServHk.
Definition: CrPsDpServHk.c:31
Create one instance of the CrPsCmd3SidStart procedure.
Interface for accessing data pool items.
FwPrDesc_t CrPsRep3s25ReadyCreate(void *prData)
Create a new procedure descriptor.
Create one instance of the CrPsCmd3s3Start procedure.
Definition of the OutFactory component.
Header file to define all service and packet identifiers.
Interface for creating and accessing a report or command packet.
void CrPsExecServHk()
Execution of CORDET Framework PUS Extension components.
FwPrDesc_t getPrDescCmd3s9Prgr()
Getter for Cmd3s9Prgr procedure descriptor.
Create one instance of the CrPsRep3s25Ready procedure.
FwPrDesc_t getPrDescHkCmd3s1Start()
Getter for HkCmd3s1Start procedure descriptor.
FwPrDesc_t getPrDescHkRepReadyCheck()
Getter for HkRepReadyCheck procedure descriptor.
FwPrDesc_t getPrDescMultiSidCmdStart()
Getter for MultiSidCmdStart procedure descriptor.
Create one instance of the CrPsCmd3s1Start procedure.
FwPrDesc_t getPrDescHkCmd3s3Start()
Getter for HkCmd3s3Start procedure descriptor.
FwPrDesc_t CrPsCmd3s1StartCreate(void *prData)
Create a new procedure descriptor.
int CrPsInitServHk()
Initialization of CORDET Framework PUS Extension components.
FwPrDesc_t CrPsCmd3SidStartCreate(void *prData)
Create a new procedure descriptor.
FwPrDesc_t CrPsCmd3s3StartCreate(void *prData)
Create a new procedure descriptor.
FwPrDesc_t CrPsCmd3s9PrgrCreate(void *prData)
Create a new procedure descriptor.
Interface for accessing data pool items.
Definition of the OutLoader component.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved