ESPHome  2024.4.0
Public Member Functions | Protected Attributes
esphome::pcf8574::PCF8574GPIOPin Class Reference

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

#include <pcf8574.h>

Inheritance diagram for esphome::pcf8574::PCF8574GPIOPin:
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 (PCF8574Component *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

PCF8574Componentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

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

Definition at line 44 of file pcf8574.h.

Member Function Documentation

◆ digital_read()

bool esphome::pcf8574::PCF8574GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 97 of file pcf8574.cpp.

◆ digital_write()

void esphome::pcf8574::PCF8574GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 98 of file pcf8574.cpp.

◆ dump_summary()

std::string esphome::pcf8574::PCF8574GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 99 of file pcf8574.cpp.

◆ pin_mode()

void esphome::pcf8574::PCF8574GPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 96 of file pcf8574.cpp.

◆ set_flags()

void esphome::pcf8574::PCF8574GPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 55 of file pcf8574.h.

◆ set_inverted()

void esphome::pcf8574::PCF8574GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 54 of file pcf8574.h.

◆ set_parent()

void esphome::pcf8574::PCF8574GPIOPin::set_parent ( PCF8574Component parent)
inline

Definition at line 52 of file pcf8574.h.

◆ set_pin()

void esphome::pcf8574::PCF8574GPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 53 of file pcf8574.h.

◆ setup()

void esphome::pcf8574::PCF8574GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 95 of file pcf8574.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::pcf8574::PCF8574GPIOPin::flags_
protected

Definition at line 61 of file pcf8574.h.

◆ inverted_

bool esphome::pcf8574::PCF8574GPIOPin::inverted_
protected

Definition at line 60 of file pcf8574.h.

◆ parent_

PCF8574Component* esphome::pcf8574::PCF8574GPIOPin::parent_
protected

Definition at line 58 of file pcf8574.h.

◆ pin_

uint8_t esphome::pcf8574::PCF8574GPIOPin::pin_
protected

Definition at line 59 of file pcf8574.h.


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