Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Timer Class Reference
 Timer ()
 Timer class. More...
 
Timer &IRAM_ATTR initializeMs (uint32_t milliseconds, InterruptCallback callback=nullptr)
 Initialise millisecond timer. More...
 
Timer &IRAM_ATTR initializeUs (uint32_t microseconds, InterruptCallback callback=nullptr)
 Initialise microsecond timer. More...
 
Timer &IRAM_ATTR initializeMs (uint32_t milliseconds, TimerDelegate delegateFunction=nullptr) SMING_DEPRECATED
 Initialise millisecond timer. More...
 
Timer &IRAM_ATTR initializeUs (uint32_t microseconds, TimerDelegate delegateFunction=nullptr) SMING_DEPRECATED
 Initialise microsecond timer. More...
 
Timer &IRAM_ATTR initializeMs (uint32_t milliseconds, TimerDelegateStdFunction delegateFunction=nullptr)
 Initialise millisecond timer. More...
 
Timer &IRAM_ATTR initializeUs (uint32_t microseconds, TimerDelegateStdFunction delegateFunction=nullptr)
 Initialise microsecond timer. More...
 
void IRAM_ATTR start (bool repeating=true)
 Start timer running. More...
 
__forceinline void IRAM_ATTR startOnce ()
 Start one-shot timer running. More...
 
void IRAM_ATTR stop ()
 Stop timer. More...
 
__forceinline void IRAM_ATTR restart ()
 Restarts timer. More...
 
bool isStarted ()
 Check if timer is started. More...
 
uint64_t getIntervalUs ()
 Get timer interval. More...
 
uint32_t getIntervalMs ()
 Get timer interval. More...
 
void IRAM_ATTR setIntervalUs (uint64_t microseconds=1000000)
 Set timer interval. More...
 
void IRAM_ATTR setIntervalMs (uint32_t milliseconds=1000000)
 Set timer interval. More...
 
void IRAM_ATTR setCallback (InterruptCallback interrupt=nullptr)
 Set timer trigger function. More...
 
void IRAM_ATTR setCallback (TimerDelegate delegateFunction)
 Set timer trigger function. More...
 
void IRAM_ATTR setCallback (const TimerDelegateStdFunction &delegateFunction)
 Set timer trigger function. More...
 
void IRAM_ATTR processing ()
 
void tick ()
 virtual timer loop() method More...