ESPHome  2024.9.2
Public Member Functions | Protected Attributes
esphome::sn74hc595::SN74HC595GPIOPin Class Reference

Helper class to expose a SC74HC595 pin as an internal output GPIO pin. More...

#include <sn74hc595.h>

Inheritance diagram for esphome::sn74hc595::SN74HC595GPIOPin:
esphome::GPIOPin esphome::Parented< SN74HC595Component >

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 (uint16_t pin)
 
void set_inverted (bool inverted)
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 
- Public Member Functions inherited from esphome::Parented< SN74HC595Component >
 Parented ()
 
 Parented (SN74HC595Component *parent)
 
SN74HC595Component * get_parent () const
 Get the parent of this object. More...
 
void set_parent (SN74HC595Component *parent)
 Set the parent of this object. More...
 

Protected Attributes

uint16_t pin_
 
bool inverted_
 
- Protected Attributes inherited from esphome::Parented< SN74HC595Component >
SN74HC595Component * parent_
 

Detailed Description

Helper class to expose a SC74HC595 pin as an internal output GPIO pin.

Definition at line 51 of file sn74hc595.h.

Member Function Documentation

◆ digital_read()

bool esphome::sn74hc595::SN74HC595GPIOPin::digital_read ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 55 of file sn74hc595.h.

◆ digital_write()

void esphome::sn74hc595::SN74HC595GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 94 of file sn74hc595.cpp.

◆ dump_summary()

std::string esphome::sn74hc595::SN74HC595GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 97 of file sn74hc595.cpp.

◆ pin_mode()

void esphome::sn74hc595::SN74HC595GPIOPin::pin_mode ( gpio::Flags  flags)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 54 of file sn74hc595.h.

◆ set_inverted()

void esphome::sn74hc595::SN74HC595GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 60 of file sn74hc595.h.

◆ set_pin()

void esphome::sn74hc595::SN74HC595GPIOPin::set_pin ( uint16_t  pin)
inline

Definition at line 59 of file sn74hc595.h.

◆ setup()

void esphome::sn74hc595::SN74HC595GPIOPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 53 of file sn74hc595.h.

Field Documentation

◆ inverted_

bool esphome::sn74hc595::SN74HC595GPIOPin::inverted_
protected

Definition at line 64 of file sn74hc595.h.

◆ pin_

uint16_t esphome::sn74hc595::SN74HC595GPIOPin::pin_
protected

Definition at line 63 of file sn74hc595.h.


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