-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsample.xml
More file actions
191 lines (187 loc) · 6.05 KB
/
sample.xml
File metadata and controls
191 lines (187 loc) · 6.05 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="XSLT/decoder.xsl"?>
<cdi xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://openlcb.org/schema/cdi/1/4/cdi.xsd">
<identification>
<manufacturer>Spacely Sprockets</manufacturer>
<model>Model 123 Uniblab</model>
<hardwareVersion>EC 415</hardwareVersion>
<softwareVersion>1.2.3.4</softwareVersion>
<link ref="http://openlcb.org">Link to OpenLCB.org documentation</link>
<map>
<relation><property>Size</property><value>8 cm by 12 cm</value></relation>
</map>
</identification>
<segment origin="0" space="0">
<link ref="http://openlcb.org">Link to OpenLCB.org documentation</link>
<group replication="2">
<name>Produced Events</name>
<description>The EventIDs for the producers</description>
<link ref="http://openlcb.org">Link to OpenLCB.org documentation</link>
<hints>
<visibility hideable="yes" hidden="yes" />
<readOnly />
</hints>
<eventid/>
<eventid/>
<int size="2"/>
<int size="2">
<min>1</min>
<max>250</max>
<default>12</default>
<hints>
<slider tickSpacing="50" showValue="true"/>
</hints>
</int>
<float size="4"/>
<string size="5">
<name>Status Field</name>
<description>As first string, this content will appear in the tab</description>
</string>
<string size="100"/>
</group>
<group offset="0" replication="2">
<name>Consumed Events</name>
<description>The EventIDs for the consumers</description>
<hints>
<visibility hideable="yes" hidden="yes" />
</hints>
<eventid/>
<eventid/>
<blob size="10" mode="readwrite">
<name>Blob to see if works in group element</name>
</blob>
<float size="8">
<name>Float to see if works in group element</name>
</float>
<int size="4">
<name>Int of size 4 so that each group is 32 long</name>
</int>
<group>
<name>Hideable and Hidden Nested Group</name>
<hints>
<visibility hideable="yes" hidden="true" />
</hints>
<eventid/>
<eventid/>
</group>
<group>
<name>Hideable and Not Hidden Nested Group</name>
<hints>
<visibility hideable="yes" hidden="no" />
</hints>
<eventid/>
<eventid/>
</group>
<group>
<name>Non-hideable Nested Group</name>
<eventid/>
<eventid/>
</group>
</group>
<int size="2">
<name>Sample integer variable</name>
<description>Doesn't do anything</description>
<min>1</min>
<max>999</max>
<default>12</default>
</int>
<float size="2">
<name>Sample float variable</name>
<description>Doesn't do anything</description>
<min>1</min>
<max>999</max>
<default>12</default>
</float>
<float size="2" offset="-2">
<name>Same float variable</name>
<description>Overlaps previous</description>
<min>0</min>
<max>10000</max>
<default>12</default>
</float>
<int size="2">
<name>Sample integer slider</name>
<description>Doesn't do anything either</description>
<min>1</min>
<max>250</max>
<default>12</default>
<hints>
<slider tickSpacing="50"/>
</hints>
</int>
<int size="2">
<name>Immediate-write integer slider</name>
<description>Doesn't do anything either</description>
<min>0</min>
<max>1000</max>
<default>12</default>
<hints>
<slider tickSpacing="200" immediate="yes"/>
</hints>
</int>
<int size="2">
<name>Sample integer slider with view</name>
<description>And another</description>
<min>1</min>
<max>250</max>
<default>12</default>
<hints>
<slider tickSpacing="50" showValue="true"/>
</hints>
</int>
<int size="2">
<name>Immediate-write integer slider with view</name>
<description>You guessed it!</description>
<min>0</min>
<max>1000</max>
<default>12</default>
<hints>
<slider tickSpacing="200" immediate="yes" showValue="1"/>
</hints>
</int>
</segment>
<segment origin="128" space="1">
<int size="1">
<name>Reset via Map</name>
<description>
Controls reloading and clearing node memory.
Board must be restarted for this to take effect.
</description>
<map>
<relation><property>10</property><value>No reset (10)</value></relation>
<relation><property>85</property><value>Reset just EventIDs to defaults (85)</value></relation>
<relation><property>170</property><value>Reset all to defaults (170)</value></relation>
</map>
<hints>
<radiobutton/>
</hints>
</int>
<int size="1" offset="-1">
<name>Reset Directly</name>
<description>
This accesses the same memory location as the
mapped variable just above.
</description>
</int>
<action size="2">
<name>Factory Reset via address 129</name>
<buttonText>Perform Reset</buttonText>
<dialogText>Do a factory reset?</dialogText>
<value>2</value>
</action>
<action size="2" offset="-2">
<name>Reboot via address 129</name>
<buttonText>Perform Reboot</buttonText>
<dialogText></dialogText> <!-- no dialog -->
<value>9</value>
</action>
<blob size="10" mode="readwrite">
<name>Blob defined at address 131</name>
</blob>
<int size="1">
<name>Yet Another Reset</name>
<description>This should be stored at address 141.</description>
</int>
</segment>
</cdi>