#include <qepn.h>
Public Member Functions | |
#define | QHsm_childState(me_, parent_) QHsm_childState_(Q_HSM_UPCAST(me_), Q_STATE_CAST(parent_)) |
Data Fields | |
QHsmVtable const * | vptr |
QStateHandler | state |
QStateHandler | temp |
QEvt | evt |
Protected Member Functions | |
void | QHsm_ctor (QHsm *const me, QStateHandler initial) |
QState | QHsm_top (void const *const me) |
Private Member Functions | |
void | QHsm_init_ (QHsm *const me) |
void | QHsm_dispatch_ (QHsm *const me) |
QStateHandler | QHsm_childState_ (QHsm *const me, QStateHandler const parent) |
Static Private Member Functions | |
static int_fast8_t | QHsm_tran_ (QHsm *const me, QStateHandler path[QHSM_MAX_NEST_DEPTH_]) |
Hierarchical State Machine
|
protected |
"constructor" of a HSM.
[in,out] | me | pointer (see Object Orientation) |
[in] | initial | pointer to the top-most initial state-handler function in the derived state machine |
|
private |
Implementation of the top-most initial transition in QHsm.
[in,out] | me | pointer (see Object Orientation) |
|
private |
Implementation of dispatching events to QHsm.
[in,out] | me | pointer (see Object Orientation) |
|
protected |
the top-state.
[in] | me | pointer (see Object Orientation) |
me
to this state handler is not used. It is provided for conformance with the state-handler function signature QStateHandler.
|
staticprivate |
[in,out] | me | pointer (see Object Orientation) |
[in,out] | path | array of pointers to state-handler functions to execute the entry actions |
path
parameter.
|
private |
parent
, such that this child state is an ancestor of the currently active state. The main purpose of this function is to support shallow history transitions in state machines derived from QHsm.[in] | me | pointer (see Object Orientation) |
[in] | parent | pointer to the state-handler function |
parent
state, which is an ancestor of the current active state. For the corner case when the currently active state is the given parent
state, function returns the parent
state.QHsmVtable const* vptr |
QStateHandler state |
QStateHandler temp |