Diff of /tags/v2.0.0.0/IoDrvMEGAIO.devdesc.xml [000000] .. [r70]  Maximize  Restore

Switch to unified view

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