ESPHome  2024.3.1
Public Member Functions | Protected Attributes
esphome::pca6416a::PCA6416AGPIOPin Class Reference

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

#include <pca6416a.h>

Inheritance diagram for esphome::pca6416a::PCA6416AGPIOPin:
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 (PCA6416AComponent *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Protected Attributes

PCA6416AComponentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

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

Definition at line 42 of file pca6416a.h.

Member Function Documentation

◆ digital_read()

bool esphome::pca6416a::PCA6416AGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 165 of file pca6416a.cpp.

◆ digital_write()

void esphome::pca6416a::PCA6416AGPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 166 of file pca6416a.cpp.

◆ dump_summary()

std::string esphome::pca6416a::PCA6416AGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 167 of file pca6416a.cpp.

◆ pin_mode()

void esphome::pca6416a::PCA6416AGPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 164 of file pca6416a.cpp.

◆ set_flags()

void esphome::pca6416a::PCA6416AGPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 53 of file pca6416a.h.

◆ set_inverted()

void esphome::pca6416a::PCA6416AGPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 52 of file pca6416a.h.

◆ set_parent()

void esphome::pca6416a::PCA6416AGPIOPin::set_parent ( PCA6416AComponent parent)
inline

Definition at line 50 of file pca6416a.h.

◆ set_pin()

void esphome::pca6416a::PCA6416AGPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 51 of file pca6416a.h.

◆ setup()

void esphome::pca6416a::PCA6416AGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 163 of file pca6416a.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::pca6416a::PCA6416AGPIOPin::flags_
protected

Definition at line 59 of file pca6416a.h.

◆ inverted_

bool esphome::pca6416a::PCA6416AGPIOPin::inverted_
protected

Definition at line 58 of file pca6416a.h.

◆ parent_

PCA6416AComponent* esphome::pca6416a::PCA6416AGPIOPin::parent_
protected

Definition at line 56 of file pca6416a.h.

◆ pin_

uint8_t esphome::pca6416a::PCA6416AGPIOPin::pin_
protected

Definition at line 57 of file pca6416a.h.


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