ESPHome  2022.8.0
Public Member Functions | Protected Attributes
esphome::mcp23016::MCP23016GPIOPin Class Reference

#include <mcp23016.h>

Inheritance diagram for esphome::mcp23016::MCP23016GPIOPin:
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 (MCP23016 *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

MCP23016parent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

Definition at line 51 of file mcp23016.h.

Member Function Documentation

◆ digital_read()

bool esphome::mcp23016::MCP23016GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 82 of file mcp23016.cpp.

◆ digital_write()

void esphome::mcp23016::MCP23016GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 83 of file mcp23016.cpp.

◆ dump_summary()

std::string esphome::mcp23016::MCP23016GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 84 of file mcp23016.cpp.

◆ pin_mode()

void esphome::mcp23016::MCP23016GPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 81 of file mcp23016.cpp.

◆ set_flags()

void esphome::mcp23016::MCP23016GPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 62 of file mcp23016.h.

◆ set_inverted()

void esphome::mcp23016::MCP23016GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 61 of file mcp23016.h.

◆ set_parent()

void esphome::mcp23016::MCP23016GPIOPin::set_parent ( MCP23016 parent)
inline

Definition at line 59 of file mcp23016.h.

◆ set_pin()

void esphome::mcp23016::MCP23016GPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 60 of file mcp23016.h.

◆ setup()

void esphome::mcp23016::MCP23016GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 80 of file mcp23016.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::mcp23016::MCP23016GPIOPin::flags_
protected

Definition at line 68 of file mcp23016.h.

◆ inverted_

bool esphome::mcp23016::MCP23016GPIOPin::inverted_
protected

Definition at line 67 of file mcp23016.h.

◆ parent_

MCP23016* esphome::mcp23016::MCP23016GPIOPin::parent_
protected

Definition at line 65 of file mcp23016.h.

◆ pin_

uint8_t esphome::mcp23016::MCP23016GPIOPin::pin_
protected

Definition at line 66 of file mcp23016.h.


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