QP/C  7.0.0
Real-Time Embedded Framework
QEvt Struct Reference

#include <qep.h>

Inheritance diagram for QEvt:
QTimeEvt

Data Fields

QSignal sig
 

Private Attributes

uint8_t poolId_
 
uint8_t volatile refCtr_
 

Detailed Description

Event class

QEvt represents events without parameters and serves as the base class for derivation of events with parameters.

Traceability:

traces to: RQP001

traces to: RQP004

traces to: AQP210

Usage
The following example illustrates how to add an event parameter by derivation of the QEvt class. 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;
Definition: qep.h:119

Definition at line 119 of file qep.h.

Field Documentation

◆ sig

QSignal sig

signal of the event instance

Traceability:
traces to: RQP002

Definition at line 123 of file qep.h.

◆ poolId_

uint8_t poolId_
private

pool ID (0 for immutable event)

Traceability:
traces to: RQP003

Definition at line 128 of file qep.h.

◆ refCtr_

uint8_t volatile refCtr_
private

reference counter

Traceability:
traces to: RQP003

Definition at line 133 of file qep.h.


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