23 #ifndef CRPSDPSERVHK_H_ 24 #define CRPSDPSERVHK_H_ 27 #include <CrFwUserConstants.h> 120 return SampleBuffer[
i][j][k][l];
129 SampleBuffer[
i][j][k][l] = t;
143 uint32_t curSCSampleRepNum;
148 if (curSCSampleRepNum == 0)
191 return &dpServHkParams.
dest[0];
201 return dpServHkParams.
dest[
i];
251 return &dpServHkParams.
period[0];
261 return dpServHkParams.
period[
i];
272 dpServHkParams.
period[
i] = period;
281 return &dpServHkParams.
sid[0];
291 return dpServHkParams.
sid[
i];
302 dpServHkParams.
sid[
i] = sid;
371 return &dpServHkVars.
lstId[0];
381 return dpServHkVars.
lstId[
i];
392 dpServHkVars.
lstId[
i] = lstId;
461 return &dpServHkVars.
nSimple[0];
static CrPsPeriod_t getDpperiodItem(int i)
Gets the value of the i-th element in the datapool array period.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
static CrPsAddr_t getDpdebugVarAddrItem(int i)
Gets the value of the i-th element in the datapool array debugVarAddr.
static void setDpBufferElement(uint32_t i, uint32_t j, uint32_t k, uint32_t l, uint32_t t)
Sets a Datapool Buffer Element.
static void setDpdebugVarAddrItem(int i, CrPsAddr_t debugVarAddr)
Sets the value of the i-th element in the datapool array debugVarAddr.
Header file to define all user-configurable constants and types for the IASW Application.
CrPsSid_t sid[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
uint16_t CrPsParamId_t
Type used for the Parameter ID of a packet.
static CrPsFlag_t getDpisEnabledItem(int i)
Gets the value of the i-th element in the datapool array isEnabled.
static CrPsParamId_t * getDplstIdArray()
Gets the datapool array lstId.
static CrPsAddr_t * getDpdebugVarAddrArray()
Gets the datapool array debugVarAddr.
static CrPsSid_t * getDpsidArray()
Gets the datapool array sid.
#define HK_MAX_N_REP
Maximum number of data items in a super-commutated groups in a housekeeping/diagnostic report...
uint16_t CrPsDestSrc_t
Type used for the Destination or Source of a packet.
static void setDpdestItem(int i, CrPsDestSrc_t dest)
Sets the value of the i-th element in the datapool array dest.
CrPsAddr_t debugVarAddr[HK_N_DEBUG_VAR]
Array of HK_N_DEBUG_VAR elements.
CrPsNumberU2_t nSimple[HK_N_REP_DEF]
max ximple
static CrPsValueU4_t getDpdebugVarItem(int i)
Gets the value of the i-th element in the datapool array debugVar.
static uint32_t getDpBufferElement(uint32_t i, uint32_t j, uint32_t k, uint32_t l)
Gets a Datapool Buffer Element.
static void setDplstNSampRepItem(int i, CrPsNumberU2_t lstNSampRep)
Sets the value of the i-th element in the datapool array lstNSampRep.
static CrPsSid_t getDpsidItem(int i)
Gets the value of the i-th element in the datapool array sid.
static void setDpsidItem(int i, CrPsSid_t sid)
Sets the value of the i-th element in the datapool array sid.
static void setDpcycleCntItem(int i, CrFwCounterU4_t cycleCnt)
Sets the value of the i-th element in the datapool array cycleCnt.
static void setDpisEnabledItem(int i, CrPsFlag_t isEnabled)
Sets the value of the i-th element in the datapool array isEnabled.
CrPsFlag_t isEnabled[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
static void setDplstSampleRepItem(int i, CrPsRepetition_t lstSampleRep)
Sets the value of the i-th element in the datapool array lstSampleRep.
static CrFwCounterU4_t getNFA(int i)
Gets the number of super-commutated groups (NFA) from number of sample repetition numbers (rep[]) ...
#define HK_MAX_REP
Maximum value of the repetition number of a super- commutated group in a housekeeping/diagnostic repo...
static CrPsNumberU2_t * getDpnSimpleArray()
Gets the datapool array nSimple.
void initDpServHk(void)
Initialises ServHk.
CrPsRepetition_t lstSampleRep[HK_N_REP_DEF *HK_MAX_N_GR]
max N group; rep[1..nGroup]
CrPsNumberU2_t lstNSampRep[HK_N_REP_DEF *HK_MAX_N_GR]
Max N rep; nRep[1..nGroup].
static void setDpnSimpleItem(int i, CrPsNumberU2_t nSimple)
Sets the value of the i-th element in the datapool array nSimple.
CrFwCounterU4_t cycleCnt[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
static void setDpsampleBufIdItem(int i, CrPsParamId_t sampleBufId)
Sets the value of the i-th element in the datapool array sampleBufId.
static CrPsNumberU2_t * getDplstNSampRepArray()
Gets the datapool array lstNSampRep.
static CrPsValueU4_t * getDpdebugVarArray()
Gets the datapool array debugVar.
static CrPsNumberU2_t getDplstNSampRepItem(int i)
Gets the value of the i-th element in the datapool array lstNSampRep.
static CrFwDestSrc_t dest
Destination.
CrPsPeriod_t period[HK_N_REP_DEF]
Collection period in units of HK_COLLECT_PER.
#define HK_N_REP_DEF
Number of Report Definitions in the Report Definition List (maximum number of housekeeping/diagnostic...
static CrFwCounterU4_t * getDpcycleCntArray()
Gets the datapool array cycleCnt.
uint8_t CrPsSid_t
Type used for the Parameter Report Structure ID of a packet.
static void setDpperiodItem(int i, CrPsPeriod_t period)
Sets the value of the i-th element in the datapool array period.
static CrPsParamId_t getDpsampleBufIdItem(int i)
Gets the value of the i-th element in the datapool array sampleBufId.
static CrPsPeriod_t * getDpperiodArray()
Gets the datapool array period.
CrPsValueU4_t debugVar[HK_N_DEBUG_VAR]
Array of HK_N_DEBUG_VAR elements.
#define HK_MAX_N_GR
Maximum number of super-commutated groups in a house- keeping/diagnostic report.
static CrFwCounterU4_t getDpcycleCntItem(int i)
Gets the value of the i-th element in the datapool array cycleCnt.
static CrPsDestSrc_t * getDpdestArray()
Gets the datapool array dest.
static uint16_t getDplstSampleRepItem(int i)
Gets the value of the i-th element in the datapool array lstSampleRep.
static CrPsDestSrc_t getDpdestItem(int i)
Gets the value of the i-th element in the datapool array dest.
CrPsParamId_t lstId[HK_N_REP_DEF *HK_MAX_N_ITEMS]
Max N Items.
CrPsDestSrc_t dest[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
static void setDplstIdItem(int i, CrPsParamId_t lstId)
Sets the value of the i-th element in the datapool array lstId.
static CrPsFlag_t * getDpisEnabledArray()
Gets the datapool array isEnabled.
static CrPsParamId_t getDplstIdItem(int i)
Gets the value of the i-th element in the datapool array lstId.
#define HK_N_SAMP_BUF
Number of service 3 Sampling Buffers.
static CrPsParamId_t * getDpsampleBufIdArray()
Gets the datapool array sampleBufId.
static CrPsRepetition_t * getDplstSampleRepArray()
Gets the datapool array lstSampleRep.
CrPsParamId_t sampleBufId[HK_N_REP_DEF]
Array of HK_N_REP_DEF elements.
static CrPsNumberU2_t getDpnSimpleItem(int i)
Gets the value of the i-th element in the datapool array nSimple.
static void setDpdebugVarItem(int i, CrPsValueU4_t debugVar)
Sets the value of the i-th element in the datapool array debugVar.
#define HK_N_DEBUG_VAR
Number of debug variables.