26 #include "CrFwCmpData.h" 30 #include "FwPrConfig.h" 32 #include "FwSmConfig.h" 45 #define HK_MAX_DP_MULT_SIZE 100 63 pckt = cmpSpecificData->
pckt;
79 if (rdlSlot == HK_N_REP_DEF)
100 pckt = cmpSpecificData->
pckt;
117 prData.smDesc = smDesc;
118 prData.rdlSlot = rdlSlot;
138 unsigned int i, j, k, s;
140 CrFwCounterU4_t N1, NFA, N2;
145 uint8_t N1ParamCharValue, N2ParamCharValue;
146 uint16_t N1ParamShortValue, N2ParamShortValue;
147 uint32_t N1ParamIntValue, N2ParamIntValue;
150 unsigned char N1ParamValue[HK_MAX_DP_MULT_SIZE];
159 pckt = cmpSpecificData->
pckt;
175 pos_data =
sizeof(TmHeader_t) + 1;
210 if (size<=HK_MAX_DP_MULT_SIZE)
212 for (s=0; s<size; s++)
230 for (k=0; k<NFA; k++)
238 for (i=0; i<SCSampleRepNum; i++)
242 N2ParamId =
getDplstIdItem(rdlSlot*HK_MAX_N_ITEMS + N1 + offset + j);
Type for the Framework Component Data (FCD).
uint32_t CrPsRepNum_t
Type used for the Repetition Number of a packet.
CrFwOutcome_t outcome
The outcome of an action or check executed by a state machine or by one of its procedures.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
CrFwDiscriminant_t CrFwPcktGetDiscriminant(CrFwPckt_t pckt)
Return the discriminant of the command or report encapsulated in a packet.
Interface through which applications can initialize and execute framework PUS extension components...
Header file to define all user-configurable constants and types for the IASW Application.
uint16_t CrPsParamId_t
Type used for the Parameter ID of a packet.
void CrPsHkRepUpdateAction(FwSmDesc_t smDesc)
Update action of the Periodic Housekeeping Report (3,25) out-going report packet. ...
Interface for accessing data pool items.
Type for the data describing an OutComponent.
Header file to define all service and packet identifiers.
size_t getDpSize(ParameterId_t id)
Get the size of a datapool item by identifier.
CrFwPckt_t pckt
Packet to which the out-going command or report is serialized.
Interface for creating and accessing a report or command packet.
void setPcktShort(void *p, uint32_t pos, uint16_t t)
Generic Setter for Short Values from a Packet.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
#define HK_MAX_N_REP
Maximum number of data items in a super-commutated groups in a housekeeping/diagnostic report...
size_t getDpValue(ParameterId_t id, void *dest)
Get the value of a datapool item by identifier.
static uint32_t getDpBufferElement(uint32_t i, uint32_t j, uint32_t k, uint32_t l)
Gets a Datapool Buffer Element.
static CrPsSid_t getDpsidItem(int i)
Gets the value of the i-th element in the datapool array sid.
CrFwBool_t CrPsHkRepEnableCheck(FwSmDesc_t smDesc)
Enable check of the Periodic Housekeeping Report (3,25) out-going report packet.
auxiliary Interface for accessing fields in packets of service "ServHk".
void setPcktInt(void *p, uint32_t pos, uint32_t t)
Generic Setter for Int Values from a Packet.
static CrFwDiscriminant_t disc
Discriminant.
static CrFwCounterU4_t getNFA(int i)
Gets the number of super-commutated groups (NFA) from number of sample repetition numbers (rep[]) ...
void setPcktChar(void *p, uint32_t pos, uint8_t t)
Generic Setter for Character Values from a Packet.
#define HK_MAX_REP
Maximum value of the repetition number of a super- commutated group in a housekeeping/diagnostic repo...
generic Interface for accessing fields in packets.
FwPrDesc_t getPrDescHkRepReadyCheck()
Getter for HkRepReadyCheck procedure descriptor.
void * cmpSpecificData
Derived data which are specific to each type of framework component.
Declaration of the Periodic Housekeeping Report (3,25) or Periodic Diagnostic Report (3...
CrFwBool_t CrPsHkRepReadyCheck(FwSmDesc_t smDesc)
Ready check of the Periodic Housekeeping Report (3,25) out-going report packet.
static CrPsNumberU2_t getDplstNSampRepItem(int i)
Gets the value of the i-th element in the datapool array lstNSampRep.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
#define HK_N_REP_DEF
Number of Report Definitions in the Report Definition List (maximum number of housekeeping/diagnostic...
uint8_t CrPsSid_t
Type used for the Parameter Report Structure ID of a packet.
static CrPsParamId_t getDpsampleBufIdItem(int i)
Gets the value of the i-th element in the datapool array sampleBufId.
char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
#define HK_MAX_N_GR
Maximum number of super-commutated groups in a house- keeping/diagnostic report.
Definition of the OutComponent Component of the framework.
static uint16_t getDplstSampleRepItem(int i)
Gets the value of the i-th element in the datapool array lstSampleRep.
Interface for accessing fields in packets of service "ServHk".
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.
Interface for accessing data pool items.
static CrPsNumberU2_t getDpnSimpleItem(int i)
Gets the value of the i-th element in the datapool array nSimple.