QP/C++  7.0.1
Real-Time Embedded Framework
qep_hsm.cpp File Reference

QP::QHsm implementation. More...

#include "qep_port.hpp"
#include "qs_port.hpp"
#include "qs_pkg.hpp"
#include "qassert.h"

Go to the source code of this file.

Namespaces

namespace  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...
 

Detailed Description

Date
Last updated on: 2021-12-23
Version
Last updated for: Version 7.0.0, 2022-04-30
Traceability:

traces to: RQP103

traces to: RQP104

traces to: RQP120

traces to: RQP130

Definition in file qep_hsm.cpp.

Macro Definition Documentation

◆ QEP_TRIG_

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

Definition at line 46 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:60
#define QEP_TRIG_(state_, sig_)
helper macro to trigger internal event in an HSM
Definition: qep_hsm.cpp:46

Definition at line 50 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:59

Definition at line 60 of file qep_hsm.cpp.