Software Timers API of distortos.
More...
Software Timers API of distortos.
◆ makeDynamicSoftwareTimer()
template<typename Function , typename... Args>
Helper factory function to make DynamicSoftwareTimer object.
- Template Parameters
-
Function | is the function that will be executed |
Args | are the arguments for function |
- Parameters
-
[in] | function | is a function that will be executed from interrupt context at a later time |
[in] | args | are 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
-
Function | is the function that will be executed |
Args | are the arguments for function |
- Parameters
-
[in] | function | is a function that will be executed from interrupt context at a later time |
[in] | args | are arguments for function |
- Returns
- StaticSoftwareTimer object with deduced template arguments