ESPHome
2025.6.0
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
d
e
f
i
j
l
m
n
o
p
q
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
m
o
p
s
t
v
w
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
l
m
o
p
s
t
u
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
esphome
components
ina2xx_spi
ina2xx_spi.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/ina2xx_base/ina2xx_base.h
"
5
#include "
esphome/components/spi/spi.h
"
6
7
namespace
esphome
{
8
namespace
ina2xx_spi {
9
10
class
INA2XXSPI
:
public
ina2xx_base::INA2XX
,
11
public
spi::SPIDevice
<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_TRAILING,
12
spi::DATA_RATE_1MHZ> {
13
public
:
14
void
setup
()
override
;
15
void
dump_config
()
override
;
16
17
protected
:
18
bool
read_ina_register
(uint8_t reg, uint8_t *data,
size_t
len
)
override
;
19
bool
write_ina_register
(uint8_t reg,
const
uint8_t *data,
size_t
len
)
override
;
20
};
10
class
INA2XXSPI
:
public
ina2xx_base::INA2XX
, {
…
};
21
}
// namespace ina2xx_spi
22
}
// namespace esphome
esphome::ina2xx_base::INA2XX
Definition
ina2xx_base.h:114
esphome::ina2xx_spi::INA2XXSPI
Definition
ina2xx_spi.h:12
esphome::ina2xx_spi::INA2XXSPI::write_ina_register
bool write_ina_register(uint8_t reg, const uint8_t *data, size_t len) override
Definition
ina2xx_spi.cpp:29
esphome::ina2xx_spi::INA2XXSPI::dump_config
void dump_config() override
Definition
ina2xx_spi.cpp:14
esphome::ina2xx_spi::INA2XXSPI::setup
void setup() override
Definition
ina2xx_spi.cpp:9
esphome::ina2xx_spi::INA2XXSPI::read_ina_register
bool read_ina_register(uint8_t reg, uint8_t *data, size_t len) override
Definition
ina2xx_spi.cpp:19
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition
spi.h:421
component.h
ina2xx_base.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
esphome::len
std::string size_t len
Definition
helpers.h:302
spi.h
Generated by
1.12.0