ESPHome  2021.9.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

 SN74HC595GPIOPin (SN74HC595Component *parent, uint8_t pin, bool inverted=false)
 
void setup () override
 
bool digital_read () override
 
void digital_write (bool value) override
 
- Public Member Functions inherited from esphome::GPIOPin
 GPIOPin (uint8_t pin, uint8_t mode, bool inverted=false)
 Construct the GPIOPin instance. More...
 
virtual void pin_mode (uint8_t mode)
 Set the pin mode. More...
 
uint8_t get_pin () const
 Get the GPIO pin number. More...
 
const char * get_pin_mode_name () const
 
uint8_t get_mode () const
 Get the pinMode of this pin. More...
 
bool is_inverted () const
 Return whether this pin shall be treated as inverted. (for example active-low) More...
 
template<typename T >
void attach_interrupt (void(*func)(T *), T *arg, int mode) const
 
void detach_interrupt () const
 
ISRInternalGPIOPinto_isr () const
 

Protected Attributes

SN74HC595Componentparent_
 
- Protected Attributes inherited from esphome::GPIOPin
const uint8_t pin_
 
const uint8_t mode_
 
const bool inverted_
 
volatile uint32_t *const gpio_set_
 
volatile uint32_t *const gpio_clear_
 
volatile uint32_t *const gpio_read_
 
const uint32_t gpio_mask_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::GPIOPin
void attach_interrupt_ (void(*func)(void *), void *arg, int mode) const
 
void detach_interrupt_ () const
 

Detailed Description

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

Definition at line 42 of file sn74hc595.h.

Constructor & Destructor Documentation

◆ SN74HC595GPIOPin()

esphome::sn74hc595::SN74HC595GPIOPin::SN74HC595GPIOPin ( SN74HC595Component parent,
uint8_t  pin,
bool  inverted = false 
)

Definition at line 73 of file sn74hc595.cpp.

Member Function Documentation

◆ digital_read()

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

Reimplemented from esphome::GPIOPin.

Definition at line 67 of file sn74hc595.cpp.

◆ digital_write()

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

Reimplemented from esphome::GPIOPin.

Definition at line 69 of file sn74hc595.cpp.

◆ setup()

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

Reimplemented from esphome::GPIOPin.

Definition at line 65 of file sn74hc595.cpp.

Field Documentation

◆ parent_

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

Definition at line 51 of file sn74hc595.h.


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