Diff of /branches/IoDrvMEGAIOv2/IoDrvMEGAIOv3.devdesc.xml [000000] .. [r40]  Maximize  Restore

Switch to unified view

a b/branches/IoDrvMEGAIOv2/IoDrvMEGAIOv3.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
<!--    
156
    <Component identifier="relayState" type="local:Channel8BOOL">
157
        <Default />
158
        <VisibleName name="local:relayState">relayState</VisibleName>
159
      </Component>
160
    <Component identifier="openDrainState" type="local:Ch3BOOL">
161
        <Default />
162
        <VisibleName name="openDrain State">openDrain State</VisibleName>
163
      </Component>
164
    <Component identifier="gpioOut" type="local:Ch5BOOL">
165
        <Default />
166
        <VisibleName name="gpioOut">gpioOut</VisibleName>
167
      </Component>
168
    <Component identifier="gpioDir" type="local:Ch5BOOL">
169
        <Default />
170
        <VisibleName name="gpioDir">gpioDir</VisibleName>
171
      </Component>
172
-->
173
    </StructType>
174
    <StructType name="IoDrvOutput">
175
    <Component identifier="adcVoltages" type="local:Ch8REAL">
176
        <Default />
177
        <VisibleName name="adcVoltages">adcVoltages</VisibleName>
178
      </Component>
179
<!--
180
    <Component identifier="adcRaw" type="local:Ch8UINT">
181
        <Default />
182
        <VisibleName name="adcRaw">adcRaw</VisibleName>
183
      </Component>
184
    <Component identifier="optoIn" type="local:Channel8BOOL">
185
        <Default />
186
        <VisibleName name="local:optoIn">optoIn</VisibleName>
187
      </Component>
188
    <Component identifier="gpioIn" type="local:Channel8BOOL">
189
        <Default />
190
        <VisibleName name="local:gpioIn">gpioIn</VisibleName>
191
      </Component>
192
-->
193
    </StructType>
194
  <StructType name="IoDrvConfig">
195
      <Component identifier="I2cAdress" type="std:USINT">
196
        <Default>16#31</Default>
197
        <VisibleName name="local:I2cAdress">I²C address</VisibleName>
198
      <Description name="local:I2cAdress.Desc">Address of the device</Description>
199
      </Component>
200
    <!--
201
      <Component identifier="StackLevel" type="std:USINT">
202
        <Default>16#1</Default>
203
      <VisibleName name="local:StackLevel">StackLevel</VisibleName>
204
        <Description name="local:StackLevel.Desc">Stack level of MegaIO boards (NOT a hat)</Description>
205
      </Component>
206
    -->
207
    </StructType>
208
  </Types>
209
  <Strings namespace="local">
210
    <Language lang="en">
211
    </Language>
212
  </Strings>
213
  <Files namespace="local">
214
    <Language lang="en">
215
    <File fileref="local" identifier="ImageFile">
216
        <LocalFile>device.png</LocalFile>
217
      </File>
218
      <File fileref="local" identifier="Icon">
219
        <LocalFile>device.ico</LocalFile>
220
      </File>
221
    </Language>
222
  </Files>
223
  <Device hideInCatalogue="false">
224
    <DeviceIdentification>
225
      <Type>500</Type>
226
      <Id>0000 0006</Id>
227
      <Version>3.0.0.0</Version>
228
    </DeviceIdentification>
229
    <DeviceInfo>
230
      <Name name="local:ModelName">Raspberry I2C IoDrvMEGAIOv3</Name>
231
      <Description name="local:DeviceDescription">An I/O driver for MEGAIO</Description>
232
      <Vendor name="local:VendorName">Open Source</Vendor>
233
      <OrderNumber>-</OrderNumber>
234
    <Image name="local:ImageFile">device.png</Image>
235
    <Icon name="local:Icon">device.ico</Icon>
236
    </DeviceInfo>
237
    <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1">
238
      <InterfaceName name="local:PCI">I²C-Bus</InterfaceName>
239
      <Slot count="1" allowEmpty="false">
240
      </Slot>
241
      <DriverInfo needsBusCycle="true">
242
        <RequiredLib libname="Raspberry I2C IoDrvMEGAIOv3" vendor="Open Source" version="3.0.0.0" identifier="IoDrvMEGAIOv3">
243
          <FBInstance basename="$(DeviceName)" fbname="IoDrvMEGAIOv3">
244
            <Initialize methodname="Initialize" />
245
        </FBInstance>
246
        </RequiredLib>
247
      </DriverInfo>
248
      <HostParameterSet>
249
        <Parameter ParameterId="1000" type="local:IoDrvInput">
250
            <Attributes channel="input" />
251
            <Name name="local:Input">Input</Name>
252
        </Parameter>
253
        <Parameter ParameterId="2000" type="local:IoDrvOutput">
254
            <Attributes channel="Output" />
255
            <Name name="local:Output">Output</Name>
256
        </Parameter>
257
      <Parameter ParameterId="3000" type="local:IoDrvConfig">
258
            <Attributes channel="none" />
259
            <Name name="local:Config">Config</Name>
260
        </Parameter>
261
        </HostParameterSet>
262
    </Connector>
263
  </Device>
264
</DeviceDescription>