ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::pca9554::PCA9554GPIOPin Class Reference

Helper class to expose a PCA9554 pin as an internal input GPIO pin. More...

#include <pca9554.h>

Inheritance diagram for esphome::pca9554::PCA9554GPIOPin:
esphome::GPIOPin

Public Member Functions

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 set_parent (PCA9554Component *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Protected Attributes

PCA9554Componentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

Helper class to expose a PCA9554 pin as an internal input GPIO pin.

Definition at line 55 of file pca9554.h.

Member Function Documentation

◆ digital_read()

bool esphome::pca9554::PCA9554GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 135 of file pca9554.cpp.

◆ digital_write()

void esphome::pca9554::PCA9554GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 136 of file pca9554.cpp.

◆ dump_summary()

std::string esphome::pca9554::PCA9554GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 137 of file pca9554.cpp.

◆ pin_mode()

void esphome::pca9554::PCA9554GPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 134 of file pca9554.cpp.

◆ set_flags()

void esphome::pca9554::PCA9554GPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 66 of file pca9554.h.

◆ set_inverted()

void esphome::pca9554::PCA9554GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 65 of file pca9554.h.

◆ set_parent()

void esphome::pca9554::PCA9554GPIOPin::set_parent ( PCA9554Component parent)
inline

Definition at line 63 of file pca9554.h.

◆ set_pin()

void esphome::pca9554::PCA9554GPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 64 of file pca9554.h.

◆ setup()

void esphome::pca9554::PCA9554GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 133 of file pca9554.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::pca9554::PCA9554GPIOPin::flags_
protected

Definition at line 72 of file pca9554.h.

◆ inverted_

bool esphome::pca9554::PCA9554GPIOPin::inverted_
protected

Definition at line 71 of file pca9554.h.

◆ parent_

PCA9554Component* esphome::pca9554::PCA9554GPIOPin::parent_
protected

Definition at line 69 of file pca9554.h.

◆ pin_

uint8_t esphome::pca9554::PCA9554GPIOPin::pin_
protected

Definition at line 70 of file pca9554.h.


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