QHsm implementation
More...
#include "qep_port.h"
#include "qassert.h"
#include "qs_port.h"
#include "qs_pkg.h"
Go to the source code of this file.
- 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.c.
◆ QEP_EXIT_
#define QEP_EXIT_ |
( |
|
state_, |
|
|
|
qs_id_ |
|
) |
| |
Value: do { \
QS_OBJ_PRE_(me); \
QS_FUN_PRE_(state_); \
QS_END_PRE_() \
} \
} while (false)
static QEvt const QEP_reservedEvt_[]
Definition at line 81 of file qep_hsm.c.
◆ QEP_ENTER_
#define QEP_ENTER_ |
( |
|
state_, |
|
|
|
qs_id_ |
|
) |
| |
Value: do { \
QS_OBJ_PRE_(me); \
QS_FUN_PRE_(state_); \
QS_END_PRE_() \
} \
} while (false)
Definition at line 91 of file qep_hsm.c.
◆ anonymous enum
internal QEP constants
Enumerator |
---|
QEP_EMPTY_SIG_ | reserved empty signal for internal use only
|
QHSM_MAX_NEST_DEPTH_ | maximum depth of state nesting in a HSM (including the top level), must be >= 3
|
Definition at line 51 of file qep_hsm.c.
◆ QHsm_trig_()
helper function to trigger reserved event in an HSM
Definition at line 74 of file qep_hsm.c.
◆ QHsm_tran_()
static int_fast8_t QHsm_tran_ |
( |
QHsm *const |
me, |
|
|
QStateHandler |
path[QHSM_MAX_NEST_DEPTH_], |
|
|
uint_fast8_t const |
qs_id |
|
) |
| |
|
static |
helper function to execute state transition
◆ QHsm_getStateHandler_()
◆ QP_versionStr
◆ QEP_reservedEvt_
QEvt const QEP_reservedEvt_[] |
|
static |
Initial value:Static, pre-allocated standard events that the QEP event processor sends to state handler functions of QHsm-style state machine to execute entry actions, exit actions, and initial transitions.
Definition at line 66 of file qep_hsm.c.