QP/C++ 6.9.3
qep_hsm.cpp File Reference

QP::QHsm implementation. More...

#include "qep_port.hpp"
#include "qs_port.hpp"
#include "qs_pkg.hpp"
#include "qassert.h"
Include dependency graph for qep_hsm.cpp:

Go to the source code of this file.

Namespaces

 QP
 namespace associated with the QP/C++ framework
 

Macros

#define QEP_TRIG_(state_, sig_)    ((*(state_))(this, &QEP_reservedEvt_[sig_]))
 helper macro to trigger internal event in an HSM More...
 
#define QEP_EXIT_(state_)
 helper macro to trigger exit action in an HSM More...
 
#define QEP_ENTER_(state_)
 helper macro to trigger entry action in an HSM More...
 

Enumerations

enum  : QSignal { QEP_EMPTY_SIG_ = 0U }
 

Variables

static QEvt const QEP_reservedEvt_ [4]
 

Detailed Description

QP::QHsm implementation.

Definition in file qep_hsm.cpp.

Macro Definition Documentation

◆ QEP_TRIG_

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

helper macro to trigger internal event in an HSM

Definition at line 51 of file qep_hsm.cpp.

◆ QEP_EXIT_

#define QEP_EXIT_ (   state_)
Value:
do { \
if (QEP_TRIG_(state_, Q_EXIT_SIG) == Q_RET_HANDLED) { \
QS_BEGIN_PRE_(QS_QEP_STATE_EXIT, qs_id) \
QS_OBJ_PRE_(this); \
QS_FUN_PRE_(state_); \
QS_END_PRE_() \
} \
} while (false)
@ QS_QEP_STATE_EXIT
a state was exited
Definition: qs.hpp:68
#define QEP_TRIG_(state_, sig_)
helper macro to trigger internal event in an HSM
Definition: qep_hsm.cpp:51

helper macro to trigger exit action in an HSM

Definition at line 55 of file qep_hsm.cpp.

◆ QEP_ENTER_

#define QEP_ENTER_ (   state_)
Value:
do { \
if (QEP_TRIG_(state_, Q_ENTRY_SIG) == Q_RET_HANDLED) { \
QS_BEGIN_PRE_(QS_QEP_STATE_ENTRY, qs_id) \
QS_OBJ_PRE_(this); \
QS_FUN_PRE_(state_); \
QS_END_PRE_() \
} \
} while (false)
@ QS_QEP_STATE_ENTRY
a state was entered
Definition: qs.hpp:67

helper macro to trigger entry action in an HSM

Definition at line 65 of file qep_hsm.cpp.