ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::weikai::WeikaiGPIOPin Class Reference

Helper class to expose a WeiKai family IO pin as an internal GPIO pin. More...

#include <weikai.h>

Inheritance diagram for esphome::weikai::WeikaiGPIOPin:
esphome::GPIOPin

Public Member Functions

void set_parent (WeikaiComponent *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
void setup () override
 
std::string dump_summary () const override
 
void pin_mode (gpio::Flags flags) override
 
bool digital_read () override
 
void digital_write (bool value) override
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Protected Attributes

WeikaiComponentparent_ {nullptr}
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

Helper class to expose a WeiKai family IO pin as an internal GPIO pin.

Definition at line 271 of file weikai.h.

Member Function Documentation

◆ digital_read()

bool esphome::weikai::WeikaiGPIOPin::digital_read ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 281 of file weikai.h.

◆ digital_write()

void esphome::weikai::WeikaiGPIOPin::digital_write ( bool  value)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 282 of file weikai.h.

◆ dump_summary()

std::string esphome::weikai::WeikaiGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 300 of file weikai.cpp.

◆ pin_mode()

void esphome::weikai::WeikaiGPIOPin::pin_mode ( gpio::Flags  flags)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 280 of file weikai.h.

◆ set_flags()

void esphome::weikai::WeikaiGPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 276 of file weikai.h.

◆ set_inverted()

void esphome::weikai::WeikaiGPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 275 of file weikai.h.

◆ set_parent()

void esphome::weikai::WeikaiGPIOPin::set_parent ( WeikaiComponent parent)
inline

Definition at line 273 of file weikai.h.

◆ set_pin()

void esphome::weikai::WeikaiGPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 274 of file weikai.h.

◆ setup()

void esphome::weikai::WeikaiGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 291 of file weikai.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::weikai::WeikaiGPIOPin::flags_
protected

Definition at line 288 of file weikai.h.

◆ inverted_

bool esphome::weikai::WeikaiGPIOPin::inverted_
protected

Definition at line 287 of file weikai.h.

◆ parent_

WeikaiComponent* esphome::weikai::WeikaiGPIOPin::parent_ {nullptr}
protected

Definition at line 285 of file weikai.h.

◆ pin_

uint8_t esphome::weikai::WeikaiGPIOPin::pin_
protected

Definition at line 286 of file weikai.h.


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