ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::ch423::CH423GPIOPin Class Reference

Helper class to expose a CH423 pin as a GPIO pin. More...

#include <ch423.h>

Inheritance diagram for esphome::ch423::CH423GPIOPin:
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
 
size_t dump_summary (char *buffer, size_t len) const override
 
void set_parent (CH423Component *parent)
 
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

Protected Attributes

CH423Componentparent_ {}
 
uint8_t pin_ {}
 
bool inverted_ {}
 
gpio::Flags flags_ {}
 

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

Helper class to expose a CH423 pin as a GPIO pin.

Definition at line 45 of file ch423.h.

Member Function Documentation

◆ digital_read()

bool esphome::ch423::CH423GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 137 of file ch423.cpp.

◆ digital_write()

void esphome::ch423::CH423GPIOPin::digital_write ( bool value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 139 of file ch423.cpp.

◆ dump_summary()

size_t esphome::ch423::CH423GPIOPin::dump_summary ( char * buffer,
size_t len ) const
overridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 140 of file ch423.cpp.

◆ get_flags()

gpio::Flags esphome::ch423::CH423GPIOPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 58 of file ch423.h.

◆ pin_mode()

void esphome::ch423::CH423GPIOPin::pin_mode ( gpio::Flags flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 136 of file ch423.cpp.

◆ set_flags()

void esphome::ch423::CH423GPIOPin::set_flags ( gpio::Flags flags)

Definition at line 143 of file ch423.cpp.

◆ set_inverted()

void esphome::ch423::CH423GPIOPin::set_inverted ( bool inverted)
inline

Definition at line 55 of file ch423.h.

◆ set_parent()

void esphome::ch423::CH423GPIOPin::set_parent ( CH423Component * parent)
inline

Definition at line 53 of file ch423.h.

◆ set_pin()

void esphome::ch423::CH423GPIOPin::set_pin ( uint8_t pin)
inline

Definition at line 54 of file ch423.h.

◆ setup()

void esphome::ch423::CH423GPIOPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 47 of file ch423.h.

Field Documentation

◆ flags_

gpio::Flags esphome::ch423::CH423GPIOPin::flags_ {}
protected

Definition at line 64 of file ch423.h.

◆ inverted_

bool esphome::ch423::CH423GPIOPin::inverted_ {}
protected

Definition at line 63 of file ch423.h.

◆ parent_

CH423Component* esphome::ch423::CH423GPIOPin::parent_ {}
protected

Definition at line 61 of file ch423.h.

◆ pin_

uint8_t esphome::ch423::CH423GPIOPin::pin_ {}
protected

Definition at line 62 of file ch423.h.


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