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

Helper class to expose a CH422G pin as a 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 a GPIO pin.

Definition at line 47 of file ch422g.h.

Member Function Documentation

◆ digital_read()

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

Implements esphome::GPIOPin.

Definition at line 129 of file ch422g.cpp.

◆ digital_write()

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

Implements esphome::GPIOPin.

Definition at line 131 of file ch422g.cpp.

◆ dump_summary()

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

Implements esphome::GPIOPin.

Definition at line 132 of file ch422g.cpp.

◆ pin_mode()

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

Implements esphome::GPIOPin.

Definition at line 128 of file ch422g.cpp.

◆ set_flags()

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

Definition at line 133 of file ch422g.cpp.

◆ set_inverted()

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

Definition at line 57 of file ch422g.h.

◆ set_parent()

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

Definition at line 55 of file ch422g.h.

◆ set_pin()

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

Definition at line 56 of file ch422g.h.

◆ setup()

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

Implements esphome::GPIOPin.

Definition at line 49 of file ch422g.h.

Field Documentation

◆ flags_

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

Definition at line 64 of file ch422g.h.

◆ inverted_

bool esphome::ch422g::CH422GGPIOPin::inverted_ {}
protected

Definition at line 63 of file ch422g.h.

◆ parent_

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

Definition at line 61 of file ch422g.h.

◆ pin_

uint8_t esphome::ch422g::CH422GGPIOPin::pin_ {}
protected

Definition at line 62 of file ch422g.h.


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