25 #include "FwSmConstants.h" 26 #include "FwSmDCreate.h" 27 #include "FwSmConfig.h" 29 #include "FwPrConstants.h" 30 #include "FwPrDCreate.h" 31 #include "FwPrConfig.h" 93 if (FwPrGetNodeExecCnt(prDesc) > 0)
144 while (pos_lower < pos_upper) {
146 if (pos_half == pos_lower)
148 if (targetKey > cmdRepKindArray[pos_half]) {
149 pos_lower = pos_half;
150 }
else if (targetKey < cmdRepKindArray[pos_half]) {
151 pos_upper = pos_half;
156 if (targetKey == cmdRepKindArray[pos_lower])
159 if (targetKey == cmdRepKindArray[pos_upper])
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 CrFwSmEmptyAction(FwSmDesc_t smDesc)
Convenience function to be used in a state machine as default implementation for an action which retu...
Definition of the Framework Component Data (FCD) Type.
#define CRFW_UNUSED(x)
A macro that can be used to specify that a function parameter is not used.
void CrFwSetAppErrCode(CrFwAppErrCode_t errCode)
Set the value of the application error code (see CrFwGetAppErrCode).
void CrFwSetPrOutcome(FwPrDesc_t prDesc, CrFwOutcome_t outcome)
Convenience function to set the outcome field of the component data of a procedure.
CrFwBool_t CrFwPrCheckAlwaysTrue(FwPrDesc_t prDesc)
Convenience function to be used in a procedure as default implementation for a check which always ret...
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
CrFwCmdRepKindIndex_t CrFwFindCmdRepKindIndex(CrFwCmdRepKindKey_t *cmdRepKindArray, CrFwCmdRepKindIndex_t length, CrFwCmdRepKindKey_t targetKey)
Convenience function to retrieve the index of an array where a certain target value is located...
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
CrFwAppErrCode_t
Application error code for the framework components.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
FwSmBool_t CrFwIsSmOutcomeZero(FwSmDesc_t smDesc)
Convenience function to check whether the outcome of the last check or action is equal to 0 ("false")...
unsigned int CrFwCmdRepKindKey_t
Type for the component kind key in CrFwInFactory.c and CrFwOutFactory.c.
unsigned short CrFwCmdRepKindIndex_t
Type for the index of a command or report kind.
CrFwBool_t CrFwSmCheckAlwaysTrue(FwSmDesc_t smDesc)
Convenience function to be used in a state machine as default implementation for a check which always...
void CrFwSmSuccessAction(FwSmDesc_t smDesc)
Convenience function to be used in a state machine as default implementation for an action which sets...
void CrFwPrEmptyAction(FwPrDesc_t prDesc)
Convenience function to be used in a procedure as default implementation for an action which returns ...
CrFwOutcome_t CrFwGetSmOutcome(FwSmDesc_t smDesc)
Convenience function to get the outcome of the last check or action of a state machine.
void CrFwSetSmOutcome(FwSmDesc_t smDesc, CrFwOutcome_t outcome)
Convenience function to set the outcome of the last check or action of a state machine.
FwSmBool_t CrFwIsSmOutcomeTwo(FwSmDesc_t smDesc)
Convenience function to check whether the outcome of the last check or action is equal to 2...
Definition of Base Component.
Component Initialization Procedure (CIP) for the Base Component.
FwPrBool_t CrFwIsPrOutcomeOne(FwPrDesc_t prDesc)
Convenience function to check whether the outcome of the last check or action is equal to 1 ("true" o...
static CrFwAppErrCode_t appErrCode
The application error code.
No application errors have been detected.
CrFwAppErrCode_t CrFwGetAppErrCode()
Return the value of the application error code.
FwSmBool_t CrFwIsSmOutcomeOne(FwSmDesc_t smDesc)
Convenience function to check whether the outcome of the last check or action is equal to 1 ("true")...
CrFwBool_t CrFwSmCheckAlwaysFalse(FwSmDesc_t smDesc)
Convenience function to be used in a state machine as default implementation for a check which always...
Component Reset Procedure (CRP) for the Base Component.
FwPrBool_t CrFwWaitOnePrCycle(FwPrDesc_t prDesc)
Convenience function which returns true when a procedure has spent more than one cycle in the current...