ESPHome  2024.12.2
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 <gpio.h>

Public Member Functions

 ISRInternalGPIOPin ()=default
 
 ISRInternalGPIOPin (void *arg)
 
bool digital_read ()
 
void digital_write (bool value)
 
void clear_interrupt ()
 
void pin_mode (gpio::Flags flags)
 

Protected Attributes

void * arg_ {nullptr}
 

Detailed Description

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

Definition at line 66 of file gpio.h.

Constructor & Destructor Documentation

◆ ISRInternalGPIOPin() [1/2]

esphome::ISRInternalGPIOPin::ISRInternalGPIOPin ( )
default

◆ ISRInternalGPIOPin() [2/2]

esphome::ISRInternalGPIOPin::ISRInternalGPIOPin ( void *  arg)
inline

Definition at line 69 of file gpio.h.

Member Function Documentation

◆ clear_interrupt()

void IRAM_ATTR esphome::ISRInternalGPIOPin::clear_interrupt ( )

Definition at line 125 of file gpio.cpp.

◆ digital_read()

bool IRAM_ATTR esphome::ISRInternalGPIOPin::digital_read ( )

Definition at line 117 of file gpio.cpp.

◆ digital_write()

void IRAM_ATTR esphome::ISRInternalGPIOPin::digital_write ( bool  value)

Definition at line 121 of file gpio.cpp.

◆ pin_mode()

void IRAM_ATTR esphome::ISRInternalGPIOPin::pin_mode ( gpio::Flags  flags)

Definition at line 128 of file gpio.cpp.

Field Documentation

◆ arg_

void* esphome::ISRInternalGPIOPin::arg_ {nullptr}
protected

Definition at line 76 of file gpio.h.


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