ESPHome  2024.2.1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
esphome::esp32::ESP32InternalGPIOPin Class Reference

#include <gpio.h>

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

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
 
std::string dump_summary () const override
 
void detach_interrupt () const override
 
ISRInternalGPIOPin to_isr () const override
 
uint8_t get_pin () const override
 
bool is_inverted () const override
 
- 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
 

Protected Member Functions

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

Protected Attributes

gpio_num_t pin_
 
bool inverted_
 
gpio_drive_cap_t drive_strength_
 
gpio::Flags flags_
 

Static Protected Attributes

static bool isr_service_installed = false
 

Detailed Description

Definition at line 10 of file gpio.h.

Member Function Documentation

◆ attach_interrupt()

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

Implements esphome::InternalGPIOPin.

Definition at line 44 of file gpio.cpp.

◆ detach_interrupt()

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

Implements esphome::InternalGPIOPin.

Definition at line 111 of file gpio.cpp.

◆ digital_read()

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

Implements esphome::GPIOPin.

Definition at line 109 of file gpio.cpp.

◆ digital_write()

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

Implements esphome::GPIOPin.

Definition at line 110 of file gpio.cpp.

◆ dump_summary()

std::string esphome::esp32::ESP32InternalGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 76 of file gpio.cpp.

◆ get_pin()

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

Implements esphome::InternalGPIOPin.

Definition at line 23 of file gpio.h.

◆ is_inverted()

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

Implements esphome::InternalGPIOPin.

Definition at line 24 of file gpio.h.

◆ pin_mode()

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

Implements esphome::GPIOPin.

Definition at line 95 of file gpio.cpp.

◆ set_drive_strength()

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

Definition at line 14 of file gpio.h.

◆ set_flags()

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

Definition at line 15 of file gpio.h.

◆ set_inverted()

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

Definition at line 13 of file gpio.h.

◆ set_pin()

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

Definition at line 12 of file gpio.h.

◆ setup()

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

Implements esphome::GPIOPin.

Definition at line 82 of file gpio.cpp.

◆ to_isr()

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

Implements esphome::InternalGPIOPin.

Definition at line 37 of file gpio.cpp.

Field Documentation

◆ drive_strength_

gpio_drive_cap_t esphome::esp32::ESP32InternalGPIOPin::drive_strength_
protected

Definition at line 31 of file gpio.h.

◆ flags_

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

Definition at line 32 of file gpio.h.

◆ inverted_

bool esphome::esp32::ESP32InternalGPIOPin::inverted_
protected

Definition at line 30 of file gpio.h.

◆ isr_service_installed

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

Definition at line 34 of file gpio.h.

◆ pin_

gpio_num_t esphome::esp32::ESP32InternalGPIOPin::pin_
protected

Definition at line 29 of file gpio.h.


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