22 #include "PassiveTimer.h" 41 inline void run( timeout_t _t1_msec, timeout_t _t0_msec ) noexcept
43 setTiming(_t1_msec, _t0_msec,
true);
46 inline void setTiming( timeout_t _t1_msec, timeout_t _t0_msec,
bool run =
false ) noexcept
55 inline void reset() noexcept
60 inline bool step() noexcept
83 inline bool out() noexcept
88 inline bool out()
const noexcept
93 inline void set(
bool state ) noexcept
107 friend std::ostream& operator<<(std::ostream& os,
Pulse& p )
109 return os <<
" idOn=" << p.enabled
112 <<
" out=" << p.out();
115 friend std::ostream& operator<<(std::ostream& os,
Pulse* p )
120 inline timeout_t getT1()
const noexcept
124 inline timeout_t getT0()
const noexcept
129 bool isOn()
const noexcept
137 bool ostate = {
false };
138 bool enabled = {
false };
139 timeout_t t1_msec = { 0 };
140 timeout_t t0_msec = { 0 };
Пассивный таймер
Definition: PassiveTimer.h:92
virtual void reset() noexcept override
Definition: PassiveTimer.cc:73
virtual bool checkTime() const noexcept override
Definition: PassiveTimer.cc:46
Definition: CallbackTimer.h:29
virtual timeout_t setTiming(timeout_t msec) noexcept override
Definition: PassiveTimer.cc:59
virtual timeout_t getInterval() const noexcept override
Definition: PassiveTimer.cc:84