ESPHome  2024.11.1
Public Member Functions | Static Protected Attributes
esphome::spi::NullPin Class Reference

A pin to replace those that don't exist. More...

#include <spi.h>

Inheritance diagram for esphome::spi::NullPin:
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
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Static Protected Attributes

static GPIOPin *const NULL_PIN = new NullPin()
 

Detailed Description

A pin to replace those that don't exist.

Definition at line 105 of file spi.h.

Member Function Documentation

◆ digital_read()

bool esphome::spi::NullPin::digital_read ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 117 of file spi.h.

◆ digital_write()

void esphome::spi::NullPin::digital_write ( bool  value)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 119 of file spi.h.

◆ dump_summary()

std::string esphome::spi::NullPin::dump_summary ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 121 of file spi.h.

◆ pin_mode()

void esphome::spi::NullPin::pin_mode ( gpio::Flags  flags)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 115 of file spi.h.

◆ setup()

void esphome::spi::NullPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 113 of file spi.h.

Field Documentation

◆ NULL_PIN

GPIOPin *const esphome::spi::NullPin::NULL_PIN = new NullPin()
staticprotected

Definition at line 124 of file spi.h.


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