ESPHome  2024.7.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 84 of file gpio.h.

Constructor & Destructor Documentation

◆ ISRInternalGPIOPin() [1/2]

esphome::ISRInternalGPIOPin::ISRInternalGPIOPin ( )

◆ ISRInternalGPIOPin() [2/2]

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

Definition at line 87 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}

Definition at line 94 of file gpio.h.

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