ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
gpio_pin.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::gpio::FlagsHelper
 
class  esphome::GPIOPin
 
class  esphome::ISRInternalGPIOPin
 Copy of GPIOPin that is safe to use from ISRs (with no virtual functions) More...
 
struct  esphome::ResetPulse
 Waveform for pulse_reset(): high, low, then high again. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::gpio
 
namespace  esphome::internal
 RP2040 wakeable delay uses file-scope state (alarm callback + flag) — defined in wake_rp2.cpp.
 

Concepts

concept  esphome::InternalGPIOPinContract
 

Enumerations

enum  esphome::gpio::Flags : uint8_t {
  esphome::gpio::FLAG_NONE = 0x00 , esphome::gpio::FLAG_INPUT = 0x01 , esphome::gpio::FLAG_OUTPUT = 0x02 , esphome::gpio::FLAG_OPEN_DRAIN = 0x04 ,
  esphome::gpio::FLAG_PULLUP = 0x08 , esphome::gpio::FLAG_PULLDOWN = 0x10 , esphome::gpio::FLAG_HOLD = 0x20
}
 
enum  esphome::gpio::InterruptType : uint8_t {
  esphome::gpio::INTERRUPT_RISING_EDGE = 1 , esphome::gpio::INTERRUPT_FALLING_EDGE = 2 , esphome::gpio::INTERRUPT_ANY_EDGE = 3 , esphome::gpio::INTERRUPT_LOW_LEVEL = 4 ,
  esphome::gpio::INTERRUPT_HIGH_LEVEL = 5
}
 

Functions

constexpr FlagsHelper esphome::gpio::operator& (Flags lhs, Flags rhs)
 
constexpr FlagsHelper esphome::gpio::operator| (Flags lhs, Flags rhs)
 
void esphome::log_pin_with_prefix (const char *tag, const char *prefix, GPIOPin *pin)
 
void esphome::log_pin (const char *tag, const __FlashStringHelper *prefix, GPIOPin *pin)
 
void esphome::log_pin (const char *tag, const char *prefix, GPIOPin *pin)
 
void esphome::internal::pulse_reset_ms (GPIOPin *pin, uint32_t high_before_ms, uint32_t low_ms, uint32_t high_after_ms)
 Out-of-line body of pulse_reset(); call that instead.
 
ESPHOME_ALWAYS_INLINE void esphome::pulse_reset (GPIOPin *pin, ResetPulse pulse)
 Set up an active-low reset pin and drive it through pulse.
 

Variables

constexpr size_t esphome::GPIO_SUMMARY_MAX_LEN = 48
 Maximum buffer size for dump_summary output.