Callback timer

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

using TimerCallback = void(*)(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

using TimerCallback = void (*)(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
repeatingTrue to restart timer when it triggers, false for one-shot (Default: true)
Return values
boolTrue if timer started