Functions | |
void | makeDefault1 (State *state) |
Make the given state become the default state for its parent. | |
unsigned char | makeHistoryStateDefault (State *state, State *initialChild) |
Make the given state uses its history state as the default target for transition and initialize the history state with the given state. | |
void | setEntryWork (State *state, void(*onEnter)(void)) |
Make the given state executing the given funtion when entered. | |
void | setExitWork (State *state, void(*onExit)(void)) |
Make the given state executing the given funtion when exited. | |
void | allocateSpaceForStates (void *ptr, unsigned short int nbStates) |
Allow you to allocate manually space for the child states. | |
void | allocateSpaceForTransitions (State *state, unsigned short int nbTransition) |
Allow you to allocate manually space for new transitions. | |
unsigned char | addTransition (State *from, void *to, short int eventNum, unsigned char useHistory) |
This create a transition between the source and the target state. |
unsigned char addTransition | ( | State * | from, | |
void * | to, | |||
short int | eventNum, | |||
unsigned char | useHistory | |||
) |
This create a transition between the source and the target state.
from | The source state. | |
to | The target of the transition, should be a State or an history state. | |
eventNum | The event number that will trigger the transition. | |
useHistory | Tell the system to target the history state of the 'to' state instead of the 'to' state itself. |
void allocateSpaceForStates | ( | void * | ptr, | |
unsigned short int | nbStates | |||
) |
Allow you to allocate manually space for the child states.
ptr | A pointer on a state or a stateMachine to work on. | |
nbStates | The new number of states to prepare the space for. |
void allocateSpaceForTransitions | ( | State * | state, | |
unsigned short int | nbTransition | |||
) |
Allow you to allocate manually space for new transitions.
state | A pointer on the state machine to work on. | |
nbTransition | The new number of transitions to prepare the space for. |
void makeDefault1 | ( | State * | state | ) |
Make the given state become the default state for its parent.
state | The state the should become the default state. |
Make the given state uses its history state as the default target for transition and initialize the history state with the given state.
state | The state that will use its history state as default target for transitions. | |
initialChild | Used to initialize the historyState. |
void setEntryWork | ( | State * | state, | |
void(*)(void) | onEnter | |||
) |
Make the given state executing the given funtion when entered.
state | A pointer on a valid state. | |
onEnter | A pointer on a funtion or a NULL pointer. |
void setExitWork | ( | State * | state, | |
void(*)(void) | onExit | |||
) |
Make the given state executing the given funtion when exited.
state | A pointer on a valid state. | |
onExit | A pointer on a funtion or a NULL pointer. |