ReactESP 3.3.1
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
reactesp::ISREvent Class Reference

Event that is triggered on an input pin change. More...

#include <events.h>

Inheritance diagram for reactesp::ISREvent:
[legend]
Collaboration diagram for reactesp::ISREvent:
[legend]

Public Member Functions

 ISREvent (uint8_t pin_number, int mode, react_callback callback)
 Construct a new ISREvent object.
void add (EventLoop *event_loop) override
void remove (EventLoop *event_loop) override
void tick (EventLoop *event_loop) override
Public Member Functions inherited from reactesp::Event
 Event (react_callback callback)
 Construct a new Event object.
 Event (const Event &)=delete
 Event (Event &&)=delete
Eventoperator= (const Event &)=delete
Eventoperator= (Event &&)=delete
Public Member Functions inherited from reactesp::EventInterface
virtual ~EventInterface ()=default
 Default virtual destructor.
virtual void add (std::shared_ptr< EventLoop > event_loop)
virtual void remove (std::shared_ptr< EventLoop > event_loop)
virtual void tick (std::shared_ptr< EventLoop > event_loop)

Additional Inherited Members

Protected Attributes inherited from reactesp::Event
const react_callback callback

Detailed Description

Event that is triggered on an input pin change.

Definition at line 254 of file events.h.

Constructor & Destructor Documentation

◆ ISREvent()

reactesp::ISREvent::ISREvent ( uint8_t pin_number,
int mode,
react_callback callback )
inline

Construct a new ISREvent object.

Parameters
pin_numberGPIO pin number to which the interrupt is attached
modeInterrupt mode. One of RISING, FALLING, CHANGE
callbackInterrupt callback. Keep this function short and add the ICACHE_RAM_ATTR attribute.

Definition at line 273 of file events.h.

Here is the call graph for this function:

Member Function Documentation

◆ add()

void reactesp::ISREvent::add ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 97 of file events.cpp.

◆ remove()

void reactesp::ISREvent::remove ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 108 of file events.cpp.

Here is the call graph for this function:

◆ tick()

void reactesp::ISREvent::tick ( EventLoop * event_loop)
inlineoverridevirtual

Implements reactesp::EventInterface.

Definition at line 303 of file events.h.


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