|
QP-nano
|
Finite State Machine. More...
#include <qepn.h>
Data Fields | |
| QStateHandler | state |
| QEvent | evt |
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 (private)
Definition at line 196 of file qepn.h.
Referenced by QFsm_dispatch(), and QFsm_init().
1.7.5.1