QP/C++
Classes | Defines | Functions | Variables
qf_pkg.h File Reference

Internal (package scope) QF/C++ interface. More...

#include "qf_port.h"
#include "qpset.h"
#include "qs_port.h"

Go to the source code of this file.

Classes

struct  QFreeBlock
 Structure representing a free block in the Native QF Memory Pool. More...

Defines

#define QF_EVT_CONST_CAST_(e_)   const_cast<QEvt *>(e_)
 helper macro to cast const away from an event pointer e_
#define QF_PTR_AT_(base_, i_)   (base_[i_])
 access element at index i_ from the base pointer base_
#define QS_EQC_(ctr_)   QS::u8_(ctr_)
 Internal QS macro to output an unformatted event queue counter data element.

Functions

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

Variables

QTimeEvtQF_timeEvtListHead_
 head of linked list of time events
QF_EPOOL_TYPE_ QF_pool_ [QF_MAX_EPOOL]
 allocate event pools
uint8_t QF_maxPool_
 # of initialized event pools
QSubscrListQF_subscrList_
 the subscriber list array
enum_t QF_maxSignal_
 the maximum published signal
uint8_t const u8_0 = static_cast<uint8_t>(0)
 constant (uint8_t)0
uint8_t const u8_1 = static_cast<uint8_t>(1)
 constant (uint8_t)1
int8_t const s8_0 = static_cast<int8_t>(0)
 constant (int8_t)0
int8_t const s8_1 = static_cast<int8_t>(1)
 constant (int8_t)1

Detailed Description

Internal (package scope) QF/C++ interface.

Definition in file qf_pkg.h.


Define Documentation

#define QS_EQC_ (   ctr_)    QS::u8_(ctr_)

Internal QS macro to output an unformatted event queue counter data element.

Note:
the counter size depends on the macro QF_EQUEUE_CTR_SIZE.

Definition at line 156 of file qf_pkg.h.

Referenced by QEQueue::get(), QEQueue::init(), QEQueue::postFIFO(), QActive::postFIFO(), QEQueue::postLIFO(), and QActive::postLIFO().