Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
Schedule::Recurring Namespace Reference

Recurring function/method calling infrastructure. More...

Classes

struct  Func
 recurringly callable function wrapper More...
 
struct  Method
 recurringly callable method wrapper More...
 
struct  Registry
 registry of recurring calls More...
 
struct  Schedulable
 recurring Schedulable keeps track of time in order to make recurring scheduling work More...
 

Detailed Description

Recurring function/method calling infrastructure.

the signature of a recurringly callable is

// will be called with absolute `time`, and
// the period `dt` with which it has been scheduled
void func_or_method (uint32_t time, uint32_t dt);

when trying to schedule a call with a different signature consider wrapping it in a lambda function

reg.every( 10, //ms
[](uint32_t t, uint32_t dt) {
mynoargfunc();
});
registry of recurring calls
Definition timed.h:65
void every(uint32_t dt_ms, typename Func::Call func)
register a function to be called every dt_ms
Definition timed.h:68