ESPHome 2025.7.1
Loading...
Searching...
No Matches
esphome::gpio::GPIOBinarySensorStore Class Reference

#include <gpio_binary_sensor.h>

Public Member Functions

void setup (InternalGPIOPin *pin, gpio::InterruptType type, Component *component)
 
bool get_state () const
 
bool is_changed () const
 
void clear_changed ()
 

Static Public Member Functions

static void gpio_intr (GPIOBinarySensorStore *arg)
 

Protected Attributes

ISRInternalGPIOPin isr_pin_
 
volatile bool state_ {false}
 
volatile bool last_state_ {false}
 
volatile bool changed_ {false}
 
Componentcomponent_ {nullptr}
 

Detailed Description

Definition at line 12 of file gpio_binary_sensor.h.

Member Function Documentation

◆ clear_changed()

void esphome::gpio::GPIOBinarySensorStore::clear_changed ( )
inline

Definition at line 29 of file gpio_binary_sensor.h.

◆ get_state()

bool esphome::gpio::GPIOBinarySensorStore::get_state ( ) const
inline

Definition at line 18 of file gpio_binary_sensor.h.

◆ gpio_intr()

void IRAM_ATTR esphome::gpio::GPIOBinarySensorStore::gpio_intr ( GPIOBinarySensorStore * arg)
static

Definition at line 9 of file gpio_binary_sensor.cpp.

◆ is_changed()

bool esphome::gpio::GPIOBinarySensorStore::is_changed ( ) const
inline

Definition at line 24 of file gpio_binary_sensor.h.

◆ setup()

void esphome::gpio::GPIOBinarySensorStore::setup ( InternalGPIOPin * pin,
gpio::InterruptType type,
Component * component )

Definition at line 22 of file gpio_binary_sensor.cpp.

Field Documentation

◆ changed_

volatile bool esphome::gpio::GPIOBinarySensorStore::changed_ {false}
protected

Definition at line 38 of file gpio_binary_sensor.h.

◆ component_

Component* esphome::gpio::GPIOBinarySensorStore::component_ {nullptr}
protected

Definition at line 39 of file gpio_binary_sensor.h.

◆ isr_pin_

ISRInternalGPIOPin esphome::gpio::GPIOBinarySensorStore::isr_pin_
protected

Definition at line 35 of file gpio_binary_sensor.h.

◆ last_state_

volatile bool esphome::gpio::GPIOBinarySensorStore::last_state_ {false}
protected

Definition at line 37 of file gpio_binary_sensor.h.

◆ state_

volatile bool esphome::gpio::GPIOBinarySensorStore::state_ {false}
protected

Definition at line 36 of file gpio_binary_sensor.h.


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