QP/C
Functions
qte_ctr.c File Reference

QTimeEvt_ctr() implementation. More...

#include "qf_pkg.h"

Go to the source code of this file.

Functions

QTimeEvtCtr QTimeEvt_ctr (QTimeEvt const *me)
 Get the current value of the down-counter of a time event.

Detailed Description

QTimeEvt_ctr() implementation.

Definition in file qte_ctr.c.


Function Documentation

QTimeEvtCtr QTimeEvt_ctr ( QTimeEvt const *  me)

Get the current value of the down-counter of a time event.

If the time event is armed, the function returns the current value of the down-counter of the given time event. If the time event is not armed, the function returns 0.

/note The function is thread-safe.

Definition at line 37 of file qte_ctr.c.

References QTimeEvt::act, QTimeEvt::ctr, QTimeEvt::interval, QTimeEvt::prev, QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_OBJ_, QS_QF_TIMEEVT_CTR, QS_teObj_, and QS_TIME_.