ESPHome  2024.5.0
Public Member Functions | Protected Attributes
esphome::sn74hc165::SN74HC165GPIOPin Class Reference

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

#include <sn74hc165.h>

Inheritance diagram for esphome::sn74hc165::SN74HC165GPIOPin:
esphome::GPIOPin esphome::Parented< SN74HC165Component >

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< SN74HC165Component >
 Parented ()
 
 Parented (SN74HC165Component *parent)
 
SN74HC165Component * get_parent () const
 Get the parent of this object. More...
 
void set_parent (SN74HC165Component *parent)
 Set the parent of this object. More...
 

Protected Attributes

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

Detailed Description

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

Definition at line 44 of file sn74hc165.h.

Member Function Documentation

◆ digital_read()

bool esphome::sn74hc165::SN74HC165GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 67 of file sn74hc165.cpp.

◆ digital_write()

void esphome::sn74hc165::SN74HC165GPIOPin::digital_write ( bool  value)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 49 of file sn74hc165.h.

◆ dump_summary()

std::string esphome::sn74hc165::SN74HC165GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 69 of file sn74hc165.cpp.

◆ pin_mode()

void esphome::sn74hc165::SN74HC165GPIOPin::pin_mode ( gpio::Flags  flags)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 47 of file sn74hc165.h.

◆ set_inverted()

void esphome::sn74hc165::SN74HC165GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 53 of file sn74hc165.h.

◆ set_pin()

void esphome::sn74hc165::SN74HC165GPIOPin::set_pin ( uint16_t  pin)
inline

Definition at line 52 of file sn74hc165.h.

◆ setup()

void esphome::sn74hc165::SN74HC165GPIOPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 46 of file sn74hc165.h.

Field Documentation

◆ inverted_

bool esphome::sn74hc165::SN74HC165GPIOPin::inverted_
protected

Definition at line 57 of file sn74hc165.h.

◆ pin_

uint16_t esphome::sn74hc165::SN74HC165GPIOPin::pin_
protected

Definition at line 56 of file sn74hc165.h.


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