49 #ifndef FWSM_PRIVATE_H_ 50 #define FWSM_PRIVATE_H_ 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
FwSmCounterS1_t dest
the index of the destination of the transition
FwSmCounterS1_t nOfOutTrans
number of outgoing transitions from the choice pseudo-state
FwSmCounterS1_t iTrGuard
the index of the guard associated to the transition
FwSmErrCode_t
Error codes and function return codes for the state machine functions.
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 iDoAction
the do action for the state
FwSmCounterS1_t nOfPStates
the number of states in the state machine
SmCState_t * cStates
array holding the choice pseudo-states in the state machine
A proper state in a state machine.
FwSmCounterU2_t id
the identifier (the "name") of the transition
FwSmErrCode_t errCode
either 'success' or the code of the last error encountered by the state machine
FwSmCounterS1_t outTransIndex
index of first out-going transition in the transition array of SmBaseDesc_t
Header file to define all constants and types for the state machine module of the FW Profile...
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
FwSmBool_t(* FwSmGuard_t)(FwSmDesc_t)
Type for a pointer to a state machine guard.
int FwSmBool_t
Type used for booleans (0 is "false" and 1 is "true").
Either the initial or the final pseudo-state.
FwSmCounterS1_t nOfCStates
the number of choice pseudo-states in the state machine
FwSmCounterU3_t smExecCnt
the state machine execution counter
FwSmCounterS1_t nOfOutTrans
number of outgoing transitions
unsigned short int FwSmCounterU2_t
Type used for unsigned counters with a "medium" range.
unsigned int FwSmCounterU3_t
Type used for unsigned counters with a "long" range.
void * smData
the pointer to the data manipulated by the state machine actions and guards
void(* FwSmAction_t)(FwSmDesc_t)
Type for a pointer to a state machine action.
FwSmCounterS1_t nOfTrans
the number of transitions in SM
Structure representing a transition.
Structure representing a state machine descriptor.
FwSmCounterU3_t stateExecCnt
the state execution counter
FwSmBool_t SmDummyGuard(FwSmDesc_t smDesc)
Dummy guard which always returns true.
FwSmCounterS1_t iExitAction
the exit action for the state
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
A choice pseudo-state in a 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
Structure representing a choice pseudo state in a state machine.
Structure representing a proper state in state machine.
signed char FwSmCounterS1_t
Type used for signed counters with a "short" range.
FwSmCounterS1_t iEntryAction
the entry action for the state
SmTrans_t * trans
array holding the transitions in the state machine
StateType_t
Enumerated type for the type of a state in a state machine.