ESPHome
2024.11.0
esphome
esphome
components
adc128s102
adc128s102.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/core/hal.h
"
5
#include "
esphome/components/spi/spi.h
"
6
7
namespace
esphome
{
8
namespace
adc128s102 {
9
10
class
ADC128S102
:
public
Component
,
11
public
spi::SPIDevice
<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
12
spi::DATA_RATE_10MHZ> {
13
public
:
14
ADC128S102
() =
default
;
15
16
void
setup
()
override
;
17
void
dump_config
()
override
;
18
float
get_setup_priority
()
const override
;
19
uint16_t
read_data
(uint8_t channel);
20
};
21
22
}
// namespace adc128s102
23
}
// namespace esphome
esphome::adc128s102::ADC128S102::setup
void setup() override
Definition:
adc128s102.cpp:11
hal.h
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::adc128s102::ADC128S102::ADC128S102
ADC128S102()=default
esphome::adc128s102::ADC128S102::get_setup_priority
float get_setup_priority() const override
Definition:
adc128s102.cpp:9
esphome::adc128s102::ADC128S102::read_data
uint16_t read_data(uint8_t channel)
Definition:
adc128s102.cpp:21
esphome::adc128s102::ADC128S102
Definition:
adc128s102.h:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::adc128s102::ADC128S102::dump_config
void dump_config() override
Definition:
adc128s102.cpp:16
component.h
Generated by
1.8.13