QP/C
Data Fields
QEvent Struct Reference

Event structure. More...

#include <qevent.h>

Data Fields

QSignal sig
uint8_t poolId_
uint8_t refCtr_

Detailed Description

Event structure.

QEvent represents events without parameters and serves as the base structure for derivation of events with parameters.

The following example illustrates how to add an event parameter by derivation of the QEvent structure. Please note that the QEvent member super_ is defined as the FIRST member of the derived struct.

typedef struct QCalcEvtTag {
    QEvent super;                                    /* derives from QEvent */
    uint8_t keyId;                               /* ID of the key depressed */
} QCalcEvt;
See also:
Encapsulation and Single Inheritance in C

Definition at line 146 of file qevent.h.


Field Documentation

uint8_t QEvent::poolId_

pool ID (0 for static event)

Definition at line 148 of file qevent.h.

uint8_t QEvent::refCtr_

reference counter

Definition at line 149 of file qevent.h.

signal of the event instance

Definition at line 147 of file qevent.h.

Referenced by QActive_get_(), QActive_postFIFO(), QEQueue_get(), QF_new_(), QF_publish(), QF_tick(), and QFsm_dispatch().


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