Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::callback_timer< MAX_TIMERS_ > Class Template Reference

The callback timer. More...

#include <callback_timer.h>

Public Member Functions

 ETL_STATIC_ASSERT (MAX_TIMERS_<=254, "No more than 254 timers are allowed")
 
 callback_timer ()
 Constructor.
 
- Public Member Functions inherited from etl::icallback_timer
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_)
 Register 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 tick (uint32_t count)
 
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.
 
bool has_active_timer () const
 Check if there is an active timer.
 
uint32_t time_to_next () const
 
bool is_active (etl::timer::id::type id_) const
 

Additional Inherited Members

- Public Types inherited from etl::icallback_timer
typedef etl::delegate< void(void)> callback_type
 
- Public Attributes inherited from etl::icallback_timer
const uint_least8_t MAX_TIMERS
 
- Protected Member Functions inherited from etl::icallback_timer
 icallback_timer (callback_timer_data *const timer_array_, const uint_least8_t MAX_TIMERS_)
 Constructor.
 

Detailed Description

template<const uint_least8_t MAX_TIMERS_>
class etl::callback_timer< MAX_TIMERS_ >

The callback timer.


The documentation for this class was generated from the following file: