QP/C
Defines | Enumerations | Variables
qep_pkg.h File Reference

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

#include "qep_port.h"
#include "qs_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

QEvt const QEP_reservedEvt_ [4]

Detailed Description

Internal (package scope) QEP/C interface.

Definition in file qep_pkg.h.


Define Documentation

#define QEP_ENTER_ (   state_)
Value:
do { \
    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_() \
    } \
} while (0)

helper macro to trigger entry action in an HSM

Definition at line 73 of file qep_pkg.h.

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

#define QEP_EXIT_ (   state_)
Value:
do { \
    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_() \
    } \
} while (0)

helper macro to trigger exit action in an HSM

Definition at line 63 of file qep_pkg.h.

Referenced by QFsm_dispatch(), and QHsm_dispatch().

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

helper macro to trigger reserved event in an HSM

Definition at line 59 of file qep_pkg.h.

Referenced by 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 49 of file qep_pkg.h.


Variable Documentation

preallocated reserved events

Definition at line 44 of file qep.c.