ReactESP 3.1.0
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
reactesp Namespace Reference

Classes

class  DelayEvent
 Event that is triggered after a certain time delay. More...
 
class  Event
 Events are code to be called when a given condition is fulfilled. More...
 
struct  EventInterface
 EventInterface defines the interface for all events. More...
 
class  EventLoop
 Asynchronous event loop supporting timed (repeating and non-repeating), interrupt and stream events. More...
 
class  ISREvent
 Event that is triggered on an input pin change. More...
 
class  RepeatEvent
 Event that is triggered repeatedly. More...
 
class  StreamEvent
 Event that is triggered when there is input available at the given Arduino Stream. More...
 
class  TickEvent
 Event that is triggered unconditionally at each execution loop. More...
 
class  TimedEvent
 TimedEvents are called based on elapsing of time. More...
 
struct  TriggerTimeCompare
 
class  UntimedEvent
 Events that are triggered based on something else than time. More...
 

Typedefs

using ReactESP = EventLoop
 
using TimedReaction = TimedEvent
 
using UntimedReaction = UntimedEvent
 
using DelayReaction = DelayEvent
 
using RepeatReaction = RepeatEvent
 
using ISRReaction = ISREvent
 
using StreamReaction = StreamEvent
 
using TickReaction = TickEvent
 
using react_callback = std::function<void()>
 
using isr_react_callback = void (*)(void*)
 

Functions

uint64_t ICACHE_RAM_ATTR micros64 ()
 Return the current time since the device restart in microseconds.
 

Typedef Documentation

◆ DelayReaction

Definition at line 162 of file event_loop.h.

◆ isr_react_callback

using reactesp::isr_react_callback = void (*)(void*)

Definition at line 11 of file events.h.

◆ ISRReaction

Definition at line 164 of file event_loop.h.

◆ react_callback

using reactesp::react_callback = std::function<void()>

Definition at line 10 of file events.h.

◆ ReactESP

Definition at line 159 of file event_loop.h.

◆ RepeatReaction

Definition at line 163 of file event_loop.h.

◆ StreamReaction

Definition at line 165 of file event_loop.h.

◆ TickReaction

Definition at line 166 of file event_loop.h.

◆ TimedReaction

Definition at line 160 of file event_loop.h.

◆ UntimedReaction

Definition at line 161 of file event_loop.h.

Function Documentation

◆ micros64()

uint64_t ICACHE_RAM_ATTR reactesp::micros64 ( )
inline

Return the current time since the device restart in microseconds.

Returns the time since the device restart. Even though the time is in microseconds, a 64-bit integer is all but guaranteed not to rewrap, ever.

Definition at line 20 of file events.h.

Here is the caller graph for this function: