27 #include "FwSmConstants.h"
28 #include "FwSmConfig.h"
30 #include "FwPrConfig.h"
32 #include "FwPrConstants.h"
63 #define CR_FW_OUTSTREAM_STUB_MEM_LEN 100
Definition of Base Component.
Definition of the Framework Component Data (FCD) Type.
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").
void CrFwOutStreamDefConfigAction(FwPrDesc_t prDesc)
Default configuration action for an OutStream.
void CrFwOutStreamDefInitAction(FwPrDesc_t prDesc)
Default initialization action for an OutStream.
void CrFwOutStreamDefShutdownAction(FwSmDesc_t smDesc)
Default shutdown action for an OutStream.
static CrFwCmpData_t outStreamData[CR_FW_NOF_OUTSTREAM]
The base data structures for the OutStream State Machines and their Procedures.
Definition of the OutStream component.
static CrFwTypeCnt_t typeCnt[CR_FW_OUTSTREAM_STUB_MEM_LEN]
Type counters of most recently received packets.
CrFwCounterU1_t CrFwOutStreamStubGetHandoverSuccCnt()
Return the value of the handover successful counter which is incremented by the packet handover funct...
static CrFwSeqCnt_t seqCnt[CR_FW_OUTSTREAM_STUB_MEM_LEN]
Sequence counters of most recently received packets.
static CrFwBool_t pcktHandOverFlag
Return value of the packet hand-over operation.
void CrFwOutStreamStubConfigAction(FwPrDesc_t prDesc)
Dummy implementation of a configuration action for an OutStream.
CrFwCounterU1_t CrFwOutStreamStubGetHandoverCnt()
Return the value of the handover counter which is incremented by the packet handover function in CrFw...
static CrFwBool_t checkFlag
Outcome of dummy check.
void CrFwOutStreamStubShutdown(FwSmDesc_t smDesc)
Stub function implementing the shutdown operation for an OutStream.
static CrFwBool_t actionFlag
Outcome of dummy action.
CrFwSeqCnt_t CrFwOutStreamStubGetTypeCnt(CrFwCounterU1_t n)
Return the type counter of the n-th packet to have been handed over to the OutStream Stub.
CrFwBool_t CrFwOutStreamStubPcktHandover(CrFwPckt_t pckt)
Stub function implementing the hand-over operation for the OutStream.
CrFwSeqCnt_t CrFwOutStreamStubGetSeqCnt(CrFwCounterU1_t n)
Return the sequence counter of the n-th packet to have been handed over to the OutStream Stub.
void CrFwOutStreamStubInitAction(FwPrDesc_t prDesc)
Dummy implementation of a configuration action for an OutStream.
void CrFwOutStreamStubSetCheckFlag(CrFwBool_t flag)
Set the value of the check flag which determines the outcome of the dummy check of CrFwOutStreamStubD...
CrFwCounterU1_t CrFwOutStreamStubGetShutdownCnt()
Return the value of the shutdown counter which is incremented by the packet shutdown function in CrFw...
static CrFwCounterU1_t shutdownCnt
Counter incremented by stub Shutdown Operation.
static CrFwCounterU1_t pcktHandOverCnt
Counter incremented every time the packet hand-over operation is called.
void CrFwOutStreamStubSetActionFlag(CrFwBool_t flag)
Set the value of the action flag which determines the outcome of the initialization of configuration ...
void CrFwOutStreamStubDummyCheck(FwPrDesc_t prDesc)
Dummy implementation of an initialization or configuration check for an OutStream.
void CrFwOutStreamStubSetHandoverFlag(CrFwBool_t flag)
Set the value of the handover flag which determines the outcome of the packet handover in CrFwOutStre...
#define CR_FW_OUTSTREAM_STUB_MEM_LEN
Number of sequence and type counters kept in memory.
static CrFwCounterU1_t pcktHandOverSuccCnt
Counter incremented every time the packet hand-over operation is called and the packet handover is su...
Interface for the OutStream stub.
User-modifiable parameters for the OutStream components (see CrFwOutStream.h).
Interface for creating and accessing a report or command packet.
CrFwTypeCnt_t CrFwPcktGetTypeCnt(CrFwPckt_t pckt)
Return the type counter of the command or report encapsulated in a packet.
CrFwSeqCnt_t CrFwPcktGetSeqCnt(CrFwPckt_t pckt)
Return the sequence counter of the command or report encapsulated in a packet.
Interface for reporting an error detected by a framework component.
The CORDET Framework defines an interface for generating error reports (see CrFwRepErr....
Interface through which framework components access the current time.
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
unsigned int CrFwSeqCnt_t
Type used for the sequence counter of commands or reports.
unsigned char CrFwCounterU1_t
Type used for unsigned integers with a "short" range.
unsigned int CrFwTypeCnt_t
Type used for the type counter of commands or reports.
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.