20 #include "PassiveTimer.h"
34 DelayTimer( timeout_t on_msec, timeout_t off_msec ) noexcept:
35 onDelay(on_msec), offDelay(off_msec) {}
39 inline void set( timeout_t on_msec, timeout_t off_msec ) noexcept
49 inline void reset() noexcept
57 inline bool check(
bool st ) noexcept
129 inline bool get() noexcept
131 return check(prevState);
134 inline timeout_t getOnDelay()
const noexcept
138 inline timeout_t getOffDelay()
const noexcept
143 inline timeout_t getCurrent()
const noexcept
150 bool prevState = {
false };
151 bool state = {
false };
152 timeout_t onDelay = { 0 };
153 timeout_t offDelay = { 0 };
154 bool waiting_on = {
false };
155 bool waiting_off = {
false };
Пассивный таймер
Definition: PassiveTimer.h:90
Definition: CallbackTimer.h:29
virtual timeout_t getCurrent() const noexceptoverride
Definition: PassiveTimer.cc:79
virtual bool checkTime() const noexceptoverride
Definition: PassiveTimer.cc:46
virtual timeout_t setTiming(timeout_t msec) noexceptoverride
Definition: PassiveTimer.cc:59
Definition: DelayTimer.h:29
virtual void reset() noexcept
Definition: PassiveTimer.cc:73