ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
spi_device
spi_device.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/spi/spi.h
"
5
6
namespace
esphome
{
7
namespace
spi_device {
8
9
class
SPIDeviceComponent
:
public
Component
,
10
public
spi::SPIDevice
<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH,
11
spi::CLOCK_PHASE_TRAILING, spi::DATA_RATE_1MHZ> {
12
public
:
13
void
setup
()
override
;
14
void
dump_config
()
override
;
15
16
float
get_setup_priority
()
const override
;
17
18
protected
:
19
};
20
21
}
// namespace spi_device
22
}
// namespace esphome
esphome::Component
Definition
component.h:70
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition
spi.h:421
esphome::spi_device::SPIDeviceComponent
Definition
spi_device.h:11
esphome::spi_device::SPIDeviceComponent::setup
void setup() override
Definition
spi_device.cpp:11
esphome::spi_device::SPIDeviceComponent::dump_config
void dump_config() override
Definition
spi_device.cpp:17
esphome::spi_device::SPIDeviceComponent::get_setup_priority
float get_setup_priority() const override
Definition
spi_device.cpp:28
component.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
spi.h
Generated by
1.12.0