ESPHome  2024.11.0
Public Member Functions | Protected Attributes
esphome::tca9555::TCA9555GPIOPin Class Reference

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

#include <tca9555.h>

Inheritance diagram for esphome::tca9555::TCA9555GPIOPin:
esphome::GPIOPin esphome::Parented< TCA9555Component >

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_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 ()
 
- Public Member Functions inherited from esphome::Parented< TCA9555Component >
 Parented ()
 
 Parented (TCA9555Component *parent)
 
TCA9555Component * get_parent () const
 Get the parent of this object. More...
 
void set_parent (TCA9555Component *parent)
 Set the parent of this object. More...
 

Protected Attributes

uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 
- Protected Attributes inherited from esphome::Parented< TCA9555Component >
TCA9555Component * parent_
 

Detailed Description

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

Definition at line 45 of file tca9555.h.

Member Function Documentation

◆ digital_read()

bool esphome::tca9555::TCA9555GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 135 of file tca9555.cpp.

◆ digital_write()

void esphome::tca9555::TCA9555GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 136 of file tca9555.cpp.

◆ dump_summary()

std::string esphome::tca9555::TCA9555GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 137 of file tca9555.cpp.

◆ pin_mode()

void esphome::tca9555::TCA9555GPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 134 of file tca9555.cpp.

◆ set_flags()

void esphome::tca9555::TCA9555GPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 55 of file tca9555.h.

◆ set_inverted()

void esphome::tca9555::TCA9555GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 54 of file tca9555.h.

◆ set_pin()

void esphome::tca9555::TCA9555GPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 53 of file tca9555.h.

◆ setup()

void esphome::tca9555::TCA9555GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 133 of file tca9555.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::tca9555::TCA9555GPIOPin::flags_
protected

Definition at line 60 of file tca9555.h.

◆ inverted_

bool esphome::tca9555::TCA9555GPIOPin::inverted_
protected

Definition at line 59 of file tca9555.h.

◆ pin_

uint8_t esphome::tca9555::TCA9555GPIOPin::pin_
protected

Definition at line 58 of file tca9555.h.


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