34 #include "FwPrConfig.h"
35 #include "FwPrDCreate.h"
36 #include "FwSmConfig.h"
37 #include "FwSmDCreate.h"
107 if (cmpSpecificData->
isValid(prDesc) == 1)
117 return cmpSpecificData->
pckt;
124 return cmpSpecificData->
pckt;
Definition of Base Component.
Definition of the Framework Component Data (FCD) Type.
Header file to define all invariant publicly available constants and types for the CORDET Framework.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
Dummy Component Execution Procedure (CEP) for the Base Component.
static CrFwCmpData_t inRepData[CR_FW_INFACTORY_MAX_NOF_INREP]
The base data for the pre-allocated InReport instances.
CrFwPckt_t CrFwInRepGetPckt(FwSmDesc_t smDesc)
Return the pointer to the packet which holds the InReport.
CrFwServType_t CrFwInRepGetServSubType(FwSmDesc_t smDesc)
Return the sub-type of the InReport.
CrFwPckt_t CrFwInRepGetPcktFromPrDesc(FwPrDesc_t prDesc)
Convenience function to extract the InReport's packet from the descriptor of the InReport's execution...
CrFwSeqCnt_t CrFwInRepGetSeqCnt(FwSmDesc_t smDesc)
Return the sequence counter of the InReport.
CrFwServType_t CrFwInRepGetServType(FwSmDesc_t smDesc)
Return the type of the InReport.
CrFwGroup_t CrFwInRepGetGroup(FwSmDesc_t smDesc)
Return the group of the InReport.
CrFwDestSrc_t CrFwInRepGetSrc(FwSmDesc_t smDesc)
Return the source of the InReport.
CrFwBool_t CrFwInRepDefValidityCheck(FwPrDesc_t prDesc)
Default implementation of the validity check of an InReport.
CrFwPcktLength_t CrFwInRepGetParLength(FwSmDesc_t smDesc)
Return the length in bytes of the parameter area of the InReport.
void CrFwInRepConfigCheck(FwPrDesc_t prDesc)
Configuration check for an InReport.
CrFwDiscriminant_t CrFwInRepGetDiscriminant(FwSmDesc_t smDesc)
Return the discriminant of the InReport.
CrFwPckt_t CrFwInRepGetParStart(FwSmDesc_t smDesc)
Return the start address of the parameter area of the InReport.
Definition of the InReport Component of the framework.
Component Initialization Procedure (CIP) for the Base Component.
Definition of the OutFactory component.
Interface for creating and accessing a report or command packet.
CrFwPckt_t CrFwPcktGetParStart(CrFwPckt_t pckt)
Return the start address of the packet's parameter area.
CrFwSeqCnt_t CrFwPcktGetSeqCnt(CrFwPckt_t pckt)
Return the sequence counter of the command or report encapsulated in a packet.
CrFwCrc_t CrFwPcktComputeCrc(CrFwPckt_t pckt)
Compute the CRC in the command or report encapsulated in a packet.
CrFwPcktLength_t CrFwPcktGetParLength(CrFwPckt_t pckt)
Return the length in bytes of the packet's parameter area.
CrFwDestSrc_t CrFwPcktGetSrc(CrFwPckt_t pckt)
Return the source of the command or report encapsulated in a packet.
CrFwServSubType_t CrFwPcktGetServSubType(CrFwPckt_t pckt)
Return the service sub-type of the command or report encapsulated in a packet.
CrFwGroup_t CrFwPcktGetGroup(CrFwPckt_t pckt)
Return the group of the command/report encapsulated in a packet.
CrFwCrc_t CrFwPcktGetCrc(CrFwPckt_t pckt)
Return the CRC of the command or report encapsulated in a packet.
CrFwDiscriminant_t CrFwPcktGetDiscriminant(CrFwPckt_t pckt)
Return the discriminant of the command or report encapsulated in a packet.
CrFwServType_t CrFwPcktGetServType(CrFwPckt_t pckt)
Return the service type of the command or report encapsulated in a packet.
Interface for reporting an error detected by a framework component.
Component Reset Procedure (CRP) for the Base Component.
unsigned int CrFwSeqCnt_t
Type used for the sequence counter of commands or reports.
unsigned char CrFwServType_t
Type used for the service type of a command or report.
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
unsigned short int CrFwPcktLength_t
Type for the packet length.
unsigned char CrFwGroup_t
Type used for the destination or source group of a packet.
Definition of the utility functions for the CORDET Framework.
Type for the Framework Component Data (FCD).
CrFwOutcome_t outcome
The outcome of an action or check executed by a state machine or by one of its procedures.
void * cmpSpecificData
Derived data which are specific to each type of framework component.
Type for the data describing an InReport.
CrFwPckt_t pckt
Packet holding the InReport.
CrFwInRepValidityCheck_t isValid
Function which implements the Validity Check for the InReport.