ESPHome  2024.9.0
Public Member Functions | Protected Attributes
esphome::ch422g::CH422GGPIOPin Class Reference

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

#include <ch422g.h>

Inheritance diagram for esphome::ch422g::CH422GGPIOPin:
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 (CH422GComponent *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

CH422GComponentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

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

Definition at line 49 of file ch422g.h.

Member Function Documentation

◆ digital_read()

bool esphome::ch422g::CH422GGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 116 of file ch422g.cpp.

◆ digital_write()

void esphome::ch422g::CH422GGPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 118 of file ch422g.cpp.

◆ dump_summary()

std::string esphome::ch422g::CH422GGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 119 of file ch422g.cpp.

◆ pin_mode()

void esphome::ch422g::CH422GGPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 115 of file ch422g.cpp.

◆ set_flags()

void esphome::ch422g::CH422GGPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 60 of file ch422g.h.

◆ set_inverted()

void esphome::ch422g::CH422GGPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 59 of file ch422g.h.

◆ set_parent()

void esphome::ch422g::CH422GGPIOPin::set_parent ( CH422GComponent parent)
inline

Definition at line 57 of file ch422g.h.

◆ set_pin()

void esphome::ch422g::CH422GGPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 58 of file ch422g.h.

◆ setup()

void esphome::ch422g::CH422GGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 114 of file ch422g.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::ch422g::CH422GGPIOPin::flags_
protected

Definition at line 66 of file ch422g.h.

◆ inverted_

bool esphome::ch422g::CH422GGPIOPin::inverted_
protected

Definition at line 65 of file ch422g.h.

◆ parent_

CH422GComponent* esphome::ch422g::CH422GGPIOPin::parent_
protected

Definition at line 63 of file ch422g.h.

◆ pin_

uint8_t esphome::ch422g::CH422GGPIOPin::pin_
protected

Definition at line 64 of file ch422g.h.


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