|
Embedded Template Library 1.0
|
The configuration of a timer. More...
#include <callback_timer.h>
Public Types | |
| enum | callback_type_id { C_CALLBACK , IFUNCTION , DELEGATE } |
| typedef etl::delegate< void(void)> | callback_type |
Public Member Functions | |
| timer_data (etl::timer::id::type id_, void(*p_callback_)(), uint32_t period_, bool repeating_) | |
| C function callback. | |
| timer_data (etl::timer::id::type id_, etl::ifunction< void > &callback_, uint32_t period_, bool repeating_) | |
| ETL function callback. | |
| timer_data (etl::timer::id::type id_, callback_type &callback_, uint32_t period_, bool repeating_) | |
| ETL delegate callback. | |
| bool | is_active () const |
| Returns true if the timer is active. | |
| void | set_inactive () |
| Sets the timer to the inactive state. | |
Public Attributes | |
| void * | p_callback |
| uint32_t | period |
| uint32_t | delta |
| etl::timer::id::type | id |
| uint_least8_t | previous |
| uint_least8_t | next |
| bool | repeating |
| callback_type_id | cbk_type |
The configuration of a timer.