ESPHome  2022.12.8
Public Member Functions | Protected Attributes
esphome::mcp23xxx_base::MCP23XXXGPIOPin Class Reference

#include <mcp23xxx_base.h>

Inheritance diagram for esphome::mcp23xxx_base::MCP23XXXGPIOPin:
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 (MCP23XXXBase *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
void set_interrupt_mode (MCP23XXXInterruptMode interrupt_mode)
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Protected Attributes

MCP23XXXBaseparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 
MCP23XXXInterruptMode interrupt_mode_
 

Detailed Description

Definition at line 32 of file mcp23xxx_base.h.

Member Function Documentation

◆ digital_read()

bool esphome::mcp23xxx_base::MCP23XXXGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 11 of file mcp23xxx_base.cpp.

◆ digital_write()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 12 of file mcp23xxx_base.cpp.

◆ dump_summary()

std::string esphome::mcp23xxx_base::MCP23XXXGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 13 of file mcp23xxx_base.cpp.

◆ pin_mode()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 10 of file mcp23xxx_base.cpp.

◆ set_flags()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 43 of file mcp23xxx_base.h.

◆ set_interrupt_mode()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::set_interrupt_mode ( MCP23XXXInterruptMode  interrupt_mode)
inline

Definition at line 44 of file mcp23xxx_base.h.

◆ set_inverted()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 42 of file mcp23xxx_base.h.

◆ set_parent()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::set_parent ( MCP23XXXBase parent)
inline

Definition at line 40 of file mcp23xxx_base.h.

◆ set_pin()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 41 of file mcp23xxx_base.h.

◆ setup()

void esphome::mcp23xxx_base::MCP23XXXGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 9 of file mcp23xxx_base.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::mcp23xxx_base::MCP23XXXGPIOPin::flags_
protected

Definition at line 50 of file mcp23xxx_base.h.

◆ interrupt_mode_

MCP23XXXInterruptMode esphome::mcp23xxx_base::MCP23XXXGPIOPin::interrupt_mode_
protected

Definition at line 51 of file mcp23xxx_base.h.

◆ inverted_

bool esphome::mcp23xxx_base::MCP23XXXGPIOPin::inverted_
protected

Definition at line 49 of file mcp23xxx_base.h.

◆ parent_

MCP23XXXBase* esphome::mcp23xxx_base::MCP23XXXGPIOPin::parent_
protected

Definition at line 47 of file mcp23xxx_base.h.

◆ pin_

uint8_t esphome::mcp23xxx_base::MCP23XXXGPIOPin::pin_
protected

Definition at line 48 of file mcp23xxx_base.h.


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