FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Utility to generate events from an RTT
instance at a given period.
More...
#include <fastarduino/realtime_timer.h>
Public Member Functions | |
RTTEventCallback (const RTTEventCallback &)=delete | |
RTTEventCallback & | operator= (const RTTEventCallback &)=delete |
RTTEventCallback (containers::Queue< EVENT > &event_queue) | |
Create a RTTEventCallback that will push periodic events to event_queue . More... | |
Friends | |
struct | isr_handler_rtt |
Utility to generate events from an RTT
instance at a given period.
The generated events have type events::Type::RTT_TIMER
.
EVENT | the events::Event<T> type to be generated |
PERIOD_MS | the period, in ms, at which events will be generated; this must be a power of 2. |
Definition at line 534 of file realtime_timer.h.
|
inlineexplicit |
Create a RTTEventCallback
that will push periodic events to event_queue
.
event_queue | the event queue which new events will be pushed to |
NOTE: for this to work, you need to register the proper ISR with REGISTER_RTT_EVENT_ISR().
Definition at line 553 of file realtime_timer.h.
|
friend |
Definition at line 563 of file realtime_timer.h.