ESPHome  2022.6.3
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

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

Protected Attributes

SN74HC595Componentparent_
 
uint8_t pin_
 
bool inverted_
 

Detailed Description

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

Definition at line 42 of file sn74hc595.h.

Member Function Documentation

◆ digital_read()

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

Implements esphome::GPIOPin.

Definition at line 46 of file sn74hc595.h.

◆ digital_write()

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

Implements esphome::GPIOPin.

Definition at line 65 of file sn74hc595.cpp.

◆ dump_summary()

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

Implements esphome::GPIOPin.

Definition at line 68 of file sn74hc595.cpp.

◆ pin_mode()

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

Implements esphome::GPIOPin.

Definition at line 45 of file sn74hc595.h.

◆ set_inverted()

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

Definition at line 52 of file sn74hc595.h.

◆ set_parent()

void esphome::sn74hc595::SN74HC595GPIOPin::set_parent ( SN74HC595Component parent)
inline

Definition at line 50 of file sn74hc595.h.

◆ set_pin()

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

Definition at line 51 of file sn74hc595.h.

◆ setup()

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

Implements esphome::GPIOPin.

Definition at line 44 of file sn74hc595.h.

Field Documentation

◆ inverted_

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

Definition at line 57 of file sn74hc595.h.

◆ parent_

SN74HC595Component* esphome::sn74hc595::SN74HC595GPIOPin::parent_
protected

Definition at line 55 of file sn74hc595.h.

◆ pin_

uint8_t esphome::sn74hc595::SN74HC595GPIOPin::pin_
protected

Definition at line 56 of file sn74hc595.h.


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