|
QP/C
|
Finite State Machine. More...
#include <qep.h>
Data Fields | |
| QStateHandler | state |
Finite State Machine.
QFsm represents a traditional non-hierarchical Finite State Machine (FSM) without state hierarchy, but with entry/exit actions.
The following example illustrates how to derive a state machine structure from QFsm. Please note that the QFsm member super is defined as the FIRST member of the derived struct.
typedef struct QBombTag { QFsm super; /* derives from QFsm */ uint8_t timeout; /* number of seconds till explosion */ uint8_t defuse; /* the secret defuse code */ uint8_t code; /* the current defuse code entry */ } QBomb;
current active state (state-variable)
Definition at line 85 of file qep.h.
Referenced by QFsm_dispatch().
1.7.6.1