Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
icallback_timer Class Reference
Interface for callback timer. More...
#include <callback_timer.h>
Inherited by callback_timer< MAX_TIMERS_ >.
Public Member Functions | |
| etl::timer::id::type | register_timer (void(*p_callback_)(), uint32_t period_, bool repeating_) |
| Register a timer. | |
| etl::timer::id::type | register_timer (etl::ifunction< void > &callback_, uint32_t period_, bool repeating_) |
| Register a timer. | |
| bool | unregister_timer (etl::timer::id::type id_) |
| Unregister a timer. | |
| void | enable (bool state_) |
| Enable/disable the timer. | |
| bool | is_running () const |
| Get the enable/disable state. | |
| void | clear () |
| Clears the timer of data. | |
| bool | start (etl::timer::id::type id_, bool immediate_=false) |
| Starts a timer. | |
| bool | stop (etl::timer::id::type id_) |
| Stops a timer. | |
| bool | set_period (etl::timer::id::type id_, uint32_t period_) |
| Sets a timer's period. | |
| bool | set_mode (etl::timer::id::type id_, bool repeating_) |
| Sets a timer's mode. | |
Protected Member Functions | |
| icallback_timer (callback_timer_data *const timer_array_, const uint_least8_t MAX_TIMERS_) | |
| Constructor. | |
Detailed Description
Interface for callback timer.
Definition at line 316 of file callback_timer.h.
Constructor & Destructor Documentation
| icallback_timer | ( | callback_timer_data *const | timer_array_, |
| const uint_least8_t | MAX_TIMERS_ | ||
| ) | [protected] |
Constructor.
Definition at line 624 of file callback_timer.h.
Member Function Documentation
| void clear | ( | ) |
Clears the timer of data.
Definition at line 444 of file callback_timer.h.
| void enable | ( | bool | state_ ) |
Enable/disable the timer.
Definition at line 428 of file callback_timer.h.
| bool is_running | ( | ) | const |
Get the enable/disable state.
Definition at line 436 of file callback_timer.h.
| etl::timer::id::type register_timer | ( | etl::ifunction< void > & | callback_, |
| uint32_t | period_, | ||
| bool | repeating_ | ||
| ) |
Register a timer.
Definition at line 359 of file callback_timer.h.
| etl::timer::id::type register_timer | ( | void(*)() | p_callback_, |
| uint32_t | period_, | ||
| bool | repeating_ | ||
| ) |
Register a timer.
Definition at line 323 of file callback_timer.h.
| bool set_mode | ( | etl::timer::id::type | id_, |
| bool | repeating_ | ||
| ) |
Sets a timer's mode.
Definition at line 608 of file callback_timer.h.
| bool set_period | ( | etl::timer::id::type | id_, |
| uint32_t | period_ | ||
| ) |
Sets a timer's period.
Definition at line 594 of file callback_timer.h.
| bool start | ( | etl::timer::id::type | id_, |
| bool | immediate_ = false |
||
| ) |
Starts a timer.
Definition at line 526 of file callback_timer.h.
| bool stop | ( | etl::timer::id::type | id_ ) |
Stops a timer.
Definition at line 564 of file callback_timer.h.
| bool unregister_timer | ( | etl::timer::id::type | id_ ) |
Unregister a timer.
Definition at line 395 of file callback_timer.h.
Generated on Tue Jul 12 2022 14:05:49 by
1.7.2