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.
imessage_timer Class Reference
Interface for message timer. More...
#include <message_timer.h>
Inherited by message_timer< MAX_TIMERS_ >.
Public Member Functions | |
| etl::timer::id::type | register_timer (const etl::imessage &message_, etl::imessage_router &router_, uint32_t period_, bool repeating_, etl::message_router_id_t destination_router_id_=etl::imessage_router::ALL_MESSAGE_ROUTERS) |
| 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 | |
| imessage_timer (message_timer_data *const timer_array_, const uint_least8_t MAX_TIMERS_) | |
| Constructor. | |
Detailed Description
Interface for message timer.
Definition at line 311 of file message_timer.h.
Constructor & Destructor Documentation
| imessage_timer | ( | message_timer_data *const | timer_array_, |
| const uint_least8_t | MAX_TIMERS_ | ||
| ) | [protected] |
Constructor.
Definition at line 589 of file message_timer.h.
Member Function Documentation
| void clear | ( | ) |
Clears the timer of data.
Definition at line 409 of file message_timer.h.
| void enable | ( | bool | state_ ) |
Enable/disable the timer.
Definition at line 393 of file message_timer.h.
| bool is_running | ( | ) | const |
Get the enable/disable state.
Definition at line 401 of file message_timer.h.
| etl::timer::id::type register_timer | ( | const etl::imessage & | message_, |
| etl::imessage_router & | router_, | ||
| uint32_t | period_, | ||
| bool | repeating_, | ||
| etl::message_router_id_t | destination_router_id_ = etl::imessage_router::ALL_MESSAGE_ROUTERS |
||
| ) |
Register a timer.
Definition at line 318 of file message_timer.h.
| bool set_mode | ( | etl::timer::id::type | id_, |
| bool | repeating_ | ||
| ) |
Sets a timer's mode.
Definition at line 573 of file message_timer.h.
| bool set_period | ( | etl::timer::id::type | id_, |
| uint32_t | period_ | ||
| ) |
Sets a timer's period.
Definition at line 559 of file message_timer.h.
| bool start | ( | etl::timer::id::type | id_, |
| bool | immediate_ = false |
||
| ) |
Starts a timer.
Definition at line 491 of file message_timer.h.
| bool stop | ( | etl::timer::id::type | id_ ) |
Stops a timer.
Definition at line 529 of file message_timer.h.
| bool unregister_timer | ( | etl::timer::id::type | id_ ) |
Unregister a timer.
Definition at line 360 of file message_timer.h.
Generated on Tue Jul 12 2022 14:05:52 by
1.7.2