distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
Software Timers

Software Timers API of distortos. More...

Classes

class  distortos::DynamicSoftwareTimer
 DynamicSoftwareTimer class is a type-erased interface for software timer that has dynamic storage for bound function. More...
 
class  distortos::SoftwareTimer
 SoftwareTimer class is an abstract interface for software timers. More...
 
class  distortos::SoftwareTimerCommon
 SoftwareTimerCommon class implements common functionality of software timers. More...
 
class  distortos::StaticSoftwareTimer< Function, Args >
 StaticSoftwareTimer class is a templated interface for software timer. More...
 

Functions

template<typename Function , typename... Args>
DynamicSoftwareTimer distortos::makeDynamicSoftwareTimer (Function &&function, Args &&... args)
 Helper factory function to make DynamicSoftwareTimer object. More...
 
template<typename Function , typename... Args>
StaticSoftwareTimer< Function, Args... > distortos::makeStaticSoftwareTimer (Function &&function, Args &&... args)
 Helper factory function to make StaticSoftwareTimer object with deduced template arguments. More...
 

Detailed Description

Software Timers API of distortos.

Function Documentation

◆ makeDynamicSoftwareTimer()

template<typename Function , typename... Args>
DynamicSoftwareTimer distortos::makeDynamicSoftwareTimer ( Function &&  function,
Args &&...  args 
)

Helper factory function to make DynamicSoftwareTimer object.

Template Parameters
Functionis the function that will be executed
Argsare the arguments for function
Parameters
[in]functionis a function that will be executed from interrupt context at a later time
[in]argsare arguments for function
Returns
DynamicSoftwareTimer object

◆ makeStaticSoftwareTimer()

template<typename Function , typename... Args>
StaticSoftwareTimer<Function, Args...> distortos::makeStaticSoftwareTimer ( Function &&  function,
Args &&...  args 
)

Helper factory function to make StaticSoftwareTimer object with deduced template arguments.

Template Parameters
Functionis the function that will be executed
Argsare the arguments for function
Parameters
[in]functionis a function that will be executed from interrupt context at a later time
[in]argsare arguments for function
Returns
StaticSoftwareTimer object with deduced template arguments
Here is the caller graph for this function: