#include <timer.hpp>

Public Types | |
| typedef Callback_ | Callback |
Public Member Functions | |
| const Callback & | getCallback () const |
| void | setCallback (const Callback &callback) |
| TimerEventForwarder (INode &node) | |
| TimerEventForwarder (INode &node, const Callback &callback) | |
Public Member Functions inherited from uavcan::TimerBase | |
| MonotonicDuration | getPeriod () const |
| void | startOneShotWithDeadline (MonotonicTime deadline) |
| void | startOneShotWithDelay (MonotonicDuration delay) |
| void | startPeriodic (MonotonicDuration period) |
| TimerBase (INode &node) | |
Private Member Functions | |
| virtual void | handleTimerEvent (const TimerEvent &event) |
Private Attributes | |
| Callback | callback_ |
Wrapper over TimerBase that forwards callbacks into arbitrary handlers, like functor objects, member functions or static functions.
Callback must be set before the first event; otherwise the event will generate a fatal error.
Also take a look at MethodBinder<>, which may come useful if C++11 features are not available.
| Callback_ | Callback type. Shall accept const reference to TimerEvent as its argument. |
| typedef Callback_ uavcan::TimerEventForwarder< Callback_ >::Callback |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprivatevirtual |
Implement this method in your class to receive callbacks.
Implements uavcan::TimerBase.
|
inline |
|
private |