knx
ETS configurable knx-stack
dpt.cpp
Go to the documentation of this file.
1
#include "
dpt.h
"
2
3
#include "
bits.h
"
4
5
Dpt::Dpt
()
6
{}
7
8
Dpt::Dpt
(
short
mainGroup,
short
subGroup,
short
index
/* = 0 */
)
9
: mainGroup(mainGroup), subGroup(subGroup), index(index)
10
{
11
if
(
subGroup
== 0)
12
println
(
"WARNING: You used and invalid Dpt *.0"
);
13
}
14
15
bool
Dpt::operator==
(
const
Dpt
& other)
const
16
{
17
return
other.
mainGroup
==
mainGroup
&& other.
subGroup
==
subGroup
&& other.
index
==
index
;
18
}
19
20
bool
Dpt::operator!=
(
const
Dpt
& other)
const
21
{
22
return
!(other == *
this
);
23
}
println
void println(const char *s)
Definition:
arduino_platform.cpp:218
bits.h
Dpt
Definition:
dpt.h:364
Dpt::operator==
bool operator==(const Dpt &other) const
Definition:
dpt.cpp:15
Dpt::operator!=
bool operator!=(const Dpt &other) const
Definition:
dpt.cpp:20
Dpt::mainGroup
unsigned short mainGroup
Definition:
dpt.h:368
Dpt::index
unsigned short index
Definition:
dpt.h:370
Dpt::subGroup
unsigned short subGroup
Definition:
dpt.h:369
Dpt::Dpt
Dpt()
Definition:
dpt.cpp:5
dpt.h
src
knx
dpt.cpp
Generated by
1.9.1