QP/C
Functions
qte_darm.c File Reference

QTimeEvt_disarm() implementation. More...

#include "qf_pkg.h"

Go to the source code of this file.

Functions

uint8_t QTimeEvt_disarm (QTimeEvt *me)
 Disarm a time event.

Detailed Description

QTimeEvt_disarm() implementation.

Definition in file qte_darm.c.


Function Documentation

uint8_t QTimeEvt_disarm ( QTimeEvt me)

Disarm a time event.

The time event me gets disarmed and can be reused. The function returns 1 (TRUE) if the time event was truly disarmed, that is, it was running. The return of 0 (FALSE) means that the time event was not truly disarmed because it was not running. The FALSE return is only possible for one-shot time events that have been automatically disarmed upon expiration. In this case the FALSE return means that the time event has already been posted or published and should be expected in the active object's state machine.

Definition at line 38 of file qte_darm.c.

References QTimeEvt::act, QTimeEvt::ctr, QTimeEvt::interval, QTimeEvt::next, QTimeEvt::prev, QF_timeEvtListHead_, QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_OBJ_, QS_QF_TIMEEVT_DISARM, QS_QF_TIMEEVT_DISARM_ATTEMPT, QS_teObj_, and QS_TIME_.