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

Classes

class  EventLoop
 Asynchronous event loop supporting timed (repeating and non-repeating), interrupt and stream events. More...
struct  EventInterface
 EventInterface defines the interface for all events. More...
class  Event
 Events are code to be called when a given condition is fulfilled. More...
class  TimedEvent
 TimedEvents are called based on elapsing of time. More...
struct  TriggerTimeCompare
 Strict total ordering for TimedEvent pointers. More...
class  DelayEvent
 Event that is triggered after a certain time delay. More...
class  RepeatEvent
 Event that is triggered repeatedly. More...
class  UntimedEvent
 Events that are triggered based on something else than time. 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  ISREvent
 Event that is triggered on an input pin change. 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 167 of file event_loop.h.

◆ isr_react_callback

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

Definition at line 13 of file events.h.

◆ ISRReaction

Definition at line 169 of file event_loop.h.

◆ react_callback

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

Definition at line 12 of file events.h.

◆ ReactESP

Definition at line 164 of file event_loop.h.

◆ RepeatReaction

Definition at line 168 of file event_loop.h.

◆ StreamReaction

Definition at line 170 of file event_loop.h.

◆ TickReaction

Definition at line 171 of file event_loop.h.

◆ TimedReaction

Definition at line 165 of file event_loop.h.

◆ UntimedReaction

Definition at line 166 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 22 of file events.h.

Here is the caller graph for this function: