qep_pkg.h File Reference

Internal (package scope) QEP/C interface. More...

#include "qep_port.h"

Go to the source code of this file.

Defines

#define QEP_TRIG_(state_, sig_)   ((*(state_))(me, &QEP_reservedEvt_[sig_]))
#define QEP_EXIT_(state_)
#define QEP_ENTER_(state_)

Enumerations

enum  QEPConst { QEP_EMPTY_SIG_ = 0, QEP_MAX_NEST_DEPTH_ = 6 }

Variables

QEvent const QEP_reservedEvt_ []


Detailed Description

Internal (package scope) QEP/C interface.

Definition in file qep_pkg.h.


Define Documentation

#define QEP_ENTER_ ( state_   ) 

Value:

if (QEP_TRIG_(state_, Q_ENTRY_SIG) == Q_RET_HANDLED) { \
        QS_BEGIN_(QS_QEP_STATE_ENTRY, QS_smObj_, me) \
            QS_OBJ_(me); \
            QS_FUN_(state_); \
        QS_END_() \
    }
helper macro to trigger exit action in an HSM

Definition at line 65 of file qep_pkg.h.

Referenced by QHsm_dispatch(), and QHsm_init().

#define QEP_EXIT_ ( state_   ) 

Value:

if (QEP_TRIG_(state_, Q_EXIT_SIG) == Q_RET_HANDLED) { \
        QS_BEGIN_(QS_QEP_STATE_EXIT, QS_smObj_, me) \
            QS_OBJ_(me); \
            QS_FUN_(state_); \
        QS_END_() \
    }
helper macro to trigger entry action in an HSM

Definition at line 56 of file qep_pkg.h.

Referenced by QHsm_dispatch().

#define QEP_TRIG_ ( state_,
sig_   )     ((*(state_))(me, &QEP_reservedEvt_[sig_]))

helper macro to trigger reserved event in an HSM

Definition at line 52 of file qep_pkg.h.

Referenced by QFsm_dispatch(), QFsm_init(), QHsm_dispatch(), QHsm_init(), and QHsm_isIn().


Enumeration Type Documentation

enum QEPConst

internal QEP constants

Enumerator:
QEP_EMPTY_SIG_  reserved empty signal for internal use only
QEP_MAX_NEST_DEPTH_  maximum depth of state nesting (including the top level), must be >= 3

Definition at line 42 of file qep_pkg.h.


Variable Documentation

QEvent const QEP_reservedEvt_[]

preallocated reserved events

Definition at line 37 of file qep.c.


Generated on Fri Aug 1 14:15:08 2008 for QP/C by  doxygen 1.5.4