61 flow = &(prBase->
flows[0]);
72 while (trueGuardFound) {
74 if (flow->
dest == 0) {
89 decNode = &(prBase->
dNodes[(-flow->
dest) - 1]);
99 if (trueGuardFound == 0) {
Structure representing a decision node in a procedure.
Structure representing an action node in a procedure.
FwPrCounterU3_t FwPrGetNodeExecCnt(FwPrDesc_t prDesc)
Return the Node Execution Counter.
FwPrCounterS1_t iAction
index of the action attached to the node
Structure representing the base descriptor of a procedure.
An error was encountered while executing a transition in a procedure (see FwPrExecute).
FwPrCounterS1_t dest
the index of the destination of the control flow
PrFlow_t * flows
array holding the control flows in the procedure
PrBaseDesc_t * prBase
pointer to the base descriptor
PrANode_t * aNodes
array holding the action nodes in the procedure
unsigned int FwPrCounterU3_t
Type used for unsigned counters with a "long" range.
void FwPrStop(FwPrDesc_t prDesc)
Stop a procedure.
int FwPrBool_t
Type used for booleans (0 is "false" and 1 is "true").
PrDNode_t * dNodes
array holding the decision nodes in the procedure
FwPrCounterS1_t iGuard
the index of the guard associated to the control flow
FwPrBool_t PrDummyGuard(FwPrDesc_t prDesc)
Dummy guard which always returns true.
FwPrCounterU3_t FwPrGetExecCnt(FwPrDesc_t prDesc)
Return the Procedure Execution Counter.
Structure representing a control flow.
FwPrCounterU3_t nodeExecCnt
the node execution counter
FwPrErrCode_t errCode
either 'success' or the code of the last error encountered by the procedure
FwPrErrCode_t
Error codes and function return codes for the procedure functions.
FwPrCounterS1_t outFlowIndex
index of first out-going control flow in control flow array
void FwPrExecute(FwPrDesc_t prDesc)
Execute a procedure.
signed char FwPrCounterS1_t
Type used for signed counters with a "short" range.
Structure representing a procedure descriptor.
FwPrCounterS1_t nOfOutTrans
number of outgoing control flows from the decision node
FwPrAction_t * prActions
the procedure actions
FwPrBool_t FwPrIsStarted(FwPrDesc_t prDesc)
Check whether the procedure is started.
FwPrCounterS1_t FwPrGetCurNode(FwPrDesc_t prDesc)
Return the identifier of the current action node in a procedure.
Declaration of the internal data structures of the FW Procedure Module.
FwPrCounterS1_t iFlow
index of out-going control flows
FwPrCounterU3_t prExecCnt
the procedure execution counter
FwPrGuard_t * prGuards
the control flow guards in the procedure
Declaration of the execution interface for a FW Procedure.
FwPrCounterS1_t curNode
the current node of the procedure
void FwPrStart(FwPrDesc_t prDesc)
Start a procedure.
FwPrErrCode_t FwPrGetErrCode(FwPrDesc_t prDesc)
Return the error code of the argument procedure.
void FwPrRun(FwPrDesc_t prDesc)
Run a procedure.