|
QP-nano
|
#include "qpn_port.h"Go to the source code of this file.
Defines | |
| #define | QEP_EMPTY_SIG_ 0 |
| #define | QEP_MAX_NEST_DEPTH_ 5 |
Functions | |
| char const Q_ROM *Q_ROM_VAR | QP_getVersion (void) |
| get the current QP version number string | |
| void | QFsm_init (QFsm *me) |
| Initializes a FSM. | |
| void | QFsm_dispatch (QFsm *me) Q_REENTRANT |
| Dispatches an event to a FSM. | |
| QState | QHsm_top (QHsm *me) |
| The top-state. | |
| void | QHsm_init (QHsm *me) |
| Initializes a HSM. | |
| void | QHsm_dispatch (QHsm *me) Q_REENTRANT |
| Dispatches an event to a HSM. | |
QEP-nano implementation.
Definition in file qepn.c.
| #define QEP_EMPTY_SIG_ 0 |
empty signal for internal use only
Definition at line 41 of file qepn.c.
Referenced by QHsm_dispatch(), and QHsm_init().
| #define QEP_MAX_NEST_DEPTH_ 5 |
maximum depth of state nesting (including the top level), must be >= 2
Definition at line 44 of file qepn.c.
Referenced by QHsm_dispatch(), and QHsm_init().
| void QFsm_dispatch | ( | QFsm * | me | ) |
Dispatches an event to a FSM.
Processes one event at a time in Run-to-Completion fashion. The argument me is the pointer the state machine structure derived from QFsm.
Definition at line 73 of file qepn.c.
References Q_ENTRY_SIG, Q_EXIT_SIG, Q_RET_TRAN, Q_SIG, and QFsm::state.
Referenced by QK_sched_().
| void QFsm_init | ( | QFsm * | me | ) |
Initializes a FSM.
Takes the top-most initial transition in a FSM.
| me | is the pointer the state machine structure derived from ::FHsm. |
Definition at line 63 of file qepn.c.
References Q_ENTRY_SIG, Q_SIG, and QFsm::state.
| void QHsm_dispatch | ( | QHsm * | me | ) |
Dispatches an event to a HSM.
Processes one event at a time in Run-to-Completion fashion. me is the pointer the state machine structure derived from QHsm.
Definition at line 131 of file qepn.c.
References Q_ASSERT, Q_ENTRY_SIG, Q_EXIT_SIG, Q_INIT_SIG, Q_RET_HANDLED, Q_RET_IGNORED, Q_RET_SUPER, Q_RET_TRAN, Q_SIG, QEP_EMPTY_SIG_, and QEP_MAX_NEST_DEPTH_.
Referenced by QK_sched_().
| void QHsm_init | ( | QHsm * | me | ) |
Initializes a HSM.
Takes the top-most initial transition in a HSM.
| me | is the pointer the state machine structure derived from QHsm. |
Definition at line 94 of file qepn.c.
References Q_ALLEGE, Q_ASSERT, Q_ENTRY_SIG, Q_INIT_SIG, Q_RET_TRAN, Q_SIG, QEP_EMPTY_SIG_, QEP_MAX_NEST_DEPTH_, and QHsm_top().
The top-state.
QHsm_top() is the ultimate root of state hierarchy in all HSMs derived from QHsm. This state handler always returns (QState)0, which means that it "handles" all events.
Definition at line 89 of file qepn.c.
References Q_IGNORED.
Referenced by QHsm_init().
| char const Q_ROM* Q_ROM_VAR QP_getVersion | ( | void | ) |
get the current QP version number string
Definition at line 48 of file qepn.c.
References Q_ROM, Q_ROM_VAR, and QP_VERSION.
1.7.5.1