36#ifndef IMT_BASE_DFF_RUNTIMETIMER_H
37#define IMT_BASE_DFF_RUNTIMETIMER_H
204 static TimeItem* s_pActiveTimerListHead;
206 static int16_t s_periodicTimerUniqueId;
207 static int16_t s_oneShotTimerUniqueId;
int16_t CoreHandle
A CoreHandle is used to identify an executable with a unique number (similar to a phone number).
RuntimeTimer defines the basic Application Interface (API) to the timer part of the run to completion...
static uint32_t getTickCountMs()
Returns the tick count in milliseconds elapsed since system start.
static TimerHandle startOneShotTimer(RuntimeCore::CoreHandle const apHandle, TimerHandle timerToStart, uint32_t const timerTicksMs)
Starts or restarts the given one shot timer.
static void process1msTick()
Process the 1ms tick in order to fire active timers if they are expired.
static TimerHandle updatePeriodicTimer(TimerHandle timerToUpdate, uint32_t const intervalMs)
Update the intervalMs of an active periodic timer.
static bool getIsRunningState(TimerHandle const timerToCheck)
Returns if the timer is running.
int16_t TimerHandle
A TimerHandle is used to identify a timer with a unique number.
static constexpr TimerHandle TIMERHANDLE_INVALID
Constant which represents an invalid timer handle.
static TimerHandle startPeriodicTimer(RuntimeCore::CoreHandle const apHandle, TimerHandle timerToStart, uint32_t const intervalMs)
Starts a periodic timer.
static void initTimerModule(uint32_t initialTimeMs=0)
Initialize software timer module.
static TimerHandle killTimer(TimerHandle timerToKill)
Kill an existing timer.
This is a application specific file which is used to configure Imt.Base.Core.Math.
unsigned __int32 uint32_t
TimeItem Object Structure.
bool isRunning
Running state of timer.
TimeItem * prev
Previous link list.
uint32_t ticksMs
Ticks to down count in milliseconds.
TimeItem * next
Next link list.
uint32_t intervalMs
Interval for periodic time in milliseconds.
RuntimeCore::CoreHandle receiverHandle
Executable which receives time event.
TimerHandle identifier
TimeItem object identifier.