ESPHome 2026.6.2
Loading...
Searching...
No Matches
esphome::pcm5122::PCM5122GPIOPin Class Reference

#include <pcm5122_gpio.h>

Inheritance diagram for esphome::pcm5122::PCM5122GPIOPin:
esphome::GPIOPin esphome::Parented< PCM5122 >

Public Member Functions

void setup () override
 
void pin_mode (gpio::Flags flags) override
 
bool digital_read () override
 
void digital_write (bool value) override
 
size_t dump_summary (char *buffer, size_t len) const override
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
gpio::Flags get_flags () const override
 
- Public Member Functions inherited from esphome::GPIOPin
- Public Member Functions inherited from esphome::Parented< PCM5122 >
 Parented ()
 
 Parented (PCM5122 *parent)
 
PCM5122 * get_parent () const
 Get the parent of this object.
 
void set_parent (PCM5122 *parent)
 Set the parent of this object.
 

Protected Attributes

uint8_t pin_ {0}
 
bool inverted_ {false}
 
gpio::Flags flags_ {gpio::FLAG_NONE}
 
bool value_ {false}
 
- Protected Attributes inherited from esphome::Parented< PCM5122 >
PCM5122 * parent_
 

Additional Inherited Members

- Data Fields inherited from esphome::GPIOPin
virtual ESPDEPRECATED("Override dump_summary(char*, size_t) instead. Will be removed in 2026.7.0.", "2026.1.0") virtual std boo is_internal )()
 Get a summary of this pin as a string.
 

Detailed Description

Definition at line 9 of file pcm5122_gpio.h.

Member Function Documentation

◆ digital_read()

bool esphome::pcm5122::PCM5122GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 54 of file pcm5122_gpio.cpp.

◆ digital_write()

void esphome::pcm5122::PCM5122GPIOPin::digital_write ( bool value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 41 of file pcm5122_gpio.cpp.

◆ dump_summary()

size_t esphome::pcm5122::PCM5122GPIOPin::dump_summary ( char * buffer,
size_t len ) const
overridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 65 of file pcm5122_gpio.cpp.

◆ get_flags()

gpio::Flags esphome::pcm5122::PCM5122GPIOPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 20 of file pcm5122_gpio.h.

◆ pin_mode()

void esphome::pcm5122::PCM5122GPIOPin::pin_mode ( gpio::Flags flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 12 of file pcm5122_gpio.cpp.

◆ set_flags()

void esphome::pcm5122::PCM5122GPIOPin::set_flags ( gpio::Flags flags)
inline

Definition at line 19 of file pcm5122_gpio.h.

◆ set_inverted()

void esphome::pcm5122::PCM5122GPIOPin::set_inverted ( bool inverted)
inline

Definition at line 18 of file pcm5122_gpio.h.

◆ set_pin()

void esphome::pcm5122::PCM5122GPIOPin::set_pin ( uint8_t pin)
inline

Definition at line 17 of file pcm5122_gpio.h.

◆ setup()

void esphome::pcm5122::PCM5122GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 10 of file pcm5122_gpio.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::pcm5122::PCM5122GPIOPin::flags_ {gpio::FLAG_NONE}
protected

Definition at line 25 of file pcm5122_gpio.h.

◆ inverted_

bool esphome::pcm5122::PCM5122GPIOPin::inverted_ {false}
protected

Definition at line 24 of file pcm5122_gpio.h.

◆ pin_

uint8_t esphome::pcm5122::PCM5122GPIOPin::pin_ {0}
protected

Definition at line 23 of file pcm5122_gpio.h.

◆ value_

bool esphome::pcm5122::PCM5122GPIOPin::value_ {false}
protected

Definition at line 26 of file pcm5122_gpio.h.


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