21 #ifndef CRFW_CONSTANTS_H_ 22 #define CRFW_CONSTANTS_H_ 24 #include "FwPrConstants.h" 25 #include "FwSmConstants.h" 29 #define CRFW_UNUSED(x) (void)(x); 568 #define CR_FW_OUTSTREAM_TYPE 1 571 #define CR_FW_INSTREAM_TYPE 2 574 #define CR_FW_OUTCMP_TYPE 3 577 #define CR_FW_OUTREGISTRY_TYPE 4 580 #define CR_FW_OUTFACTORY_TYPE 5 583 #define CR_FW_OUTMANAGER_TYPE 6 586 #define CR_FW_OUTLOADER_TYPE 7 589 #define CR_FW_INFACTORY_TYPE 8 592 #define CR_FW_INREPORT_TYPE 9 595 #define CR_FW_INCOMMAND_TYPE 10 598 #define CR_FW_INREGISTRY_TYPE 11 601 #define CR_FW_INMANAGER_TYPE 12 604 #define CR_FW_INLOADER_TYPE 13 607 #define CR_FW_APP_TYPE 14 612 #define CR_FW_MAX_NOF_TRANS_CMDS 4 615 #define CR_FW_BASE_STATE_CREATED 1 618 #define CR_FW_BASE_STATE_INITIALIZED 2 621 #define CR_FW_BASE_STATE_CONFIGURED 3 624 #define CR_FW_BASE_TR_INIT 1 627 #define CR_FW_BASE_TR_RESET 2 630 #define CR_FW_BASE_TR_SHUTDOWN 3 633 #define CR_FW_INCMD_STATE_ACCEPTED 1 636 #define CR_FW_INCMD_STATE_PROGRESS 2 639 #define CR_FW_INCMD_STATE_TERMINATED 3 642 #define CR_FW_INCMD_STATE_ABORTED 4 645 #define CR_FW_INCMD_TR_TERMINATE CR_FW_INCOMMAND_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+0 648 #define CR_FW_INSTREAM_STATE_WAITING 1 651 #define CR_FW_INSTREAM_STATE_PCKT_AVAIL 2 654 #define CR_FW_INSTREAM_TR_GET_PCKT CR_FW_INSTREAM_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+0 657 #define CR_FW_INSTREAM_TR_PACKET_AVAILABLE CR_FW_INSTREAM_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+1 660 #define CR_FW_OUTCMP_STATE_LOADED 1 663 #define CR_FW_OUTCMP_STATE_ABORTED 2 666 #define CR_FW_OUTCMP_STATE_PENDING 3 669 #define CR_FW_OUTCMP_STATE_TERMINATED 4 672 #define CR_FW_OUTCMP_TR_TERMINATE CR_FW_OUTCMP_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+0 675 #define CR_FW_OUTSTREAM_STATE_READY 1 678 #define CR_FW_OUTSTREAM_STATE_BUFFERING 2 681 #define CR_FW_OUTSTREAM_TR_SEND CR_FW_OUTSTREAM_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+0 684 #define CR_FW_OUTSTREAM_TR_CONNECTION_AVAILABLE CR_FW_OUTSTREAM_TYPE*CR_FW_MAX_NOF_TRANS_CMDS+1 CrFwOutCmpSerialize_t serialize
Function which implements the Serialization Operation for the out-going command or report...
void(* CrFwInCmdStartAction_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Start Action Operation for an InCommand.
unsigned char CrFwCounterU1_t
Type used for unsigned integers with a "short" range.
CrFwInFactoryPoolIndex_t factoryPoolIndex
Index of the position in the pool of pre-allocated InReports in the InFactory to which the InComponen...
CrFwPcktCollect_t collectPckt
Function which implements the Packet Collect Operation.
CrFwPcktLength_t pcktLength
The length of the packet attached to the OutComponent.
Type for the data describing an OutStream.
unsigned char CrFwOutFactoryPoolIndex_t
Type for the index in the pool of pre-allocated OutComponents in the OutFactory (see CrFwOutFactory...
CrFwBool_t(* CrFwInCmdReadyCheck_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Ready Check Operation for an InCommand.
CrFwServSubType_t servSubType
The service sub-type.
CrFwCmdRepIndex_t nextServType
Index of the next service type or zero when this is the last service type.
CrFwPckt_t * pckt
The list of packets in the PQ.
CrFwCounterU2_t nOfLoadedOutCmp
Number of successfully loaded OutComponents.
struct InLoaderData CrFwInLoaderData_t
Type for the data describing an InLoader.
CrFwInRepValidityCheck_t isValid
The pointer to the function implementing the Validity Check Operation.
CrFwInCmdTerminationAction_t terminationAction
The pointer to the function implementing the Termination Action Operation.
CrFwTrackingIndex_t trackingIndex
Index through which an InReport is tracked by the InRegistry (see CrFwInRegistry.h) ...
unsigned char CrFwInFactoryPoolIndex_t
Type for the index in the pool of pre-allocated incoming components in the InFactory (see CrFwInFacto...
CrFwBool_t isServTypeEnabled
Number of discriminant values for this [type, sub-type] pair in the next row.
CrFwPckt_t pckt
The packet to be sent out.
struct InCmdData CrFwInCmdData_t
Type for the data describing an InCommand.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
CrFwDiscriminant_t discriminant
The discriminant value (or zero if no discriminant for this type/sub-type)
CrFwServType_t servType
The service type.
struct OutManagerData CrFwOutManagerData_t
Type for the data describing an OutManager.
struct OutCmpData CrFwOutCmpData_t
Type for the data describing an OutComponent.
CrFwPckt_t(* CrFwPcktCollect_t)(CrFwDestSrc_t)
Type for a pointer to a function implementing the Packet Collect Operation of an InStream.
CrFwSeqCnt_t * seqCnt
Array holding sequence counters for the groups associated to the OutStream.
unsigned short CrFwCmdRepIndex_t
Type for the index of a command or report in the InRegistry or OutRegistry.
Type for the data describing an OutComponent.
CrFwPckt_t pckt
Packet holding the InCommand.
CrFwBool_t(* CrFwInCmdValidityCheck_t)(FwPrDesc_t)
Type for a pointer to a function implementing the Validity Check Operation for an InCommand...
CrFwCmdRepType_t
Enumerated type for command and reports.
FwSmDesc_t * pcrl
Pending Command/Report List (PCRL) for the InManager.
CrFwServType_t servType
The service type.
Type for the data describing an InReport.
CrFwPckt_t pckt
Packet to which the out-going command or report is serialized.
Type for the data describing an InStream.
CrFwOutCmpEnableCheck_t isEnabled
Function which implements the Enable Check for the out-going command or report.
CrFwInCmdReadyCheck_t isReady
The pointer to the function implementing the Ready Check Operation.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
CrFwBool_t(* CrFwPcktAvailCheck_t)(CrFwDestSrc_t)
Type for a pointer to a function implementing the Packet Available Check Operation of an InStream...
InCommand kind descriptor type.
CrFwSeqCnt_t * seqCnt
Array holding sequence counters for the groups associated to the InStream.
CrFwPckt_t pckt
Packet holding the InReport.
Descriptor for a Packet Queue (PQ) in an OutStream or InStream.
Type for the data describing an InManager.
void(* CrFwOutCmpUpdate_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Update Operation for an OutComponent.
CrFwCounterU1_t nOfOutCmpInPocl
Number of OutComponents currently in POCL.
CrFwPcktHandover_t handoverPckt
Function which hands over a packet from the OutStream to the middleware.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
CrFwCounterU1_t nOfInCmpInPcrl
Number of InReports and InCommands currently in PCRL.
FwSmDesc_t inStream
InStream from which packets are to be retrieved in the next execution cycle.
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
CrFwInCmdAbortAction_t abortAction
The pointer to the function implementing the Abort Action Operation.
CrFwServType_t servType
The service type.
CrFwPcktAvailCheck_t isPcktAvail
Function which implements the Packet Available Check Operation.
Type for the data describing an InLoader.
CrFwOutCmpRepeatCheck_t isRepeat
Function which implements the Repeat Check for the out-going command or report.
CrFwInCmdReadyCheck_t isReady
Function which implements the Ready Check for the InCommand.
CrFwInCmdProgressAction_t progressAction
The pointer to the function implementing the Progress Action Operation.
CrFwDestSrc_t src
Source associated to the InStream.
CrFwBool_t isEmpty
Flag indicating whether the PQ is empty.
OutComponent kind descriptor type.
CrFwInRepUpdateAction_t updateAction
Function which implements the Update Action for the InReport.
CrFwExecStepId_t nOfProgressFailure
Number of progress steps which failed.
CrFwOutCmpUpdate_t update
The pointer to the function implementing the Update Operation.
CrFwTrackingIndex_t trackingIndex
Index through which an out-going command or report is tracked by the OutRegistry (see CrFwOutRegistry...
CrFwInCmdValidityCheck_t isValid
The pointer to the function implementing the Validity Check Operation.
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
unsigned short CrFwExecStepId_t
Type for the counter of execution progress steps.
CrFwCmdRepIndex_t index
Index of out-going command or report (see CrFwOutRegistry.h)
CrFwInCmdStartAction_t startAction
The pointer to the function implementing the Start Action Operation.
CrFwBool_t isProgressActionCompleted
Flag indicating whether the progress action has been completed.
CrFwTrackingIndex_t trackingIndex
Index through which an InCommand is tracked by the InRegistry (see CrFwInRegistry.h)
void(* CrFwInCmdProgressAction_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Progress Action Operation for an InCommand...
CrFwBool_t(* CrFwOutCmpRepeatCheck_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Repeat Check Operation for an OutComponent.
InReport kind descriptor type.
unsigned short CrFwProgressStepId_t
Type for the Progress Step Identifier of an InCommand.
CrFwCounterU1_t size
The size of the PQ (the same as the size of the pckt array)
CrFwServType_t servType
The service type.
unsigned char * isDiscriminantEnabled
The enable state for the discriminants in the range [lowerBoundDisc,lowerBoundDisc].
CrFwOutCmpEnableCheck_t isEnabled
The pointer to the function implementing the Enable Check Operation.
CrFwDiscriminant_t lowerBoundDisc
The lower bound of a range of discriminant values (or zero if no discriminant for this type/sub-type)...
CrFwProgressStepId_t progressStepId
The progress step identifier.
CrFwServSubType_t servSubType
The service sub-type.
FwSmDesc_t * pocl
Pending OutComponent List (POCL) for the OutManager.
CrFwBool_t isServSubTypeEnabled
The enable state for the service sub-type (see CrFwOutRegistry.h)
CrFwPckt_t pckt
The last packet to have been collected from the middleware.
CrFwBool_t(* CrFwInRepValidityCheck_t)(FwPrDesc_t)
Type for a pointer to a function implementing the Validity Check Operation for an InReport...
CrFwBool_t(* CrFwOutCmpEnableCheck_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Enable Check Operation for an OutComponent.
CrFwInCmdAbortAction_t abortAction
Function which implements the Abort Action for the InCommand.
CrFwInCmdValidityCheck_t isValid
Function which implements the Configuration Check for the InCommand.
CrFwOutCmpReadyCheck_t isReady
Function which implements the Ready Check for the out-going command or report.
Header file to define all user-configurable constants and types for the CORDET Framework (the non-con...
struct InManagerData CrFwInManagerData_t
Type for the data describing an InManager.
CrFwOutCmpReadyCheck_t isReady
The pointer to the function implementing the Ready Check Operation.
CrFwInCmdStartAction_t startAction
Function which implements the Start Action for the InCommand.
unsigned short int CrFwPcktLength_t
Type for the packet length.
CrFwDiscriminant_t discriminant
The discriminant value (or zero if no discriminant for this type/sub-type)
CrFwBool_t(* CrFwOutCmpReadyCheck_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Ready Check Operation for an OutComponent.
CrFwCounterU1_t nextFreePoclPos
Next free position in the POCL.
CrFwDestSrc_t dest
Destination associated to the OutStream.
CrFwDiscriminant_t upperBoundDisc
The upper bound of a range of discriminant values (or zero if no discriminant for this type/sub-type)...
CrFwCounterU1_t oldestItem
The index of the oldest item in the PQ.
CrFwCounterU2_t nOfLoadedInCmp
Number of successfully loaded InReports and InCommands.
CrFwBool_t(* CrFwPcktHandover_t)(CrFwPckt_t pckt)
Type for a pointer to a function implementing the Packet Hand-Over Operation of an OutStream...
Type for the data describing an InCommand.
CrFwInCmdProgressAction_t progressAction
Function which implements the Progress Action for the InCommand.
struct OutStreamData CrFwOutStreamData_t
Type for the data describing an OutStream.
CrFwCmdRepType_t cmdRepType
The command/report type of the out-going command or report.
CrFwOutCmpUpdate_t update
Function which implements the Update Operation for the out-going command or report.
void(* CrFwOutCmpSerialize_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Serialize Operation for an OutComponent.
struct CrFwPcktQueue * CrFwPcktQueue_t
Type used in the framework to represent a packet queue.
void(* CrFwInRepUpdateAction_t)(FwPrDesc_t)
Type for a pointer to a function implementing the Update Action Operation for an InReport.
CrFwInCmdTerminationAction_t terminationAction
Function which implements the Termination Action for the InCommand.
CrFwServSubType_t servSubType
The service sub-type.
unsigned short CrFwTrackingIndex_t
Type for the index used to track the state of a component.
CrFwInRepValidityCheck_t isValid
Function which implements the Validity Check for the InReport.
CrFwServSubType_t servSubType
The service sub-type.
CrFwOutCmpSerialize_t serialize
The pointer to the function implementing the Serialize Operation.
CrFwCounterU1_t nextFreeItem
Index of the next free slot in the PQ.
unsigned char CrFwServType_t
Type used for the service type of a command or report.
void(* CrFwInCmdAbortAction_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Abort Action Operation for an InCommand.
CrFwOutFactoryPoolIndex_t factoryPoolIndex
Index of the position in the pool of pre-allocated OutComponents in the OutFactory to which the OutCo...
struct InRepData CrFwInRepData_t
Type for the data describing an InReport.
unsigned int CrFwSeqCnt_t
Type used for the sequence counter of commands or reports.
CrFwOutCmpRepeatCheck_t isRepeat
The pointer to the function implementing the Ready Check Operation.
CrFwInFactoryPoolIndex_t factoryPoolIndex
Index of the position in the pool of pre-allocated InCommands in the InFactory to which the InCompone...
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
CrFwDiscriminant_t discriminant
The discriminant value (or zero if no discriminant for this type/sub-type)
void(* CrFwInCmdTerminationAction_t)(FwSmDesc_t)
Type for a pointer to a function implementing the Termination Action Operation for an InCommand...
Type for the data describing an OutManager.
CrFwInRepUpdateAction_t updateAction
The pointer to the function implementing the Update Action Operation.
struct InStreamData CrFwInStreamData_t
Type for the data describing an InStream.
CrFwCounterU1_t nextFreePcrlPos
Next free position in the PCRL.