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 };