ESPHome 2025.5.0
Loading...
Searching...
No Matches
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)
 
gpio::Flags get_flags () const override
 Always returns gpio::Flags::FLAG_OUTPUT.
 
- 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.
 
void set_parent (SN74HC595Component *parent)
 Set the parent of this object.
 

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.

◆ get_flags()

gpio::Flags esphome::sn74hc595::SN74HC595GPIOPin::get_flags ( ) const
inlineoverridevirtual

Always returns gpio::Flags::FLAG_OUTPUT.

Implements esphome::GPIOPin.

Definition at line 63 of file sn74hc595.h.

◆ 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 67 of file sn74hc595.h.

◆ pin_

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

Definition at line 66 of file sn74hc595.h.


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