QP/C  6.9.3
Real-Time Embedded Framework
QMActive Struct Reference

#include <qf.h>

Inheritance diagram for QMActive:
Inheritance graph
Collaboration diagram for QMActive:
Collaboration graph

Data Fields

QActive super

Protected Member Functions

void QMActive_ctor (QMActive *const me, QStateHandler initial)

Detailed Description

QMActive active object base class (based on QMsm implementation)

QMActive represents an active object that uses the QMsm style state machine implementation strategy. This strategy requires the use of the QM modeling tool to generate state machine code automatically, but the code is faster than in the QHsm style implementation strategy and needs less run-time support (smaller event-processor).
QMActive is not intended to be instantiated directly, but rather serves as the base class for derivation of active objects in the application.
See also
The following example illustrates how to derive an active object from QMActive. Please note that the QActive member super is defined as the first member of the derived struct (see Object Orientation).
typedef struct {
QMActive super; /* inherits QMActive */
QTimeEvt timeEvt; /* to timeout thining or eating */
uint8_t num; /* this philosopher's number */
} Philo;
unsigned char uint8_t
Definition: 16bit/stdint.h:29
Definition: qf.h:400
QActive super
Definition: qf.h:401
Definition: qf.h:480

Definition at line 400 of file qf.h.

Member Function Documentation

◆ QMActive_ctor()

void QMActive_ctor ( QMActive *const  me,
QStateHandler  initial 

protected "constructor" of an QMActive active object.

Definition at line 67 of file qf_qmact.c.

Field Documentation

◆ super

QActive super

inherits QActive

Definition at line 401 of file qf.h.

The documentation for this struct was generated from the following file: