ESPHome
2025.2.2
Main Page
Modules
+
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
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
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
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
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
+
Functions
_
a
l
m
o
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
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
sml
constants.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
esphome
{
6
namespace
sml {
7
8
enum
SmlType
: uint8_t {
9
SML_OCTET
= 0,
10
SML_BOOL
= 4,
11
SML_INT
= 5,
12
SML_UINT
= 6,
13
SML_LIST
= 7,
14
SML_HEX
= 10,
15
SML_UNDEFINED
= 255
16
};
17
18
enum
SmlMessageType
: uint16_t {
SML_PUBLIC_OPEN_RES
= 0x0101,
SML_GET_LIST_RES
= 0x701 };
19
20
// masks with two-bit mapping 0x1b -> 0b01; 0x01 -> 0b10; 0x1a -> 0b11
21
const
uint16_t
START_MASK
= 0x55aa;
// 0x1b 1b 1b 1b 01 01 01 01
22
const
uint16_t
END_MASK
= 0x0157;
// 0x1b 1b 1b 1b 1a
23
24
const
std::vector<uint8_t>
START_SEQ
= {0x1b, 0x1b, 0x1b, 0x1b, 0x01, 0x01, 0x01, 0x01};
25
26
}
// namespace sml
27
}
// namespace esphome
esphome::sml::START_MASK
const uint16_t START_MASK
Definition:
constants.h:21
esphome::sml::SML_UINT
Definition:
constants.h:12
esphome::sml::SML_LIST
Definition:
constants.h:13
esphome::sml::START_SEQ
const std::vector< uint8_t > START_SEQ
Definition:
constants.h:24
esphome::sml::SmlMessageType
SmlMessageType
Definition:
constants.h:18
esphome::sml::SmlType
SmlType
Definition:
constants.h:8
esphome::sml::SML_INT
Definition:
constants.h:11
esphome::sml::SML_PUBLIC_OPEN_RES
Definition:
constants.h:18
esphome::sml::END_MASK
const uint16_t END_MASK
Definition:
constants.h:22
esphome::sml::SML_UNDEFINED
Definition:
constants.h:15
esphome::sml::SML_OCTET
Definition:
constants.h:9
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::sml::SML_HEX
Definition:
constants.h:14
esphome::sml::SML_BOOL
Definition:
constants.h:10
esphome::sml::SML_GET_LIST_RES
Definition:
constants.h:18
Generated by
1.8.13