ESP8266
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ticker Class Reference

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
 

Member Typedef Documentation

typedef void(* Ticker::callback_t) (void)
typedef void(* Ticker::callback_with_arg_t) (void *)

Constructor & Destructor Documentation

Ticker::Ticker ( )
Ticker::~Ticker ( )

Member Function Documentation

void Ticker::_attach_ms ( uint32_t  milliseconds,
bool  repeat,
callback_with_arg_t  callback,
uint32_t  arg 
)
protected
void Ticker::attach ( float  seconds,
callback_t  callback 
)
template<typename TArg >
void Ticker::attach ( float  seconds,
void(*)(TArg)  callback,
TArg  arg 
)
void Ticker::attach_ms ( uint32_t  milliseconds,
callback_t  callback 
)
template<typename TArg >
void Ticker::attach_ms ( uint32_t  milliseconds,
void(*)(TArg)  callback,
TArg  arg 
)
void Ticker::detach ( )
void Ticker::once ( float  seconds,
callback_t  callback 
)
template<typename TArg >
void Ticker::once ( float  seconds,
void(*)(TArg)  callback,
TArg  arg 
)
void Ticker::once_ms ( uint32_t  milliseconds,
callback_t  callback 
)
template<typename TArg >
void Ticker::once_ms ( uint32_t  milliseconds,
void(*)(TArg)  callback,
TArg  arg 
)

Member Data Documentation

ETSTimer* Ticker::_timer
protected