COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Watchdog.hh>
Public Member Functions | |
Scheduler () | |
virtual uint32_t | time () |
virtual bool | start (Job *job) |
virtual bool | stop (Job *job) |
virtual void | dispatch () |
Protected Attributes | |
Head | m_queue |
Watchdog Scheduler for jobs with milli-seconds as time unit. Constructor will automatically register the scheduler.
Definition at line 129 of file Watchdog.hh.
|
inline |
Construct and register a watchdog scheduler. Should be a singleton.
Definition at line 135 of file Watchdog.hh.
|
virtualinherited |
Dispatch expired jobs. This member function is typically called from an interrupt service routine.
Reimplemented in RTT::Scheduler.
Definition at line 53 of file Job_Scheduler.cpp.
|
virtualinherited |
Start given job. Returns true(1) if successful otherwise false(0).
[in] | job | to start. |
Reimplemented in RTT::Scheduler.
Definition at line 24 of file Job_Scheduler.cpp.
|
virtualinherited |
Stop given job. Returns true(1) if successful otherwise false(0).
[in] | job | to stop. |
Definition at line 44 of file Job_Scheduler.cpp.
|
inlinevirtual |
Return current watchdog time in milli-seconds.
Implements Job::Scheduler.
Definition at line 146 of file Watchdog.hh.