Run functions


Functions

unsigned char startStateMachine (StateMachine *stateMachine)
 Start the given state machine and make it enter its first state.
void sendEvent (StateMachine *stateMachine, short int event)
 Test if a transition should be triggered and trigger it if necessary.

Function Documentation

void sendEvent ( StateMachine stateMachine,
short int  event 
)

Test if a transition should be triggered and trigger it if necessary.

Parameters:
stateMachine The state machine that should receive the event.
event The event ID.
This call test if any transition is needed and, if so, trigger the transition.

unsigned char startStateMachine ( StateMachine stateMachine  ) 

Start the given state machine and make it enter its first state.

Parameters:
stateMachine A pointer on the state machine to start.
Returns:
0 is returned if the call fails and 1 is returned otherwise.


Generated on Sat Sep 18 15:39:57 2010 for Easy C State Machine by  doxygen 1.5.8