Callback timer class template. More...
Collaboration diagram for Callback timer:
Classes | |
| struct | CallbackTimerApi< ApiDef > |
| Callback timer API class template. More... | |
| class | CallbackTimer< TimerApi > |
| Callback timer class template. More... | |
Typedefs | |
| typedef void(* | TimerCallback) (void *arg) |
| Interrupt-compatible C callback function pointer. More... | |
| using | TimerDelegate = Delegate< void()> |
| Delegate callback. More... | |
Functions | |
| bool | CallbackTimer< TimerApi >::start (bool repeating=true) |
| Start timer running. More... | |
Detailed Description
Callback timer class template.
Typedef Documentation
◆ TimerCallback
| typedef void(* TimerCallback) (void *arg) |
Interrupt-compatible C callback function pointer.
◆ TimerDelegate
| using TimerDelegate = Delegate<void()> |
Delegate callback.
Function Documentation
◆ start()
template<typename TimerApi >
| bool CallbackTimer< TimerApi >::start | ( | bool | repeating = true | ) |
Start timer running.
- Parameters
-
repeating True to restart timer when it triggers, false for one-shot (Default: true)
- Return values
-
bool True if timer started
1.8.13