ESPHome  1.15.1
Public Member Functions | Protected Attributes
esphome::ISRInternalGPIOPin Class Reference

Copy of GPIOPin that is safe to use from ISRs (with no virtual functions) More...

#include <esphal.h>

Public Member Functions

 ISRInternalGPIOPin (uint8_t pin, #ifdef ARDUINO_ARCH_ESP32 volatile uint32_t *gpio_clear, volatile uint32_t *gpio_set, #endif volatile uint32_t *gpio_read, uint32_t gpio_mask, bool inverted)
 
bool digital_read ()
 
void digital_write (bool value)
 
void clear_interrupt ()
 

Protected Attributes

const uint8_t pin_
 
const bool inverted_
 
volatile uint32_t *const gpio_read_
 
const uint32_t gpio_mask_
 
volatile uint32_t *const gpio_clear_
 
volatile uint32_t *const gpio_set_
 

Detailed Description

Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)

Definition at line 40 of file esphal.h.

Constructor & Destructor Documentation

◆ ISRInternalGPIOPin()

esphome::ISRInternalGPIOPin::ISRInternalGPIOPin ( uint8_t  pin,
#ifdef ARDUINO_ARCH_ESP32 volatile uint32_t *  gpio_clear,
volatile uint32_t *  gpio_set,
#endif volatile uint32_t *  gpio_read,
uint32_t  gpio_mask,
bool  inverted 
)

Definition at line 176 of file esphal.cpp.

Member Function Documentation

◆ clear_interrupt()

void esphome::ISRInternalGPIOPin::clear_interrupt ( )

◆ digital_read()

bool ICACHE_RAM_ATTR HOT esphome::ISRInternalGPIOPin::digital_read ( )

Definition at line 125 of file esphal.cpp.

◆ digital_write()

void ICACHE_RAM_ATTR HOT esphome::ISRInternalGPIOPin::digital_write ( bool  value)

Definition at line 152 of file esphal.cpp.

Field Documentation

◆ gpio_clear_

volatile uint32_t* const esphome::ISRInternalGPIOPin::gpio_clear_
protected

Definition at line 57 of file esphal.h.

◆ gpio_mask_

const uint32_t esphome::ISRInternalGPIOPin::gpio_mask_
protected

Definition at line 55 of file esphal.h.

◆ gpio_read_

volatile uint32_t* const esphome::ISRInternalGPIOPin::gpio_read_
protected

Definition at line 54 of file esphal.h.

◆ gpio_set_

volatile uint32_t* const esphome::ISRInternalGPIOPin::gpio_set_
protected

Definition at line 58 of file esphal.h.

◆ inverted_

const bool esphome::ISRInternalGPIOPin::inverted_
protected

Definition at line 53 of file esphal.h.

◆ pin_

const uint8_t esphome::ISRInternalGPIOPin::pin_
protected

Definition at line 52 of file esphal.h.


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