ESPHome 2026.2.3
Loading...
Searching...
No Matches
esphome::esp32::ESP32InternalGPIOPin Class Reference

#include <gpio.h>

Inheritance diagram for esphome::esp32::ESP32InternalGPIOPin:
esphome::InternalGPIOPin esphome::GPIOPin

Data Structures

struct  PinFlags
 

Public Member Functions

void set_pin (gpio_num_t pin)
 
void set_inverted (bool inverted)
 
void set_drive_strength (gpio_drive_cap_t drive_strength)
 
void set_flags (gpio::Flags flags)
 
void setup () override
 
void pin_mode (gpio::Flags flags) override
 
bool digital_read () override
 
void digital_write (bool value) override
 
size_t dump_summary (char *buffer, size_t len) const override
 
void detach_interrupt () const override
 
ISRInternalGPIOPin to_isr () const override
 
uint8_t get_pin () const override
 
gpio::Flags get_flags () const override
 
bool is_inverted () const override
 
gpio_num_t get_pin_num () const
 
gpio_drive_cap_t get_drive_strength () const
 
- Public Member Functions inherited from esphome::InternalGPIOPin
template<typename T >
void attach_interrupt (void(*func)(T *), T *arg, gpio::InterruptType type) const
 
bool is_internal () override
 
- Public Member Functions inherited from esphome::GPIOPin

Protected Member Functions

void attach_interrupt (void(*func)(void *), void *arg, gpio::InterruptType type) const override
 
- Protected Member Functions inherited from esphome::InternalGPIOPin

Protected Attributes

uint8_t pin_
 
gpio::Flags flags_ {}
 
struct esphome::esp32::ESP32InternalGPIOPin::PinFlags pin_flags_
 

Static Protected Attributes

static bool isr_service_installed = false
 

Additional Inherited Members

- Data Fields inherited from esphome::GPIOPin
virtual ESPDEPRECATED("Override dump_summary(char*, size_t) instead. Will be removed in 2026.7.0.", "2026.1.0") virtual std boo is_internal )()
 Get a summary of this pin as a string.
 

Detailed Description

Definition at line 14 of file gpio.h.

Member Function Documentation

◆ attach_interrupt()

void esphome::esp32::ESP32InternalGPIOPin::attach_interrupt ( void(* func )(void *),
void * arg,
gpio::InterruptType type ) const
overrideprotectedvirtual

Implements esphome::InternalGPIOPin.

Definition at line 68 of file gpio.cpp.

◆ detach_interrupt()

void esphome::esp32::ESP32InternalGPIOPin::detach_interrupt ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 137 of file gpio.cpp.

◆ digital_read()

bool esphome::esp32::ESP32InternalGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 131 of file gpio.cpp.

◆ digital_write()

void esphome::esp32::ESP32InternalGPIOPin::digital_write ( bool value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 134 of file gpio.cpp.

◆ dump_summary()

size_t esphome::esp32::ESP32InternalGPIOPin::dump_summary ( char * buffer,
size_t len ) const
overridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 100 of file gpio.cpp.

◆ get_drive_strength()

gpio_drive_cap_t esphome::esp32::ESP32InternalGPIOPin::get_drive_strength ( ) const
inline

Definition at line 34 of file gpio.h.

◆ get_flags()

gpio::Flags esphome::esp32::ESP32InternalGPIOPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 31 of file gpio.h.

◆ get_pin()

uint8_t esphome::esp32::ESP32InternalGPIOPin::get_pin ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 30 of file gpio.h.

◆ get_pin_num()

gpio_num_t esphome::esp32::ESP32InternalGPIOPin::get_pin_num ( ) const
inline

Definition at line 33 of file gpio.h.

◆ is_inverted()

bool esphome::esp32::ESP32InternalGPIOPin::is_inverted ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 32 of file gpio.h.

◆ pin_mode()

void esphome::esp32::ESP32InternalGPIOPin::pin_mode ( gpio::Flags flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 117 of file gpio.cpp.

◆ set_drive_strength()

void esphome::esp32::ESP32InternalGPIOPin::set_drive_strength ( gpio_drive_cap_t drive_strength)
inline

Definition at line 18 of file gpio.h.

◆ set_flags()

void esphome::esp32::ESP32InternalGPIOPin::set_flags ( gpio::Flags flags)
inline

Definition at line 21 of file gpio.h.

◆ set_inverted()

void esphome::esp32::ESP32InternalGPIOPin::set_inverted ( bool inverted)
inline

Definition at line 17 of file gpio.h.

◆ set_pin()

void esphome::esp32::ESP32InternalGPIOPin::set_pin ( gpio_num_t pin)
inline

Definition at line 16 of file gpio.h.

◆ setup()

void esphome::esp32::ESP32InternalGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 104 of file gpio.cpp.

◆ to_isr()

ISRInternalGPIOPin esphome::esp32::ESP32InternalGPIOPin::to_isr ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 55 of file gpio.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::esp32::ESP32InternalGPIOPin::flags_ {}
protected

Definition at line 44 of file gpio.h.

◆ isr_service_installed

bool esphome::esp32::ESP32InternalGPIOPin::isr_service_installed = false
staticprotected

Definition at line 51 of file gpio.h.

◆ pin_

uint8_t esphome::esp32::ESP32InternalGPIOPin::pin_
protected

Definition at line 43 of file gpio.h.

◆ pin_flags_

struct esphome::esp32::ESP32InternalGPIOPin::PinFlags esphome::esp32::ESP32InternalGPIOPin::pin_flags_
protected

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