|Event structure. More...|
|The current QP version number. |
|#define||Q_EVT_CAST(class_) ((class_ const *)e)|
|Perform downcast of an event onto a subclass of QEvt class_. |
|#define||Q_DIM(array_) (sizeof(array_) / sizeof(array_))|
|#define||Q_UINT2PTR_CAST(type_, uint_) ((type_ *)(uint_))|
|Perform cast from unsigned integer uint_ to pointer of type type_. |
|QSignal represents the signal of an event. |
|typedef for character strings. |
QEvt class and basic macros used by all QP components.
This header file must be included, perhaps indirectly, in all modules (*.c files) that use any component of QP/C (such as QEP, QF, or QK).
Definition in file qevt.h.
|#define Q_DIM||(||array_||)||(sizeof(array_) / sizeof(array_))|
|#define Q_EVT_CAST||(||class_||)||((class_ const *)e)|
Perform cast from unsigned integer uint_ to pointer of type type_.
This macro encapsulates the cast to (type_ *), which QP ports or application might use to access embedded hardware registers. Such uses can trigger PC-Lint "Note 923: cast from int to pointer" and this macro helps to encapsulate this deviation.
|#define QP_VERSION 0x4504U|
The current QP version number.
|typedef char char_t|
|typedef int enum_t|
|typedef float float32_t|
|typedef double float64_t|
|typedef uint16_t QSignal|
QSignal represents the signal of an event.
The relationship between an event and a signal is as follows. A signal in UML is the specification of an asynchronous stimulus that triggers reactions [UML document ptc/03-08-02], and as such is an essential part of an event. (The signal conveys the type of the occurrence-what happened?) However, an event can also contain additional quantitative information about the occurrence in form of event parameters.