8 class KNX_IMPORT_EXPORT
dpt_2 {
11 class KNX_IMPORT_EXPORT
data {
14 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data & time);
33 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data & time);
35 KNX_IMPORT_EXPORT
data(
bool c, uint8_t v);
37 KNX_IMPORT_EXPORT data();
49 class KNX_IMPORT_EXPORT
data 53 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data & time);
55 bool operator== (
const data & other );
67 static const uint8_t NODAY = 0;
69 static const uint8_t MONDAY = 1;
71 static const uint8_t TUESDAY = 2;
73 static const uint8_t WEDNESDAY = 3;
75 static const uint8_t THURSDAY = 4;
77 static const uint8_t FRIDAY = 5;
79 static const uint8_t SATURDAY = 6;
81 static const uint8_t SUNDAY = 7;
89 class KNX_IMPORT_EXPORT
data 93 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data & date);
95 bool operator== (
const data & other );
115 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
117 bool operator== (
const data & other );
156 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
158 bool operator== (
const data & other );
177 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
179 bool operator== (
const data & other );
200 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
202 bool operator== (
const data & other );
225 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
227 bool operator== (
const data & other );
293 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
295 bool operator== (
const data & other );
318 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
320 bool operator== (
const data & other );
353 KNX_IMPORT_EXPORT
friend std::ostream &
operator << (std::ostream & os,
const data &
data);
355 bool operator== (
const data & other );
uint8_t day
Day of month.
Definition: dpt_types.hpp:99
uint8_t minutes
From 0 to 59.
Definition: dpt_types.hpp:63
unsigned int alarm_status_attributes
Alarm status attributes with 0 (inalarm), 1 (alarmunack) and 2 (locked)
Definition: dpt_types.hpp:340
unsigned int f
Fault with 1 is true.
Definition: dpt_types.hpp:261
unsigned int reserverd0
Do not use.
Definition: dpt_types.hpp:334
unsigned int res4
do not use
Definition: dpt_types.hpp:280
unsigned int month
January is 1, February 2, ...
Definition: dpt_types.hpp:238
Base class container.
Definition: dpt_types.hpp:86
unsigned int reserverd1
Do not use.
Definition: dpt_types.hpp:338
bool e
Error detection (0 is no error).
Definition: dpt_types.hpp:135
unsigned int day_of_month
From 1st to 31st day.
Definition: dpt_types.hpp:243
bool control
Control bit.
Definition: dpt_types.hpp:39
bool c
Encryption (1 is yes).
Definition: dpt_types.hpp:139
unsigned int index
Index of access identification code.
Definition: dpt_types.hpp:143
unsigned int wd
Set to 1 if it is a working day.
Definition: dpt_types.hpp:263
Data container for this dpt.
Definition: dpt_types.hpp:173
Data container for this dpt.
Definition: dpt_types.hpp:49
Data container for this dpt.
Definition: dpt_types.hpp:89
unsigned char application_area
Area of error (there is a table where 0 is no fault and 20 is lighting (for example) ...
Definition: dpt_types.hpp:330
Data container for this dpt.
Definition: dpt_types.hpp:111
Data container for this dpt.
Definition: dpt_types.hpp:152
Data container for this dpt.
Definition: dpt_types.hpp:196
Data container for this dpt.
Definition: dpt_types.hpp:221
uint8_t year
Year with two digits. >=90 is expected to start with 19XX.
Definition: dpt_types.hpp:103
unsigned int nt
Set to one if time is not valid.
Definition: dpt_types.hpp:273
Data container for this dpt.
Definition: dpt_types.hpp:289
unsigned int d4
digit4
Definition: dpt_types.hpp:127
unsigned int r
do not use
Definition: dpt_types.hpp:210
unsigned int clq
Quality of clock. 1 says with external signal.
Definition: dpt_types.hpp:278
unsigned int res0
do not use
Definition: dpt_types.hpp:236
uint8_t value
Control field.
Definition: dpt_types.hpp:41
unsigned int r
Reserved do not use!.
Definition: dpt_types.hpp:185
Data container for this dpt.
Definition: dpt_types.hpp:11
unsigned char error_class
Class of error. 0 is no fault. 4 is hw fault (table exists)
Definition: dpt_types.hpp:332
Base class for dpt 3.
Definition: dpt_types.hpp:27
Data container for this dpt.
Definition: dpt_types.hpp:30
unsigned int attributes
Bit field with 0 (ack), 1 (timestamp), 2 (alarmtext), 3 (errorcode) supressed.
Definition: dpt_types.hpp:336
uint8_t seconds
From 0 to 59.
Definition: dpt_types.hpp:65
unsigned int d5
digit5
Definition: dpt_types.hpp:125
uint8_t month
Month of year.
Definition: dpt_types.hpp:101
Base class container.
Definition: dpt_types.hpp:170
unsigned int res2
do not use
Definition: dpt_types.hpp:251
unsigned int ny
Set to one if year is not valid.
Definition: dpt_types.hpp:267
bool d
Read direction (0 is left to right).
Definition: dpt_types.hpp:141
bool value
Value bit.
Definition: dpt_types.hpp:22
Base class container.
Definition: dpt_types.hpp:286
unsigned int seconds
Seconds till 59.
Definition: dpt_types.hpp:258
unsigned int res3
do not use
Definition: dpt_types.hpp:256
Base class container.
Definition: dpt_types.hpp:346
separated namespace to embed all libknx related classes
Definition: connection.hpp:14
unsigned int d6
digit6
Definition: dpt_types.hpp:123
unsigned int suti
Summer time field. Add one hour if set to one.
Definition: dpt_types.hpp:275
Base class container.
Definition: dpt_types.hpp:193
unsigned int d3
digit3
Definition: dpt_types.hpp:129
unsigned char log_number
Number of the current log.
Definition: dpt_types.hpp:326
unsigned int d2
digit2
Definition: dpt_types.hpp:131
unsigned int c
0 means activate and 1 learn the scene
Definition: dpt_types.hpp:208
Base class for dpt 2.
Definition: dpt_types.hpp:8
Base class container.
Definition: dpt_types.hpp:108
unsigned int minutes
Minutes till 59.
Definition: dpt_types.hpp:253
Base class container.
Definition: dpt_types.hpp:311
unsigned int day_of_week
Monday is 1, Tuesday is 2, ..
Definition: dpt_types.hpp:246
Data container for this dpt.
Definition: dpt_types.hpp:349
unsigned int res1
do not use
Definition: dpt_types.hpp:241
std::ostream & operator<<(std::ostream &os, dpt< MAJOR, MINOR > &data)
Major function to output the value of a dpt. (see template of dpt)
bool p
Permission (1 is accepted).
Definition: dpt_types.hpp:137
unsigned int number
scene nuber
Definition: dpt_types.hpp:212
Data container for this dpt.
Definition: dpt_types.hpp:314
unsigned int number
Scene number with 6 bits.
Definition: dpt_types.hpp:187
unsigned int scene_number
The number of the scene.
Definition: dpt_types.hpp:305
unsigned int nwd
Indicates if wd field is valid. 1 means not valid.
Definition: dpt_types.hpp:265
unsigned int year
Add 1900 to get real year.
Definition: dpt_types.hpp:233
Base class container.
Definition: dpt_types.hpp:218
unsigned int active
1 says scene is inactive.
Definition: dpt_types.hpp:303
unsigned int hour_of_day
As usual.
Definition: dpt_types.hpp:248
unsigned char alarm_priority
Priority with 0 is highest.
Definition: dpt_types.hpp:328
bool control
Control bit.
Definition: dpt_types.hpp:20
uint8_t day
day of the week monday (1) till sunday (7)
Definition: dpt_types.hpp:59
unsigned int d1
digit1
Definition: dpt_types.hpp:133
Base class container.
Definition: dpt_types.hpp:46
unsigned int ndow
Set to one if day of week is not valid.
Definition: dpt_types.hpp:271
Base class container.
Definition: dpt_types.hpp:149
uint8_t hour
From 0 to 23.
Definition: dpt_types.hpp:61
unsigned int nd
Set to one if day and month are not valid.
Definition: dpt_types.hpp:269
unsigned int reserved
Do not use.
Definition: dpt_types.hpp:301