ESPHome
2024.9.2
esphome
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::spi_device::SPIDeviceComponent::dump_config
void dump_config() override
Definition:
spi_device.cpp:17
esphome::Component
Definition:
component.h:68
spi.h
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition:
spi.h:391
esphome::spi_device::SPIDeviceComponent
Definition:
spi_device.h:9
esphome::spi_device::SPIDeviceComponent::get_setup_priority
float get_setup_priority() const override
Definition:
spi_device.cpp:28
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::spi_device::SPIDeviceComponent::setup
void setup() override
Definition:
spi_device.cpp:11
Generated by
1.8.13