ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::esp32::ESP32InternalGPIOPin Class Referencefinal

#include <gpio.h>

Inheritance diagram for esphome::esp32::ESP32InternalGPIOPin:
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
 
template<typename T >
void attach_interrupt (void(*func)(T *), T *arg, gpio::InterruptType type) const
 
ISRInternalGPIOPin to_isr () const
 
uint8_t get_pin () const
 
gpio::Flags get_flags () const override
 
bool is_inverted () const
 
bool is_internal () override
 
gpio_num_t get_pin_num () const
 
gpio_drive_cap_t get_drive_strength () const
 
void set_hold (bool hold) const
 Apply or release the pad hold. Does nothing unless the pin is configured with hold_state.
 
bool is_held () const override
 
- Public Member Functions inherited from esphome::GPIOPin
bool get_hold () const
 
bool get_hold () const
 
bool is_held () const
 

Protected Member Functions

void attach_interrupt_ (void(*func)(void *), void *arg, gpio::InterruptType type) const
 

Protected Attributes

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

Static Protected Attributes

static bool isr_service_installed = false
 

Detailed Description

Definition at line 14 of file gpio.h.

Member Function Documentation

◆ attach_interrupt()

template<typename T >
void esphome::esp32::ESP32InternalGPIOPin::attach_interrupt ( void(* func )(T *),
T * arg,
gpio::InterruptType type ) const
inline

Definition at line 29 of file gpio.h.

◆ attach_interrupt_()

void esphome::esp32::ESP32InternalGPIOPin::attach_interrupt_ ( void(* func )(void *),
void * arg,
gpio::InterruptType type ) const
protected

Definition at line 107 of file gpio.cpp.

◆ detach_interrupt()

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

Definition at line 214 of file gpio.cpp.

◆ digital_read()

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

Implements esphome::GPIOPin.

Definition at line 205 of file gpio.cpp.

◆ digital_write()

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

Implements esphome::GPIOPin.

Definition at line 208 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 139 of file gpio.cpp.

◆ get_drive_strength()

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

Definition at line 38 of file gpio.h.

◆ get_flags()

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

Implements esphome::GPIOPin.

Definition at line 34 of file gpio.h.

◆ get_pin()

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

Definition at line 33 of file gpio.h.

◆ get_pin_num()

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

Definition at line 37 of file gpio.h.

◆ is_held()

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

Reimplemented from esphome::GPIOPin.

Definition at line 42 of file gpio.h.

◆ is_internal()

bool esphome::esp32::ESP32InternalGPIOPin::is_internal ( )
inlineoverridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 36 of file gpio.h.

◆ is_inverted()

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

Definition at line 35 of file gpio.h.

◆ pin_mode()

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

Implements esphome::GPIOPin.

Definition at line 188 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_hold()

void esphome::esp32::ESP32InternalGPIOPin::set_hold ( bool hold) const

Apply or release the pad hold. Does nothing unless the pin is configured with hold_state.

Definition at line 144 of file gpio.cpp.

◆ 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 155 of file gpio.cpp.

◆ to_isr()

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

Definition at line 91 of file gpio.cpp.

Field Documentation

◆ flags_

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

Definition at line 58 of file gpio.h.

◆ isr_service_installed

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

Definition at line 65 of file gpio.h.

◆ pin_

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

Definition at line 57 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: