-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy path_templates.tsp
161 lines (126 loc) · 2.44 KB
/
_templates.tsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import "@ebusd/ebus-typespec";
using Ebus;
using Ebus.Num;
using Ebus.Dtm;
using Ebus.Str;
/** start counter */
scalar cntstarts extends BCD3;
/** operation minutes */
@unit("min")
scalar cntminutes extends BCD;
/** operation hours */
@unit("h")
scalar cnthours extends BCD3;
/** fuel quantity */
scalar cntfuel extends BCD4;
/** unit */
@values(Values_unit)
scalar unit extends UCH;
/** fuel type */
@values(Values_fueltype)
scalar fueltype extends UCH;
/** type of meter */
@values(Values_countertype)
scalar countertype extends UCH;
/** cyclic transmission */
@values(Values_opdatacyclic)
scalar opdatacyclic extends UCH;
/** data transmission */
@values(Values_opdatatransfer)
scalar opdatatransfer extends UCH;
/** heat request */
@values(Values_opdataheat)
scalar opdataheat extends UCH;
@values(Values_opdataaction)
scalar opdataaction extends UCH;
/** desired temperature */
@unit("°C")
scalar desiredtemp extends UCH;
/** outside temperature */
@unit("°C")
scalar outsidetemp extends SCH;
@unit("%")
scalar percent extends D2C;
@unit("%")
scalar percent0 extends UCH;
@unit("%")
scalar percent1 extends D1C;
@unit("%")
scalar percent2 extends D2B;
@unit("%")
scalar percents extends SCH;
/** temperature */
@unit("°C")
scalar temp extends D2C;
/** temperature */
@unit("°C")
scalar temp0 extends UCH;
/** temperature */
@unit("°C")
scalar temp1 extends D1C;
/** temperature */
@unit("°C")
scalar temp2 extends D2B;
/** pressure */
@unit("bar")
scalar press extends D2B;
/** time */
scalar btime extends BTI;
/** date */
scalar bdate extends BDA;
/** weekday */
scalar bday extends BDY;
// id,STR:5,device ID
/** version */
scalar version extends PIN;
@maxLength(1)
scalar skip extends IGN;
enum Values_unit {
all: 0,
l: 1,
m3: 2,
}
enum Values_fueltype {
any: 0,
oil: 1,
gas: 2,
}
enum Values_countertype {
starts: 0,
hours1: 1,
hours2: 2,
hours3: 3,
hours4: 4,
modulating: 5,
fuelquantity: 16,
}
enum Values_opdatacyclic {
stop: 0x55,
start: 0xaa,
}
enum Values_opdatatransfer {
stop: 0,
cyclic: 1,
event: 2,
single: 3,
cyclicandevent: 3,
}
enum Values_opdataheat {
off: 0x00,
none: 0x01,
hotwater: 0x55,
heating: 0xaa,
emissioncheck: 0xcc,
qualitycontrol: 0xdd,
controlstop: 0xee,
hotwaterincontrolstop: 0x66,
hotwaterinheating: 0xbb,
controlstopinstage: 0x44,
}
enum Values_opdataaction {
none: 0x00,
stoppump: 0x01,
startpump: 0x02,
stopconsumer: 0x03,
startconsumer: 0x04,
}