gaqzombie.blogg.se

Rearm definition
Rearm definition













Rearming a periodic timer leaves the interval unchanged and is a convenient method to adjust the phasing of a periodic time event. This function can be used to adjust the current period of a periodic time event or to prevent a one-shot time event from expiring (e.g., a watchdog time event). Description Rearms a time event with a new number of clock ticks.

rearm definition rearm definition

Constructor & Destructor Documentation ◆ QTimeEvt() In other words, it is illegal to allocate QP::QTimeEvt instances with the Q_NEW() or Q_NEW_X() macros.ĭefinition at line 404 of file qf.hpp. Note QF manages the time events in the macro TICK_X(), which must be called periodically, from the clock tick ISR or from the special QP::QTicker active object.Įven though QP::QTimeEvt is a subclass of QP::QEvt, QP::QTimeEvt instances can NOT be allocated dynamically from event pools. Only armed (timing out) time events are in the list, so only armed time events consume CPU cycles. This linked list is scanned in every invocation of the QP::QF::tickX_() function. Internally, the armed time events are organized into a bi-directional linked list. Typically, you will use a time event as-is, but you can also further derive more specialized time events from it by adding some more data members and/or specialized functions that operate on the specialized time events. Time events, as any other QF events derive from the QP::QEvt base class. The recipient then processes the time event just like any other event. When QF detects that the appropriate moment has arrived, it inserts the time event directly into the recipient's event queue. Each time event times out independently from the others, so a QF application can make multiple parallel timeout requests (from the same or different active objects). When the active object needs to arrange for a timeout, it arms one of its time events to fire either just once (one-shot) or periodically. An active object allocates one or more QTimeEvt objects (provides the storage for them). The basic usage model of the time events is as follows. Time Event class Description Time events are special QF events equipped with the notion of time passage. Link to the next time event in the list More. Private assignment operator to disallow assigning of QTimeEvts More.Įncapsulate the cast the m_act attribute to QActive* More.Įncapsulate the cast the m_act attribute to QTimeEvt* More. Private copy constructor to disallow copying of QTimeEvts More. Private default constructor only for friends More. Get the current value of the down-counter of a time event. Rearm ( QTimeEvtCtr const nTicks) noexceptĬheck the "was disarmed" status of a time event. QTimeEvt ( QActive *const act, enum_t const sgnl, std::uint_fast8_t const tickRate=0U) noexceptĪrmX ( QTimeEvtCtr const nTicks, QTimeEvtCtr const interval=0U) noexceptĪrm a time event (one shot or periodic) for event posting.















Rearm definition