Skip to content

Commit 82eb140

Browse files
committed
admt: Include XML IIO Emulator for ADMT4000
Signed-off-by: John Lloyd Juanillo <[email protected]>
1 parent 23fac85 commit 82eb140

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

plugins/admt/xmls/admt4000.xml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE context [
3+
<!ELEMENT context (device | context-attribute)*>
4+
<!ELEMENT context-attribute EMPTY>
5+
<!ELEMENT device (channel | attribute | debug-attribute | buffer-attribute)*>
6+
<!ELEMENT channel (scan-element?, attribute*)>
7+
<!ELEMENT attribute EMPTY>
8+
<!ELEMENT scan-element EMPTY>
9+
<!ELEMENT debug-attribute EMPTY>
10+
<!ELEMENT buffer-attribute EMPTY>
11+
<!ATTLIST context name CDATA #REQUIRED description CDATA #IMPLIED>
12+
<!ATTLIST context-attribute name CDATA #REQUIRED value CDATA #REQUIRED>
13+
<!ATTLIST device id CDATA #REQUIRED name CDATA #IMPLIED>
14+
<!ATTLIST channel id CDATA #REQUIRED type (input|output) #REQUIRED name CDATA #IMPLIED>
15+
<!ATTLIST scan-element index CDATA #REQUIRED format CDATA #REQUIRED scale CDATA #IMPLIED>
16+
<!ATTLIST attribute name CDATA #REQUIRED filename CDATA #IMPLIED value CDATA #IMPLIED>
17+
<!ATTLIST debug-attribute name CDATA #REQUIRED value CDATA #IMPLIED>
18+
<!ATTLIST buffer-attribute name CDATA #REQUIRED value CDATA #IMPLIED>
19+
]>
20+
<context name="serial"
21+
description="no-OS/projects/project feature/restructure_2-9f56ce9">
22+
<context-attribute name="uri"
23+
value="serial:COM4,115200,8n1n"/>
24+
<context-attribute name="serial,port"
25+
value="COM4"/>
26+
<context-attribute name="serial,description"
27+
value="USB Serial Device (COM4)"/>
28+
<device id="iio:device0"
29+
name="admt4000">
30+
<channel id="rot"
31+
type="input">
32+
<scan-element index="0"
33+
format="le:u10/16&gt;&gt;0"/>
34+
<attribute name="scale"
35+
filename="in_rot_scale"
36+
value="0.351562500"/>
37+
<attribute name="offset"
38+
filename="in_rot_offset"
39+
value="0"/>
40+
</channel>
41+
<channel id="angl"
42+
type="input">
43+
<scan-element index="1"
44+
format="le:u12/16&gt;&gt;0"/>
45+
<attribute name="scale"
46+
filename="in_angl_scale"
47+
value="0.087890625"/>
48+
<attribute name="offset"
49+
filename="in_angl_offset"
50+
value="0"/>
51+
</channel>
52+
<channel id="count"
53+
type="input">
54+
<scan-element index="2"
55+
format="le:s6/16&gt;&gt;0"/>
56+
<attribute name="scale"
57+
filename="in_count_scale"
58+
value="1"/>
59+
<attribute name="offset"
60+
filename="in_count_offset"
61+
value="0"/>
62+
</channel>
63+
<channel id="temp"
64+
type="input">
65+
<scan-element index="3"
66+
format="le:u12/16&gt;&gt;0"/>
67+
<attribute name="scale"
68+
filename="in_temp_scale"
69+
value="0.061274509"/>
70+
<attribute name="offset"
71+
filename="in_temp_offset"
72+
value="1150"/>
73+
</channel>
74+
<attribute name="page"
75+
value="0"/>
76+
<attribute name="sequencer_mode"
77+
value="0"/>
78+
<attribute name="angle_filt"
79+
value="1"/>
80+
<attribute name="conversion_mode"
81+
value="0"/>
82+
<attribute name="h8_ctrl"
83+
value="0"/>
84+
<attribute name="sdp_gpio_ctrl"
85+
value="ERROR"/>
86+
<attribute name="sdp_gpio0_busy"
87+
value="622855424"/>
88+
<attribute name="sdp_coil_rs"
89+
value="ERROR"/>
90+
<attribute name="throw_early_samples"
91+
value="1"/>
92+
<attribute name="regmap_dump"
93+
value="ERROR"/>
94+
<debug-attribute name="direct_reg_access"
95+
value="ERROR"/>
96+
</device>
97+
<device id="iio:device1"
98+
name="tmc5240">
99+
<attribute name="amax"
100+
value="0"/>
101+
<attribute name="rotate_vmax"
102+
value="0"/>
103+
<attribute name="dmax"
104+
value="0"/>
105+
<attribute name="disable"
106+
value="ERROR"/>
107+
<attribute name="target_pos"
108+
value="0"/>
109+
<attribute name="current_pos"
110+
value="0"/>
111+
<attribute name="ramp_mode"
112+
value="0"/>
113+
<debug-attribute name="direct_reg_access"
114+
value="2"/>
115+
</device>
116+
</context>

0 commit comments

Comments
 (0)