48 template<
typename data_type>
49 static std::string describe (
const typename data_type::major_type::set_type & data );
58 typedef uint8_t data_type;
59 typedef bool set_type;
60 static void set ( set_type value, data_type & data );
61 static set_type get (
const data_type & data );
70 static const int INDEX = DPT_1_001;
72 static const major_type::set_type ON;
73 static const major_type::set_type OFF;
74 static std::string describe (
const major_type::set_type & data );
86 typedef uint8_t data_type;
87 typedef std::pair<bool,bool> set_type;
88 static void set ( set_type value, data_type & data );
89 static set_type get (
const data_type & data );
98 static const int INDEX = DPT_2_001;
100 static const major_type::set_type NO_CONTROL;
101 static const major_type::set_type CONTROL_VALUE_ZERO;
102 static const major_type::set_type CONTROL_VALUE_ONE;
103 static std::string describe (
const major_type::set_type & data );
112 typedef uint8_t data_type;
113 typedef std::pair<bool,uint8_t> set_type;
114 static void set ( set_type value, data_type & data );
115 static set_type get (
const data_type & data );
124 static const int INDEX = DPT_3_007;
126 static std::string describe (
const major_type::set_type & data );
140 data ( uint8_t character = 0 ) :static_part ( 0 ),character ( character ) {}
144 typedef uint8_t set_type;
155 static const int INDEX = DPT_4_001;
157 static std::string describe (
const major_type::set_type & data );
171 data ( uint8_t unsigned_value = 0 );
172 uint8_t unsigned_value;
175 typedef uint8_t set_type;
186 static const int INDEX = DPT_5_001;
188 typedef TYPENAME major_type::set_type set_type;
189 static std::string describe (
const major_type::set_type & data );
206 data ( int8_t real_signed_value = 0 ) :static_part ( 0 ),real_signed_value ( real_signed_value ) {}
207 int8_t real_signed_value;
210 typedef int8_t set_type;
221 static const int INDEX = DPT_6_001;
223 typedef TYPENAME major_type::set_type set_type;
224 static std::string describe (
const major_type::set_type & data );
238 data ( ) : static_part ( 0 ), value ( 0 ) {}
242 typedef uint16_t set_type;
253 static const int INDEX = DPT_7_001;
255 typedef TYPENAME major_type::set_type set_type;
256 static std::string describe (
const major_type::set_type & data );
270 data ( ) : static_part ( 0 ), value ( 0 ) {}
274 typedef int16_t set_type;
285 static const int INDEX = DPT_8_001;
287 typedef TYPENAME major_type::set_type set_type;
288 static std::string describe (
const major_type::set_type & data );
297 static const uint16_t INVALID_DATA = 0x7fff;
298 static const uint16_t MAX = 0x7ffe;
299 static const uint16_t MIN = 0xf800;
300 static const float MAX_FLOAT;
301 static const float MIN_FLOAT;
307 data (
float float_value = 0.f );
311 typedef float set_type;
322 static const int INDEX = DPT_9_001;
324 static std::string describe (
const major_type::set_type & data );
336 KNX_IMPORT_EXPORT
friend std::ostream & operator << (std::ostream & os,
const time &
time);
338 inline bool operator== (
const time & other )
340 return ( ( this->day == other.day ) && ( this->hour == other.hour ) && ( this->minutes == other.minutes ) && ( this->seconds == other.seconds ) );
348 static const uint8_t NODAY = 0;
349 static const uint8_t MONDAY = 1;
350 static const uint8_t TUESDAY = 2;
351 static const uint8_t WEDNESDAY = 3;
352 static const uint8_t THURSDAY = 4;
353 static const uint8_t FRIDAY = 5;
354 static const uint8_t SATURDAY = 6;
355 static const uint8_t SUNDAY = 7;
357 typedef uint32_t data_type;
359 static void set (
set_type value, data_type & data );
360 static set_type get (
const data_type & data );
363 KNX_IMPORT_EXPORT std::ostream & operator << (std::ostream & os,
const dpt_10::time & time);
371 static const int INDEX = DPT_10_001;
390 inline bool operator== (
const date & other )
392 return ( ( this->day == other.day ) && ( this->month == other.month ) && ( this->year == other.year ) );
400 typedef uint32_t data_type;
402 static void set (
set_type value, data_type & data );
403 static set_type get (
const data_type & data );
412 static const int INDEX = DPT_11_001;
428 data ( ) : static_part ( 0 ), value ( 0 ) {}
432 typedef uint32_t set_type;
443 static const int INDEX = DPT_12_001;
445 static std::string describe (
const major_type::set_type & data );
459 data ( ) : static_part ( 0 ), value ( 0 ) {}
463 typedef uint32_t set_type;
474 static const int INDEX = DPT_13_001;
476 static std::string describe (
const major_type::set_type & data );
490 data ( ) : static_part ( 0 ), value ( 0 ) {}
494 typedef uint32_t set_type;
505 static const int INDEX = DPT_14_000;
507 static std::string describe (
const major_type::set_type & data );
528 uint8_t d6,d5,d4,d3,d2,d1;
544 static const int INDEX = DPT_15_000;
563 typedef std::string set_type;
574 static const int INDEX = DPT_16_000;
576 static std::string describe (
const major_type::set_type & data );
593 typedef uint8_t set_type;
604 static const int INDEX = DPT_17_001;
606 static std::string describe (
const major_type::set_type & data );
627 uint8_t scene_number;
641 static const int INDEX = DPT_18_001;
664 uint8_t year, month, day_of_month, day_of_week, hour_of_day, minutes, seconds;
665 bool f, wd, nwd, ny, nd, ndow, nt, suti, clq;
679 static const int INDEX = DPT_19_001;
690 typedef uint16_t data_type;
691 typedef uint8_t set_type;
692 static void set ( set_type value, data_type & data );
693 static set_type get (
const data_type & data );
704 GENERAL_DEVICE_FAULT,
710 static const int INDEX = DPT_20_011;
712 static std::string describe (
const major_type::set_type & data );
749 static const int INDEX = DPT_21_001;
772 uint8_t scene_number;
787 static const int INDEX = DPT_26_001;
804 uint8_t alarm_priority;
805 uint8_t application_area;
808 uint8_t alarm_status_attributes;
822 static const int INDEX = DPT_219_001;
854 static const int INDEX = DPT_232_600;
internal class storing a time value
Definition: dpt.hpp:335
time()
creates a current time value
class holding a time value
Definition: dpt.hpp:369
major class for all 10.XXX data point types
Definition: dpt.hpp:331
internal class storing a date value
Definition: dpt.hpp:388
date()
creates a current date value
class holding a date value
Definition: dpt.hpp:410
major class for all 11.XXX data point types
Definition: dpt.hpp:384
class holding a 32 bit unsigned value
Definition: dpt.hpp:441
major class for all 12.XXX data point types
Definition: dpt.hpp:421
class holding a 32 bit signed value
Definition: dpt.hpp:472
major class for all 13.XXX data point types
Definition: dpt.hpp:452
class holding a 32 bit float value
Definition: dpt.hpp:503
major class for all 14.XXX data point types
Definition: dpt.hpp:483
TODO add documentation.
Definition: dpt.hpp:526
class holding a access data type
Definition: dpt.hpp:542
major class for all 15.XXX data point types
Definition: dpt.hpp:514
class holding a fixed length string of up to 14 chars in ASCII
Definition: dpt.hpp:572
major class for all 16.XXX data point types
Definition: dpt.hpp:553
class holding a scene number
Definition: dpt.hpp:602
major class for all 17.XXX data point types
Definition: dpt.hpp:583
bool c
false corresponds to activate and true to learn the scene number
Definition: dpt.hpp:626
class holding a scene control value
Definition: dpt.hpp:639
major class for all 18.XXX data point types
Definition: dpt.hpp:613
TODO.
Definition: dpt.hpp:662
class holding a date time value
Definition: dpt.hpp:677
major class for all 19.XXX data point types
Definition: dpt.hpp:650
data point type 1.001 simple boolean value
Definition: dpt.hpp:68
major class for all 1.XXX data point types
Definition: dpt.hpp:56
class holding a error class system value
Definition: dpt.hpp:700
major class for all 20.XXX data point types
Definition: dpt.hpp:688
class holding a alarm info
Definition: dpt.hpp:820
major class for all 219.XXX data point types
Definition: dpt.hpp:796
class holding a status gen value
Definition: dpt.hpp:747
major class for all 21.XXX data point types
Definition: dpt.hpp:719
class holding rgb color value
Definition: dpt.hpp:852
major class for all 232.XXX data point types
Definition: dpt.hpp:831
class holding a scene info value
Definition: dpt.hpp:785
major class for all 26.XXX data point types
Definition: dpt.hpp:760
data point type 2.001 control value
Definition: dpt.hpp:96
major class for all 2.XXX data point types
Definition: dpt.hpp:84
data point type 3.007 dimming control
Definition: dpt.hpp:122
major class for all 3.XXX data point types
Definition: dpt.hpp:110
data point type 4.001 char ascii
Definition: dpt.hpp:153
major class for all 4.XXX data point types
Definition: dpt.hpp:133
data point type 5.001 unsigned 8 bit
Definition: dpt.hpp:184
major class for all 5.XXX data point types
Definition: dpt.hpp:164
data point type 6.001 percent v8
Definition: dpt.hpp:219
major class for all 6.XXX signed 8 bit value
Definition: dpt.hpp:199
data point type 7.001 unsigned 16bit pulse counter
Definition: dpt.hpp:251
major class for all 7.XXX unsigned signed 16 bit value
Definition: dpt.hpp:231
data point type 8.001 16bit signed pulse counter
Definition: dpt.hpp:283
major class for all 8.XXX signed 16 bit value
Definition: dpt.hpp:263
data point type 9.001 value temp
Definition: dpt.hpp:320
major class for all 9.XXX data point types
Definition: dpt.hpp:295
separated namespace to embed all libknx related classes
Definition: config.hpp:13
dpt_10_001 dpt_timeofday
10.001 is known as time of day value including hours. minutes, seconds and day of the week
Definition: dpt.hpp:378
dpt_5_001 dpt_scaling
5.001 is better known as scaling value
Definition: dpt.hpp:193
dpt_1_001 dpt_switch
data point type 1.001 is better known as switch
Definition: dpt.hpp:78