ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::gpio_expander::GpioExpanderInputs< Base > Class Template Reference

Adds a store of the last value read from each bank to a read cache Base. More...

#include <cached_gpio.h>

Inheritance diagram for esphome::gpio_expander::GpioExpanderInputs< Base >:

Protected Member Functions

bool digital_read_cache (pin_t pin) override
 

Protected Attributes

bank_t input_ [BANKS] {}
 The input state per bank - 1 means HIGH, 0 means LOW.
 

Detailed Description

template<typename Base>
class esphome::gpio_expander::GpioExpanderInputs< Base >

Adds a store of the last value read from each bank to a read cache Base.

digital_read_hw() stores the bank it reads in input_[pin / BANK_SIZE] (a chip read in one transfer is one bank, input_[0]), and digital_read_cache() is provided.

Definition at line 110 of file cached_gpio.h.

Member Function Documentation

◆ digital_read_cache()

template<typename Base >
bool esphome::gpio_expander::GpioExpanderInputs< Base >::digital_read_cache ( pin_t pin)
inlineoverrideprotected

Definition at line 117 of file cached_gpio.h.

Field Documentation

◆ input_

template<typename Base >
bank_t esphome::gpio_expander::GpioExpanderInputs< Base >::input_[BANKS] {}
protected

The input state per bank - 1 means HIGH, 0 means LOW.

Definition at line 122 of file cached_gpio.h.


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