QP/C 6.8.2
QEvt Struct Reference

Event class. More...

#include <qep.h>

Inheritance diagram for QEvt:
Inheritance graph
Collaboration diagram for QEvt:
Collaboration graph

Data Fields

QSignal sig
 signal of the event instance More...
 
uint8_t poolId_
 pool ID (0 for static event) More...
 
uint8_t volatile refCtr_
 reference counter More...
 

Detailed Description

Event class.

Description
QEvt represents events without parameters and serves as the base structure for derivation of events with parameters.
Usage
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 {
QEvt super; /* inherits QEvt */
uint8_t keyId; /* ID of the key depressed */
} CalcEvt;
See also
Object Orientation

Definition at line 151 of file qep.h.

Field Documentation

◆ sig

QSignal sig

signal of the event instance

Definition at line 152 of file qep.h.

◆ poolId_

uint8_t poolId_

pool ID (0 for static event)

Definition at line 153 of file qep.h.

◆ refCtr_

uint8_t volatile refCtr_

reference counter

Definition at line 154 of file qep.h.


The documentation for this struct was generated from the following file:
uint8_t
unsigned char uint8_t
exact-width 8-bit unsigned int
Definition: 16bit/stdint.h:29
QEvt
Event class.
Definition: qep.h:151