Dataflow Runtime API
3.1.1.0
|
A one shot timer to be used in an active part. More...
#include <Imt.Base.Dff.ActiveParts/VariableOneShotTimer.h>
Public Member Functions | |
VariableOneShotTimer (imt::base::dff::runtime::TimerServiceIfc &timer) | |
Constructor. More... | |
~VariableOneShotTimer (void) | |
Destructor. More... | |
void | startTimeout (const uint32_t timeoutMs) |
Start the oneshot timer. More... | |
void | stop (void) |
Stop the oneshot timer. More... | |
bool | isRunning (void) const |
Check if the timer is running. More... | |
imt::base::dff::runtime::RuntimeTimer::TimerHandle | getTimerId (void) const |
Get the handle to identify the timer. More... | |
void | clearTimerHandle (void) |
Clear the timer handle. More... | |
A one shot timer to be used in an active part.
The timer triggers once after the given delay in milliseconds has elapsed.
|
explicit |
Constructor.
timer | The activepart's timer interface. |
imt::base::dff::activeparts::VariableOneShotTimer::~VariableOneShotTimer | ( | void | ) |
Destructor.
void imt::base::dff::activeparts::VariableOneShotTimer::clearTimerHandle | ( | void | ) |
Clear the timer handle.
Invalidates the timer handle.
imt::base::dff::runtime::RuntimeTimer::TimerHandle imt::base::dff::activeparts::VariableOneShotTimer::getTimerId | ( | void | ) | const |
Get the handle to identify the timer.
bool imt::base::dff::activeparts::VariableOneShotTimer::isRunning | ( | void | ) | const |
Check if the timer is running.
void imt::base::dff::activeparts::VariableOneShotTimer::startTimeout | ( | const uint32_t | timeoutMs | ) |
Start the oneshot timer.
timeoutMs | The specified timeout value in milliseconds. |
void imt::base::dff::activeparts::VariableOneShotTimer::stop | ( | void | ) |
Stop the oneshot timer.