ESP8266
|
Public Types | |
typedef void(* | callback_t) (void) |
typedef void(* | callback_with_arg_t) (void *) |
Public Member Functions | |
Ticker () | |
~Ticker () | |
void | attach (float seconds, callback_t callback) |
void | attach_ms (uint32_t milliseconds, callback_t callback) |
template<typename TArg > | |
void | attach (float seconds, void(*callback)(TArg), TArg arg) |
template<typename TArg > | |
void | attach_ms (uint32_t milliseconds, void(*callback)(TArg), TArg arg) |
void | once (float seconds, callback_t callback) |
void | once_ms (uint32_t milliseconds, callback_t callback) |
template<typename TArg > | |
void | once (float seconds, void(*callback)(TArg), TArg arg) |
template<typename TArg > | |
void | once_ms (uint32_t milliseconds, void(*callback)(TArg), TArg arg) |
void | detach () |
Protected Member Functions | |
void | _attach_ms (uint32_t milliseconds, bool repeat, callback_with_arg_t callback, uint32_t arg) |
Protected Attributes | |
ETSTimer * | _timer |
typedef void(* Ticker::callback_t) (void) |
typedef void(* Ticker::callback_with_arg_t) (void *) |
Ticker::Ticker | ( | ) |
Ticker::~Ticker | ( | ) |
|
protected |
void Ticker::attach | ( | float | seconds, |
callback_t | callback | ||
) |
void Ticker::attach | ( | float | seconds, |
void(*)(TArg) | callback, | ||
TArg | arg | ||
) |
void Ticker::attach_ms | ( | uint32_t | milliseconds, |
callback_t | callback | ||
) |
void Ticker::attach_ms | ( | uint32_t | milliseconds, |
void(*)(TArg) | callback, | ||
TArg | arg | ||
) |
void Ticker::detach | ( | ) |
void Ticker::once | ( | float | seconds, |
callback_t | callback | ||
) |
void Ticker::once | ( | float | seconds, |
void(*)(TArg) | callback, | ||
TArg | arg | ||
) |
void Ticker::once_ms | ( | uint32_t | milliseconds, |
callback_t | callback | ||
) |
void Ticker::once_ms | ( | uint32_t | milliseconds, |
void(*)(TArg) | callback, | ||
TArg | arg | ||
) |
|
protected |