#include <Watchdog.hh>
Watchdog Clock for Alarms with seconds as time unit.
Definition at line 175 of file Watchdog.hh.
Watchdog::Clock::Clock |
( |
| ) |
|
|
inline |
void Clock::adjust |
( |
int16_t |
ms | ) |
|
|
inlineinherited |
Adjust clock calibration with given number of milli-seconds.
- Parameters
-
- Note
- atomic
Definition at line 136 of file Clock.hh.
uint32_t Clock::await |
( |
| ) |
|
|
inlineinherited |
Synchronize with clock by waiting for next clock update. Returns clock time in seconds.
- Returns
- seconds.
Definition at line 77 of file Clock.hh.
void Clock::calibration |
( |
int16_t |
ms | ) |
|
|
inlineinherited |
Set clock calibration to given number of milli-seconds to adjust by per second.
- Parameters
-
- Note
- atomic
Definition at line 114 of file Clock.hh.
int16_t Clock::calibration |
( |
| ) |
|
|
inlineinherited |
Get current clock calibration in milli-seconds.
- Returns
- calibration.
- Note
- atomic
Definition at line 124 of file Clock.hh.
void Job::Scheduler::dispatch |
( |
| ) |
|
|
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.
bool Job::Scheduler::start |
( |
Job * |
job | ) |
|
|
virtualinherited |
Start given job. Returns true(1) if successful otherwise false(0).
- Parameters
-
- Returns
- bool.
Reimplemented in RTT::Scheduler.
Definition at line 24 of file Job_Scheduler.cpp.
bool Job::Scheduler::stop |
( |
Job * |
job | ) |
|
|
virtualinherited |
Stop given job. Returns true(1) if successful otherwise false(0).
- Parameters
-
- Returns
- bool.
Definition at line 44 of file Job_Scheduler.cpp.
void Clock::tick |
( |
uint16_t |
ms | ) |
|
|
inlineinherited |
Increment the clock with the given number of milli-seconds. Dispatch jobs if the clock seconds counter is incremented.
- Parameters
-
[in] | ms | milli-seconds in a tick. |
- Note
- atomic
Definition at line 94 of file Clock.hh.
virtual uint32_t Clock::time |
( |
| ) |
|
|
inlinevirtualinherited |
Return clock time in seconds.
- Returns
- seconds.
- Note
- atomic
Implements Job::Scheduler.
Definition at line 51 of file Clock.hh.
void Clock::time |
( |
uint32_t |
sec | ) |
|
|
inlineinherited |
Set clock (seconds) to real-time (for instance seconds from a given date; epoch 1900-01-01 00:00 or 1970-01-01 00:00).
- Parameters
-
- Note
- atomic
Definition at line 64 of file Clock.hh.
Milli-seconds calibration.
Definition at line 144 of file Clock.hh.
Milli-seconds fraction.
Definition at line 142 of file Clock.hh.
Head Job::Scheduler::m_queue |
|
protectedinherited |
Seconds counter.
Definition at line 143 of file Clock.hh.
The documentation for this class was generated from the following file: