SoftwareTimerControlBlock class is a control block of software timer.
More...
#include "distortos/internal/scheduler/SoftwareTimerControlBlock.hpp"
SoftwareTimerControlBlock class is a control block of software timer.
◆ FunctionRunner
type of runner for software timer's function
◆ SoftwareTimerControlBlock()
constexpr distortos::internal::SoftwareTimerControlBlock::SoftwareTimerControlBlock |
( |
FunctionRunner & |
functionRunner, |
|
|
SoftwareTimer & |
owner |
|
) |
| |
|
inline |
◆ ~SoftwareTimerControlBlock()
distortos::internal::SoftwareTimerControlBlock::~SoftwareTimerControlBlock |
( |
| ) |
|
|
inline |
◆ isRunning()
bool distortos::internal::SoftwareTimerControlBlock::isRunning |
( |
| ) |
const |
|
inline |
- Returns
- true if the timer is running, false otherwise
◆ run()
◆ start()
Starts the timer.
- Parameters
-
[in] | supervisor | is a reference to SoftwareTimerSupervisor to which this object will be added |
[in] | timePoint | is the time point at which the function will be executed |
[in] | period | is the period used to restart repetitive software timer, 0 for one-shot software timers |
◆ startInternal()
Starts the timer - internal version, with no interrupt masking, no stopping and no configuration of period.
- Parameters
-
[in] | supervisor | is a reference to SoftwareTimerSupervisor to which this object will be added |
[in] | timePoint | is the time point at which the function will be executed |
◆ stop()
void distortos::internal::SoftwareTimerControlBlock::stop |
( |
| ) |
|
◆ stopInternal()
void distortos::internal::SoftwareTimerControlBlock::stopInternal |
( |
| ) |
|
|
private |
Stops the timer - internal version, with no interrupt masking.
◆ functionRunner_
FunctionRunner& distortos::internal::SoftwareTimerControlBlock::functionRunner_ |
|
private |
reference to runner for software timer's function
◆ owner_
SoftwareTimer& distortos::internal::SoftwareTimerControlBlock::owner_ |
|
private |
◆ period_
period used to restart repetitive software timer, 0 for one-shot software timers
The documentation for this class was generated from the following files: