QP is an event-driven, RTOS-like, active object framework for microcontrollers, such as mbed. The QP framework provides thread-safe execution of active objects (concurrent state machines) and support both manual and automatic coding of UML statecharts in readable, production-quality C or C++. Automatic code generation of QP code is supported by the free QM modeling tool.

Dependents:   qp_hangman qp_dpp qp_blinky

Embed: (wiki syntax)

« Back to documentation index

QEvt Struct Reference

QEvt Struct Reference

QEvt base class. More...

#include <qp.h>

Inherited by QTimeEvt.

Data Fields

QSignal sig
 signal of the event instance

Friends

class QF
class QTimeEvt
uint8_t QF_EVT_POOL_ID_ (QEvt const *const e)
 access to the poolId_ of an event e
uint8_t QF_EVT_REF_CTR_ (QEvt const *const e)
 access to the refCtr_ of an event e
void QF_EVT_REF_CTR_INC_ (QEvt const *const e)
 increment the refCtr_ of an event e
void QF_EVT_REF_CTR_DEC_ (QEvt const *const e)
 decrement the refCtr_ of an event e

Detailed Description

QEvt base class.

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

The following example illustrates how to add an event parameter by inheriting from the QEvt class.

Definition at line 167 of file qp.h.


Friends And Related Function Documentation

uint8_t QF_EVT_POOL_ID_ ( QEvt const *const   e ) [friend]

access to the poolId_ of an event e

Definition at line 508 of file qp.cpp.

uint8_t QF_EVT_REF_CTR_ ( QEvt const *const   e ) [friend]

access to the refCtr_ of an event e

Definition at line 511 of file qp.cpp.

void QF_EVT_REF_CTR_DEC_ ( QEvt const *const   e ) [friend]

decrement the refCtr_ of an event e

Definition at line 519 of file qp.cpp.

void QF_EVT_REF_CTR_INC_ ( QEvt const *const   e ) [friend]

increment the refCtr_ of an event e

Definition at line 514 of file qp.cpp.


Field Documentation

QSignal sig

signal of the event instance

Definition at line 169 of file qp.h.