a | b/branches/IoDrvMEGAIOv2/IoDrvMEGAIOv2.devdesc.xml | ||
---|---|---|---|
1 | <?xml version="1.0" encoding="utf-8"?> |
||
2 | <DeviceDescription xmlns="http://www.3s-software.com/schemas/DeviceDescription-1.0.xsd" xmlns:ts="http://www.3s-software.com/schemas/TargetSettings-0.1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||
3 | <Types namespace="local"> |
||
4 | <StructType name="Channel8BOOL"> |
||
5 | <Component identifier="BOOL0" type="std:BOOL"> |
||
6 | <Default /> |
||
7 | <VisibleName name="Local:Bool0">Bit0</VisibleName> |
||
8 | </Component> |
||
9 | <Component identifier="Bool1" type="std:BOOL"> |
||
10 | <Default /> |
||
11 | <VisibleName name="Local:Bool1">Bit1</VisibleName> |
||
12 | </Component> |
||
13 | <Component identifier="BOOL2" type="std:BOOL"> |
||
14 | <Default /> |
||
15 | <VisibleName name="Local:Bool2">Bit2</VisibleName> |
||
16 | </Component> |
||
17 | <Component identifier="BOOL3" type="std:BOOL"> |
||
18 | <Default /> |
||
19 | <VisibleName name="Local:Bool3">Bit3</VisibleName> |
||
20 | </Component> |
||
21 | <Component identifier="BOOL4" type="std:BOOL"> |
||
22 | <Default /> |
||
23 | <VisibleName name="Local:Bool4">Bit4</VisibleName> |
||
24 | </Component> |
||
25 | <Component identifier="BOOL5" type="std:BOOL"> |
||
26 | <Default /> |
||
27 | <VisibleName name="Local:Bool5">Bit5</VisibleName> |
||
28 | </Component> |
||
29 | <Component identifier="BOOL6" type="std:BOOL"> |
||
30 | <Default /> |
||
31 | <VisibleName name="Local:Bool6">Bit6</VisibleName> |
||
32 | </Component> |
||
33 | <Component identifier="BOOL7" type="std:BOOL"> |
||
34 | <Default /> |
||
35 | <VisibleName name="Local:Bool7">Bit7</VisibleName> |
||
36 | </Component> |
||
37 | </StructType> |
||
38 | <StructType name="Ch5BOOL"> |
||
39 | <Component identifier="Bit0" type="std:BOOL"> |
||
40 | <Default /> |
||
41 | <VisibleName name="Bit0">Bit0</VisibleName> |
||
42 | </Component> |
||
43 | <Component identifier="Bit1" type="std:BOOL"> |
||
44 | <Default /> |
||
45 | <VisibleName name="Bit1">Bit1</VisibleName> |
||
46 | </Component> |
||
47 | <Component identifier="Bit2" type="std:BOOL"> |
||
48 | <Default /> |
||
49 | <VisibleName name="Bit2">Bit2</VisibleName> |
||
50 | </Component> |
||
51 | <Component identifier="Bit3" type="std:BOOL"> |
||
52 | <Default /> |
||
53 | <VisibleName name="Bit3">Bit3</VisibleName> |
||
54 | </Component> |
||
55 | <Component identifier="Bit4" type="std:BOOL"> |
||
56 | <Default /> |
||
57 | <VisibleName name="Bit4">Bit4</VisibleName> |
||
58 | </Component> |
||
59 | <Component identifier="Bit5" type="std:BOOL"> |
||
60 | <Default /> |
||
61 | <VisibleName name="Bit5">Bit5</VisibleName> |
||
62 | </Component> |
||
63 | </StructType> |
||
64 | <StructType name="Ch3BOOL"> |
||
65 | <Component identifier="Bit0" type="std:BOOL"> |
||
66 | <Default /> |
||
67 | <VisibleName name="Bit0">Bit0</VisibleName> |
||
68 | </Component> |
||
69 | <Component identifier="Bit1" type="std:BOOL"> |
||
70 | <Default /> |
||
71 | <VisibleName name="Bit1">Bit1</VisibleName> |
||
72 | </Component> |
||
73 | <Component identifier="Bit2" type="std:BOOL"> |
||
74 | <Default /> |
||
75 | <VisibleName name="Bit2">Bit2</VisibleName> |
||
76 | </Component> |
||
77 | <Component identifier="Bit3" type="std:BOOL"> |
||
78 | <Default /> |
||
79 | <VisibleName name="Bit3">Bit3</VisibleName> |
||
80 | </Component> |
||
81 | </StructType> |
||
82 | <StructType name="Ch8REAL"> |
||
83 | <Component identifier="REAL0" type="std:REAL"> |
||
84 | <Default /> |
||
85 | <VisibleName name="REAL0">REAL0</VisibleName> |
||
86 | </Component> |
||
87 | <Component identifier="REAL1" type="std:REAL"> |
||
88 | <Default /> |
||
89 | <VisibleName name="REAL1">REAL1</VisibleName> |
||
90 | </Component> |
||
91 | <Component identifier="REAL2" type="std:REAL"> |
||
92 | <Default /> |
||
93 | <VisibleName name="REAL2">REAL2</VisibleName> |
||
94 | </Component> |
||
95 | <Component identifier="REAL3" type="std:REAL"> |
||
96 | <Default /> |
||
97 | <VisibleName name="REAL3">REAL3</VisibleName> |
||
98 | </Component> |
||
99 | <Component identifier="REAL4" type="std:REAL"> |
||
100 | <Default /> |
||
101 | <VisibleName name="REAL4">REAL4</VisibleName> |
||
102 | </Component> |
||
103 | <Component identifier="REAL5" type="std:REAL"> |
||
104 | <Default /> |
||
105 | <VisibleName name="REAL5">REAL5</VisibleName> |
||
106 | </Component> |
||
107 | <Component identifier="REAL6" type="std:REAL"> |
||
108 | <Default /> |
||
109 | <VisibleName name="REAL6">REAL6</VisibleName> |
||
110 | </Component> |
||
111 | <Component identifier="REAL7" type="std:REAL"> |
||
112 | <Default /> |
||
113 | <VisibleName name="REAL7">REAL7</VisibleName> |
||
114 | </Component> |
||
115 | </StructType> |
||
116 | <StructType name="Ch8UINT"> |
||
117 | <Component identifier="UINT0" type="std:UINT"> |
||
118 | <Default /> |
||
119 | <VisibleName name="UINT0">UINT0</VisibleName> |
||
120 | </Component> |
||
121 | <Component identifier="UINT1" type="std:UINT"> |
||
122 | <Default /> |
||
123 | <VisibleName name="UINT1">UINT1</VisibleName> |
||
124 | </Component> |
||
125 | <Component identifier="UINT2" type="std:UINT"> |
||
126 | <Default /> |
||
127 | <VisibleName name="UINT2">UINT2</VisibleName> |
||
128 | </Component> |
||
129 | <Component identifier="UINT3" type="std:UINT"> |
||
130 | <Default /> |
||
131 | <VisibleName name="UINT3">UINT3</VisibleName> |
||
132 | </Component> |
||
133 | <Component identifier="UINT4" type="std:UINT"> |
||
134 | <Default /> |
||
135 | <VisibleName name="UINT4">UINT4</VisibleName> |
||
136 | </Component> |
||
137 | <Component identifier="UINT5" type="std:UINT"> |
||
138 | <Default /> |
||
139 | <VisibleName name="UINT5">UINT5</VisibleName> |
||
140 | </Component> |
||
141 | <Component identifier="UINT6" type="std:UINT"> |
||
142 | <Default /> |
||
143 | <VisibleName name="UINT6">UINT6</VisibleName> |
||
144 | </Component> |
||
145 | <Component identifier="UINT7" type="std:UINT"> |
||
146 | <Default /> |
||
147 | <VisibleName name="UINT7">UINT7</VisibleName> |
||
148 | </Component> |
||
149 | </StructType> |
||
150 | <StructType name="IoDrvInput"> |
||
151 | <Component identifier="dacVoltage" type="std:REAL"> |
||
152 | <Default /> |
||
153 | <VisibleName name="local:dacVoltageInput">dacVoltage Input</VisibleName> |
||
154 | </Component> |
||
155 | <Component identifier="relayState" type="local:Channel8BOOL"> |
||
156 | <Default /> |
||
157 | <VisibleName name="local:relayState">relayState</VisibleName> |
||
158 | </Component> |
||
159 | <Component identifier="openDrainState" type="local:Ch3BOOL"> |
||
160 | <Default /> |
||
161 | <VisibleName name="openDrain State">openDrain State</VisibleName> |
||
162 | </Component> |
||
163 | <Component identifier="gpioOut" type="local:Ch5BOOL"> |
||
164 | <Default /> |
||
165 | <VisibleName name="gpioOut">gpioOut</VisibleName> |
||
166 | </Component> |
||
167 | <Component identifier="gpioDir" type="local:Ch5BOOL"> |
||
168 | <Default /> |
||
169 | <VisibleName name="gpioDir">gpioDir</VisibleName> |
||
170 | </Component> |
||
171 | </StructType> |
||
172 | <StructType name="IoDrvOutput"> |
||
173 | <Component identifier="adcVoltages" type="local:Ch8REAL"> |
||
174 | <Default /> |
||
175 | <VisibleName name="adcVoltages">adcVoltages</VisibleName> |
||
176 | </Component> |
||
177 | <Component identifier="adcRaw" type="local:Ch8UINT"> |
||
178 | <Default /> |
||
179 | <VisibleName name="adcRaw">adcRaw</VisibleName> |
||
180 | </Component> |
||
181 | <Component identifier="optoIn" type="local:Channel8BOOL"> |
||
182 | <Default /> |
||
183 | <VisibleName name="local:optoIn">optoIn</VisibleName> |
||
184 | </Component> |
||
185 | <Component identifier="gpioIn" type="local:Channel8BOOL"> |
||
186 | <Default /> |
||
187 | <VisibleName name="local:gpioIn">gpioIn</VisibleName> |
||
188 | </Component> |
||
189 | </StructType> |
||
190 | <StructType name="IoDrvConfig"> |
||
191 | <Component identifier="I2cAdress" type="std:USINT"> |
||
192 | <Default>16#31</Default> |
||
193 | <VisibleName name="local:I2cAdress">I²C address</VisibleName> |
||
194 | <Description name="local:I2cAdress.Desc">Address of the device</Description> |
||
195 | </Component> |
||
196 | <!-- |
||
197 | <Component identifier="StackLevel" type="std:USINT"> |
||
198 | <Default>16#1</Default> |
||
199 | <VisibleName name="local:StackLevel">StackLevel</VisibleName> |
||
200 | <Description name="local:StackLevel.Desc">Stack level of MegaIO boards (NOT a hat)</Description> |
||
201 | </Component> |
||
202 | --> |
||
203 | </StructType> |
||
204 | </Types> |
||
205 | <Strings namespace="local"> |
||
206 | <Language lang="en"> |
||
207 | </Language> |
||
208 | </Strings> |
||
209 | <Files namespace="local"> |
||
210 | <Language lang="en"> |
||
211 | <File fileref="local" identifier="ImageFile"> |
||
212 | <LocalFile>device.png</LocalFile> |
||
213 | </File> |
||
214 | <File fileref="local" identifier="Icon"> |
||
215 | <LocalFile>device.ico</LocalFile> |
||
216 | </File> |
||
217 | </Language> |
||
218 | </Files> |
||
219 | <Device hideInCatalogue="false"> |
||
220 | <DeviceIdentification> |
||
221 | <Type>500</Type> |
||
222 | <Id>0000 0006</Id> |
||
223 | <Version>2.0.0.0</Version> |
||
224 | </DeviceIdentification> |
||
225 | <DeviceInfo> |
||
226 | <Name name="local:ModelName">IoDrvMEGAIOv2</Name> |
||
227 | <Description name="local:DeviceDescription">An I/O driver for MEGAIO</Description> |
||
228 | <Vendor name="local:VendorName">Open Source</Vendor> |
||
229 | <OrderNumber>-</OrderNumber> |
||
230 | <Image name="local:ImageFile">device.png</Image> |
||
231 | <Icon name="local:Icon">device.ico</Icon> |
||
232 | </DeviceInfo> |
||
233 | <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1"> |
||
234 | <InterfaceName name="local:PCI">I²C-Bus</InterfaceName> |
||
235 | <Slot count="1" allowEmpty="false"> |
||
236 | </Slot> |
||
237 | <DriverInfo needsBusCycle="true"> |
||
238 | <RequiredLib libname="IoDrvMEGAIOv2" vendor="Open Source" version="2.0.0.0" identifier="IoDrvMEGAIOv2"> |
||
239 | <FBInstance basename="$(DeviceName)" fbname="IoDrvMEGAIOv2"> |
||
240 | <Initialize methodname="Initialize" /> |
||
241 | </FBInstance> |
||
242 | </RequiredLib> |
||
243 | </DriverInfo> |
||
244 | <HostParameterSet> |
||
245 | <Parameter ParameterId="1000" type="local:IoDrvInput"> |
||
246 | <Attributes channel="input" /> |
||
247 | <Name name="local:Input">Input</Name> |
||
248 | </Parameter> |
||
249 | <Parameter ParameterId="2000" type="local:IoDrvOutput"> |
||
250 | <Attributes channel="Output" /> |
||
251 | <Name name="local:Output">Output</Name> |
||
252 | </Parameter> |
||
253 | <Parameter ParameterId="3000" type="local:IoDrvConfig"> |
||
254 | <Attributes channel="none" /> |
||
255 | <Name name="local:Config">Config</Name> |
||
256 | </Parameter> |
||
257 | </HostParameterSet> |
||
258 | </Connector> |
||
259 | </Device> |
||
260 | </DeviceDescription> |