QP/C 6.8.2
QTicker Struct Reference

QTicker Active Object class. More...

#include <qf.h>

Inheritance diagram for QTicker:
Inheritance graph
Collaboration diagram for QTicker:
Collaboration graph

Data Fields

QActive super
 inherits QActive More...
 
- Data Fields inherited from QActive
QHsm super
 inherits QHsm More...
 
uint8_t prio
 QF priority (1..QF_MAX_ACTIVE) of this active object. More...
 
- Data Fields inherited from QHsm
struct QHsmVtable const * vptr
 virtual pointer More...
 
union QHsmAttr state
 current active state (state-variable) More...
 
union QHsmAttr temp
 temporary: tran. More...
 

Additional Inherited Members

- Public Member Functions inherited from QActive
#define QACTIVE_START(me_, prio_, qSto_, qLen_, stkSto_, stkLen_, par_)
 Polymorphically start an active object. More...
 
#define QACTIVE_POST(me_, e_, sender_)
 Polymorphically posts an event to an active object (FIFO) with delivery guarantee. More...
 
#define QACTIVE_POST_X(me_, e_, margin_, sender_)
 Polymorphically posts an event to an active object (FIFO) without delivery guarantee. More...
 
#define QACTIVE_POST_LIFO(me_, e_)
 Polymorphically posts an event to an active object using the Last-In-First-Out (LIFO) policy. More...
 
- Public Member Functions inherited from QHsm
#define QHSM_INIT(me_, par_)
 Polymorphically executes the top-most initial transition in a HSM. More...
 
#define QHSM_DISPATCH(me_, e_)   ((*(me_)->vptr->dispatch)((me_), (e_)))
 Polymorphically dispatches an event to a HSM. More...
 
#define QHsm_state(me_)   (Q_STATE_CAST(Q_HSM_UPCAST(me_)->state.fun))
 Obtain the current active state from a HSM (read only). More...
 
#define QHsm_childState(me_, parent_)   QHsm_childState_(Q_HSM_UPCAST(me_), Q_STATE_CAST(parent_))
 Obtain the current active child state of a given parent in QHsm. More...
 
bool QHsm_isIn (QHsm *const me, QStateHandler const state)
 Tests if a given state is part of the current active state configuration in QHsm subclasses. More...
 
- Protected Member Functions inherited from QActive
void QActive_ctor (QActive *const me, QStateHandler initial)
 protected "constructor" of an QActive active object More...
 
void QActive_stop (QActive *const me)
 Stops execution of an active object and removes it from the framework's supervision. More...
 
void QActive_subscribe (QActive const *const me, enum_t const sig)
 Subscribes for delivery of signal sig to the active object me. More...
 
void QActive_unsubscribe (QActive const *const me, enum_t const sig)
 Un-subscribes from the delivery of signal sig to the AO me. More...
 
void QActive_unsubscribeAll (QActive const *const me)
 Un-subscribes from the delivery of all signals to the AO me. More...
 
bool QActive_defer (QActive const *const me, QEQueue *const eq, QEvt const *const e)
 Defer an event e to a given event queue eq. More...
 
bool QActive_recall (QActive *const me, QEQueue *const eq)
 Recall a deferred event from a given event queue eq. More...
 
uint_fast16_t QActive_flushDeferred (QActive const *const me, QEQueue *const eq)
 Flush the specified deferred queue eq. More...
 
void QActive_setAttr (QActive *const me, uint32_t attr1, void const *attr2)
 Generic setting of additional attributes (useful in QP ports) More...
 
- Protected Member Functions inherited from QHsm
void QHsm_ctor (QHsm *const me, QStateHandler initial)
 Protected "constructor" of QHsm. More...
 
QState QHsm_top (void const *const me, QEvt const *const e)
 the top-state. More...
 

Detailed Description

QTicker Active Object class.

Description
The QTicker is an efficient active object specialized to process QF system clock tick at a specified tick frequency [0..QF_MAX_TICK_RATE]. Placing system clock tick processing in an active object allows you to remove the non-deterministic QF::TICK_X() processing from the interrupt level and move it into the thread-level, where you can prioritize it as low as you wish.

Definition at line 876 of file qf.h.

Field Documentation

◆ super

QActive super

inherits QActive

Definition at line 877 of file qf.h.


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