Hierarchical State Machine class (QMsm-style state machine implementation strategy)
More...
Hierarchical State Machine class (QMsm-style state machine implementation strategy)
QMsm (QM State Machine) provides a more efficient state machine implementation strategy than QHsm, but requires the use of the QM modeling tool, but are the fastest and need the least run-time support (the smallest event-processor taking up the least code space).
- Note
- QMsm is not intended to be instantiated directly, but rather serves as the abstract base class for derivation of state machines in the application code.
- Traceability
-
- Usage
- The following example illustrates how to derive a state machine class from QMsm. Please note that the QMsm member
super
is defined as the first member of the derived struct. typedef struct {
double operand1;
double operand2;
char display[DISP_WIDTH + 1];
uint8_t len;
uint8_t opKey;
} Calc;
Hierarchical State Machine class (QMsm-style state machine implementation strategy)
Definition at line 373 of file qp.h.