ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
esphome::zephyr::ZephyrGPIOPin Class Referencefinal

#include <gpio.h>

Inheritance diagram for esphome::zephyr::ZephyrGPIOPin:
esphome::InternalGPIOPin esphome::GPIOPin

Public Member Functions

 ZephyrGPIOPin (const device *gpio, int gpio_size, const char *pin_name_prefix)
 
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
 
size_t dump_summary (char *buffer, size_t len) const override
 
void detach_interrupt () const override
 
ISRInternalGPIOPin to_isr () const override
 
uint8_t get_pin () const override
 
bool is_inverted () const override
 
gpio::Flags get_flags () 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
 
- Public Member Functions inherited from esphome::GPIOPin

Protected Member Functions

void attach_interrupt (void(*func)(void *), void *arg, gpio::InterruptType type) const override
 
- Protected Member Functions inherited from esphome::InternalGPIOPin

Protected Attributes

const device * gpio_ {nullptr}
 
const char * pin_name_prefix_ {nullptr}
 
gpio::Flags flags_ {}
 
uint8_t pin_
 
uint8_t gpio_size_ {}
 
bool inverted_ {}
 
bool value_ {false}
 
ZephyrGPIOInterrupt interrupt_ {}
 

Detailed Description

Definition at line 19 of file gpio.h.

Constructor & Destructor Documentation

◆ ZephyrGPIOPin()

esphome::zephyr::ZephyrGPIOPin::ZephyrGPIOPin ( const device * gpio,
int gpio_size,
const char * pin_name_prefix )
inline

Definition at line 21 of file gpio.h.

Member Function Documentation

◆ attach_interrupt()

void esphome::zephyr::ZephyrGPIOPin::attach_interrupt ( void(* func )(void *),
void * arg,
gpio::InterruptType type ) const
overrideprotectedvirtual

Implements esphome::InternalGPIOPin.

Definition at line 82 of file gpio.cpp.

◆ detach_interrupt()

void esphome::zephyr::ZephyrGPIOPin::detach_interrupt ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 153 of file gpio.cpp.

◆ digital_read()

bool esphome::zephyr::ZephyrGPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 136 of file gpio.cpp.

◆ digital_write()

void esphome::zephyr::ZephyrGPIOPin::digital_write ( bool value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 143 of file gpio.cpp.

◆ dump_summary()

size_t esphome::zephyr::ZephyrGPIOPin::dump_summary ( char * buffer,
size_t len ) const
overridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 132 of file gpio.cpp.

◆ get_flags()

gpio::Flags esphome::zephyr::ZephyrGPIOPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 39 of file gpio.h.

◆ get_pin()

uint8_t esphome::zephyr::ZephyrGPIOPin::get_pin ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 37 of file gpio.h.

◆ is_inverted()

bool esphome::zephyr::ZephyrGPIOPin::is_inverted ( ) const
inlineoverridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 38 of file gpio.h.

◆ pin_mode()

void esphome::zephyr::ZephyrGPIOPin::pin_mode ( gpio::Flags flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 121 of file gpio.cpp.

◆ set_flags()

void esphome::zephyr::ZephyrGPIOPin::set_flags ( gpio::Flags flags)
inline

Definition at line 28 of file gpio.h.

◆ set_inverted()

void esphome::zephyr::ZephyrGPIOPin::set_inverted ( bool inverted)
inline

Definition at line 27 of file gpio.h.

◆ set_pin()

void esphome::zephyr::ZephyrGPIOPin::set_pin ( uint8_t pin)
inline

Definition at line 26 of file gpio.h.

◆ setup()

void esphome::zephyr::ZephyrGPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 113 of file gpio.cpp.

◆ to_isr()

ISRInternalGPIOPin esphome::zephyr::ZephyrGPIOPin::to_isr ( ) const
overridevirtual

Implements esphome::InternalGPIOPin.

Definition at line 73 of file gpio.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::zephyr::ZephyrGPIOPin::flags_ {}
protected

Definition at line 45 of file gpio.h.

◆ gpio_

const device* esphome::zephyr::ZephyrGPIOPin::gpio_ {nullptr}
protected

Definition at line 43 of file gpio.h.

◆ gpio_size_

uint8_t esphome::zephyr::ZephyrGPIOPin::gpio_size_ {}
protected

Definition at line 47 of file gpio.h.

◆ interrupt_

ZephyrGPIOInterrupt esphome::zephyr::ZephyrGPIOPin::interrupt_ {}
mutableprotected

Definition at line 53 of file gpio.h.

◆ inverted_

bool esphome::zephyr::ZephyrGPIOPin::inverted_ {}
protected

Definition at line 48 of file gpio.h.

◆ pin_

uint8_t esphome::zephyr::ZephyrGPIOPin::pin_
protected

Definition at line 46 of file gpio.h.

◆ pin_name_prefix_

const char* esphome::zephyr::ZephyrGPIOPin::pin_name_prefix_ {nullptr}
protected

Definition at line 44 of file gpio.h.

◆ value_

bool esphome::zephyr::ZephyrGPIOPin::value_ {false}
protected

Definition at line 49 of file gpio.h.


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