NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Un synchronized Scheduler which can roll over. More...
#include <N2kTimer.h>
Public Member Functions | |
tN2kScheduler (tN2kSchedulerTime _NextTime=N2kSchedulerDisabled) | |
Constructor. More... | |
void | Disable () |
Disable the Scheduler. More... | |
void | FromNow (uint32_t _Add) |
Set Timestamp for next event relative to now. More... | |
bool | IsDisabled () const |
Check if the scheduler is disabled. More... | |
bool | IsEnabled () const |
Check if the scheduler is enabled. More... | |
bool | IsTime () const |
Is it time for the next event. More... | |
Protected Member Functions | |
tN2kSchedulerTime | Now () |
Protected Attributes | |
tN2kSchedulerTime | NextTime |
Timestamp for next event. More... | |
Un synchronized Scheduler which can roll over.
tN2kScheduler can be used for scheduling, which does not require synchronization and can roll over. Scheduling works properly even on 32bit millisecond timer roll over. tN2kScheduler uses fastest method depending of platform.
Definition at line 286 of file N2kTimer.h.
|
inline |
Constructor.
_NextTime | Timestamp for next event |
Definition at line 301 of file N2kTimer.h.
|
inline |
Disable the Scheduler.
Definition at line 306 of file N2kTimer.h.
|
inline |
Set Timestamp for next event relative to now.
_Add | Time delay from now for next event |
Definition at line 345 of file N2kTimer.h.
|
inline |
Check if the scheduler is disabled.
Definition at line 316 of file N2kTimer.h.
|
inline |
Check if the scheduler is enabled.
Definition at line 324 of file N2kTimer.h.
|
inline |
Is it time for the next event.
Definition at line 332 of file N2kTimer.h.
|
protected |
Definition at line 63 of file N2kTimer.cpp.
|
protected |
Timestamp for next event.
Definition at line 290 of file N2kTimer.h.