ESPHome  2024.10.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::libretiny::ArduinoInternalGPIOPin Class Reference

#include <gpio_arduino.h>

Inheritance diagram for esphome::libretiny::ArduinoInternalGPIOPin:
esphome::InternalGPIOPin esphome::GPIOPin

Public Member Functions

void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
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 detach_interrupt () const override
 
ISRInternalGPIOPin to_isr () const override
 
uint8_t get_pin () const override
 
bool is_inverted () const override
 
- Public Member Functions inherited from esphome::InternalGPIOPin
template<typename T >
void attach_interrupt (void(*func)(T *), T *arg, gpio::InterruptType type) const
 
bool is_internal () override
 

Protected Member Functions

void attach_interrupt (void(*func)(void *), void *arg, gpio::InterruptType type) const override
 

Protected Attributes

uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

Definition at line 9 of file gpio_arduino.h.

Member Function Documentation

◆ attach_interrupt()

void esphome::libretiny::ArduinoInternalGPIOPin::attach_interrupt ( void(*)(void *)  func,
void *  arg,
gpio::InterruptType  type 
) const
overrideprotectedvirtual

Implements esphome::InternalGPIOPin.

Definition at line 39 of file gpio_arduino.cpp.

◆ detach_interrupt()

void esphome::libretiny::ArduinoInternalGPIOPin::detach_interrupt ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 78 of file gpio_arduino.cpp.

◆ digital_read()

bool esphome::libretiny::ArduinoInternalGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 72 of file gpio_arduino.cpp.

◆ digital_write()

void esphome::libretiny::ArduinoInternalGPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 75 of file gpio_arduino.cpp.

◆ dump_summary()

std::string esphome::libretiny::ArduinoInternalGPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 66 of file gpio_arduino.cpp.

◆ get_pin()

uint8_t esphome::libretiny::ArduinoInternalGPIOPin::get_pin ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 22 of file gpio_arduino.h.

◆ is_inverted()

bool esphome::libretiny::ArduinoInternalGPIOPin::is_inverted ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 23 of file gpio_arduino.h.

◆ pin_mode()

void esphome::libretiny::ArduinoInternalGPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 62 of file gpio_arduino.cpp.

◆ set_flags()

void esphome::libretiny::ArduinoInternalGPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 13 of file gpio_arduino.h.

◆ set_inverted()

void esphome::libretiny::ArduinoInternalGPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 12 of file gpio_arduino.h.

◆ set_pin()

void esphome::libretiny::ArduinoInternalGPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 11 of file gpio_arduino.h.

◆ setup()

void esphome::libretiny::ArduinoInternalGPIOPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 15 of file gpio_arduino.h.

◆ to_isr()

ISRInternalGPIOPin esphome::libretiny::ArduinoInternalGPIOPin::to_isr ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 32 of file gpio_arduino.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::libretiny::ArduinoInternalGPIOPin::flags_
protected

Definition at line 30 of file gpio_arduino.h.

◆ inverted_

bool esphome::libretiny::ArduinoInternalGPIOPin::inverted_
protected

Definition at line 29 of file gpio_arduino.h.

◆ pin_

uint8_t esphome::libretiny::ArduinoInternalGPIOPin::pin_
protected

Definition at line 28 of file gpio_arduino.h.


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