38 for (i = 0; i < smBase->
nOfTrans; i++) {
FwSmBool_t SmDummyGuard(FwSmDesc_t smDesc)
Dummy guard which always returns true.
FwSmCounterS1_t curState
the current state of the state machine
FwSmCounterS1_t outTransIndex
index of first out-going transition in transition array of SmBaseDesc_t
void FwSmInit(FwSmDesc_t smDesc)
Initialize a state machine descriptor to represent an unconfigured state machine with no transitions...
FwSmCounterS1_t nOfActions
the number of actions (state actions + transition actions) in the state machine
FwSmAction_t * smActions
the state machine actions (state and transition actions)
FwSmCounterS1_t nOfPStates
the number of states in the state machine
SmCState_t * cStates
array holding the choice pseudo-states in the state machine
The number of guards in the base state machine is not the same as in the derived state machine...
FwSmErrCode_t errCode
either 'success' or the code of the last error encountered by the state machine
void FwSmInitDer(FwSmDesc_t smDesc, FwSmDesc_t smDescBase)
Initialize a state machine descriptor to extend another state machine (the base state machine)...
FwSmCounterS1_t outTransIndex
index of first out-going transition in the transition array of SmBaseDesc_t
FwSmCounterS1_t transCnt
the counter for the number of transitions added to the state machine
struct FwSmDesc ** esmDesc
the state machines embedded in the state machine
FwSmCounterS1_t nOfCStates
the number of choice pseudo-states in the state machine
FwSmCounterU3_t smExecCnt
the state machine execution counter
FwSmCounterS1_t nOfTrans
the number of transitions in SM
Structure representing a state machine descriptor.
FwSmCounterU3_t stateExecCnt
the state execution counter
FwSmCounterS1_t iTrAction
the index of the action associated to the transition
Structure representing the base descriptor of a state machine.
FwSmCounterS1_t nOfGuards
the number of guards in the state machine
FwSmGuard_t * smGuards
the transition guards in the state machine
void SmDummyAction(FwSmDesc_t smDesc)
Dummy action which returns without doing anything.
SmPState_t * pStates
array holding the proper states in the state machine
SmBaseDesc_t * smBase
pointer to the base descriptor
Declaration of the static creation interface for a FW State Machine.
signed char FwSmCounterS1_t
Type used for signed counters with a "short" range.
The number of actions in the base state machine is not the same as in the derived state machine...
Declaration of the internal data structures of the FW State Machine Module.
SmTrans_t * trans
array holding the transitions in the state machine