ReactESP 2.0.0
Asynchronous programming for the ESP microcontrollers
reactesp::ISRReaction Class Reference

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

#include <ReactESP.h>

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

Public Member Functions

 ISRReaction (uint8_t pin_number, int mode, const react_callback callback)
 Construct a new ISRReaction object. More...
 
virtual ~ISRReaction ()
 
void add ()
 
void remove ()
 
void tick ()
 
- Public Member Functions inherited from reactesp::Reaction
 Reaction (react_callback callback)
 Construct a new Reaction object. More...
 

Additional Inherited Members

- Protected Attributes inherited from reactesp::Reaction
const react_callback callback
 

Detailed Description

Reaction that is triggered on an input pin change.

Definition at line 187 of file ReactESP.h.

Constructor & Destructor Documentation

◆ ISRReaction()

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

Construct a new ISRReaction 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 206 of file ReactESP.h.

◆ ~ISRReaction()

virtual reactesp::ISRReaction::~ISRReaction ( )
inlinevirtual

Definition at line 235 of file ReactESP.h.

Member Function Documentation

◆ add()

void reactesp::ISRReaction::add ( )
virtual

Implements reactesp::Reaction.

Definition at line 87 of file ReactESP.cpp.

Here is the caller graph for this function:

◆ remove()

void reactesp::ISRReaction::remove ( )
virtual

Implements reactesp::Reaction.

Definition at line 96 of file ReactESP.cpp.

Here is the caller graph for this function:

◆ tick()

void reactesp::ISRReaction::tick ( )
inlinevirtual

Implements reactesp::Reaction.

Definition at line 238 of file ReactESP.h.


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