Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
Timer () | |
Timer class. More... | |
Timer &IRAM_ATTR | initializeMs (uint32_t milliseconds, InterruptCallback callback=NULL) |
Initialise millisecond timer. More... | |
Timer &IRAM_ATTR | initializeUs (uint32_t microseconds, InterruptCallback callback=NULL) |
Initialise microsecond timer. More... | |
Timer &IRAM_ATTR | initializeMs (uint32_t milliseconds, TimerDelegate delegateFunction=NULL) |
Initialise millisecond timer. More... | |
Timer &IRAM_ATTR | initializeUs (uint32_t microseconds, TimerDelegate delegateFunction=NULL) |
Initialise microsecond timer. More... | |
void IRAM_ATTR | start (bool repeating=true) |
Start timer running. More... | |
void __forceinline IRAM_ATTR | startOnce () |
Start one-shot timer running. More... | |
void IRAM_ATTR | stop () |
Stop timer. More... | |
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=NULL) |
Set timer trigger function. More... | |
void IRAM_ATTR | setCallback (TimerDelegate delegateFunction) |
Set timer trigger function. More... | |
Static Protected Member Functions | |
static void IRAM_ATTR | processing (void *arg) |