QP/C
Data Fields
QEvt Struct Reference

Event structure. More...

#include <qevt.h>

Data Fields

QSignal sig
uint8_t poolId_
uint8_t refCtr_

Detailed Description

Event structure.

QEvt 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 QEvt structure. Please note that the QEvt 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 172 of file qevt.h.


Field Documentation

uint8_t QEvt::poolId_

pool ID (0 for static event)

Definition at line 174 of file qevt.h.

uint8_t QEvt::refCtr_

reference counter

Definition at line 175 of file qevt.h.

signal of the event instance

Definition at line 173 of file qevt.h.

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


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