Diff of /trunk/2.0.0.2/devdescr/MonarcoHAT2.0.0.2.devdesc.xml [000000] .. [r5]  Maximize  Restore

Switch to unified view

a b/trunk/2.0.0.2/devdescr/MonarcoHAT2.0.0.2.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
    <BitfieldType basetype="std:BYTE" name="TBitStringByte">
5
      <Component identifier="Bit0" type="std:BOOL">
6
        <Default />
7
        <VisibleName name="local:TBitStringByte.Bit0">Bit0</VisibleName>
8
      </Component>
9
      <Component identifier="Bit1" type="std:BOOL">
10
        <Default />
11
        <VisibleName name="local:TBitStringByte.Bit1">Bit1</VisibleName>
12
      </Component>
13
      <Component identifier="Bit2" type="std:BOOL">
14
        <Default />
15
        <VisibleName name="local:TBitStringByte.Bit2">Bit2</VisibleName>
16
      </Component>
17
      <Component identifier="Bit3" type="std:BOOL">
18
        <Default />
19
        <VisibleName name="local:TBitStringByte.Bit3">Bit3</VisibleName>
20
      </Component>
21
    </BitfieldType>
22
    <BitfieldType name="ControlByteSettings" basetype="std:BYTE">
23
      <Component identifier="Status LED CTRL" type="std:BOOL">
24
        <Default>FALSE</Default>
25
        <VisibleName>Status LED CTRL</VisibleName>
26
        <Description>System status indication - TRUE: control LED0 by Control Byte; FALSE: Default LED0 function</Description>
27
      </Component>
28
      <Component identifier="StatusLEDValue" type="std:BOOL">
29
        <Default>FALSE</Default>
30
        <VisibleName>Status LED Value</VisibleName>
31
        <Description>Only applicable if Control Byte LED CTRL set TRUE - TRUE: LED0 on; FALSE: LED0 off</Description>
32
      </Component>
33
      <Component identifier="OneWireShutdown" type="std:BOOL">
34
        <Default>FALSE</Default>
35
        <VisibleName>1-Wire power shutdown</VisibleName>
36
        <Description>Useful for bus reset in case of freeze - TRUE: for 1-Wire bus power down; FALSE: normal operation</Description>
37
      </Component>
38
      <Component identifier="RESERVED" type="std:BOOL">
39
        <Default>FALSE</Default>
40
        <VisibleName>[RESERVED]</VisibleName>
41
        <Description>RESERVED: Always FALSE</Description>
42
      </Component>
43
      <Component identifier="Counter1Reset" type="std:BOOL">
44
        <Default>FALSE</Default>
45
        <VisibleName>Counter 1 Reset</VisibleName>
46
        <Description>TRUE: COUNTER1 Value reset request; FALSE: normal operation</Description>
47
      </Component>
48
      <Component identifier="Counter2Reset" type="std:BOOL">
49
        <Default>FALSE</Default>
50
        <VisibleName>Counter 2 Reset</VisibleName>
51
        <Description>TRUE: COUNTER2 Value reset request; FALSE: normal operation</Description>
52
      </Component>
53
      <Component identifier="SignOfLife0" type="std:BOOL">
54
        <Default>FALSE</Default>
55
        <VisibleName>[FUTURE]</VisibleName>
56
        <Description>FUTURE: Sign of Life 0/1 - should be incremented with each data transfer as 2bit number low/high bit, used by firmware as health check of SPI Master</Description>
57
      </Component>
58
      <Component identifier="SignOfLife1" type="std:BOOL">
59
        <Default>FALSE</Default>
60
        <VisibleName>[FUTURE]</VisibleName>
61
        <Description>FUTURE: Sign of Life 0/1 - should be incremented with each data transfer as 2bit number low/high bit, used by firmware as health check of SPI Master</Description>
62
      </Component>
63
    </BitfieldType>
64
  </Types>
65
  <Strings namespace="local">
66
    <Language lang="en">
67
    </Language>
68
  </Strings>
69
  <Files namespace="local">
70
    <Language lang="en">
71
      <File fileref="local" identifier="ImageFile">
72
        <LocalFile>Monarco.png</LocalFile>
73
      </File>
74
      <File fileref="local" identifier="Icon">
75
        <LocalFile>Monarco.ico</LocalFile>
76
      </File>
77
    </Language>
78
  </Files>
79
  <Device hideInCatalogue="false" showParamsInDevDescOrder="true">>
80
    <DeviceIdentification>
81
      <Type>501</Type>
82
      <Id>0004 0005</Id>
83
      <Version>2.0.0.2</Version>
84
    </DeviceIdentification>
85
    <DeviceInfo>
86
      <Name name="local:ModelName">Monarco HAT</Name>
87
      <Description name="local:DeviceDescription">Monarco HAT SPI device library for Codesys</Description>
88
      <Vendor name="local:VendorName">Monarco.io</Vendor>
89
      <OrderNumber>-</OrderNumber>
90
    <Image name="local:ImageFile">Monarco.png</Image>
91
    <Icon name="local:Icon">Monarco.ico</Icon>
92
    </DeviceInfo>
93
    <Connector moduleType="500" interface="Raspberry.SPI" role="child" explicit="false" connectorId="1" hostpath="-1" alwaysmapping="true">
94
      <InterfaceName name="local:PCI">SPI devices</InterfaceName>
95
      <Slot count="1" allowEmpty="false">
96
      </Slot> 
97
      <DriverInfo needsBusCycle="true">   
98
        <RequiredLib libname="Monarco HAT library for Codesys" vendor="Monarco.io" version="2.0.0.1" identifier="MonarcoLib">
99
          <FBInstance basename="$(DeviceName)_Instance" fbname="IoDrvMonarco">
100
            <Initialize methodName="Initialize" />
101
          </FBInstance>
102
        </RequiredLib>
103
      </DriverInfo>
104
     <HostParameterSet>
105
     
106
        <ParameterSection><!-- Mapje -->
107
          <Name name="local:GeneralParameters">General Parameters</Name>
108
            <Parameter ParameterId="100" type="std:USINT">
109
              <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
110
              <Default>0</Default>
111
              <Name name="local:SPI_channel">SPI master number</Name>
112
              <Description name="local:Id393218.Desc">SPI controlling device name /dev/spidev0.X</Description>
113
            </Parameter>
114
        </ParameterSection>
115
        
116
        <ParameterSection>
117
          <Name name="local:GeneralParameters">Monarco Parameters</Name>
118
            <Parameter ParameterId="1" type="std:UINT">
119
              <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
120
              <Default>100</Default>
121
              <Unit>msec</Unit>
122
              <Name name="local:wd">Watchdog Time</Name>
123
              <Description>Watchdog time setting (Maximum time between two IO cycles)</Description>
124
            </Parameter>
125
            <Parameter ParameterId="10" type="local:ControlByteSettings">
126
              <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
127
              <Default>0</Default>
128
              <Name name="local:ControlByteSettings">Control Byte</Name>
129
              <Description>Settings</Description>
130
            </Parameter>
131
        </ParameterSection>
132
          
133
        <ParameterSection>
134
            <Name name="local:GeneralParameters">Digital In</Name>
135
            <Parameter ParameterId="1000" type="local:TBitStringByte">
136
              <Attributes channel="input"/>
137
              <Default>0</Default>
138
              <Name name="local:digin">DigIn</Name>
139
            </Parameter>
140
        </ParameterSection>
141
        <ParameterSection>
142
            <Name name="local:GeneralParameters">Analog In</Name>
143
            <Parameter ParameterId="1110" type="std:WORD">
144
              <Attributes channel="input"/>
145
              <Default>0</Default>
146
              <Name name="local:ai0-raw">AI0</Name>
147
              </Parameter>
148
            <Parameter ParameterId="1111" type="std:WORD">
149
              <Attributes channel="input"/>
150
              <Default>0</Default>
151
              <Name name="local:ai1-raw">AI1</Name>
152
            </Parameter>
153
        </ParameterSection>
154
        <ParameterSection>
155
            <Name name="local:GeneralParameters">Digital Out</Name>
156
            <Parameter ParameterId="2000" type="local:TBitStringByte">
157
              <Attributes channel="output"/>
158
              <Default>0</Default>
159
              <Name name="local:digout">DigOut</Name>
160
            </Parameter>
161
        </ParameterSection>
162
        <ParameterSection>
163
            <Name name="local:GeneralParameters">Analog Out</Name>
164
            <Parameter ParameterId="2100" type="std:WORD">
165
              <Attributes channel="output"/>
166
              <Default>0</Default>
167
              <Name name="local:ao0-raw">AO0</Name>
168
          </Parameter>
169
          <Parameter ParameterId="2101" type="std:WORD">
170
              <Attributes channel="output"/>
171
              <Default>0</Default>
172
              <Name name="local:ao1-raw">AO1</Name>
173
            </Parameter>
174
        </ParameterSection>
175
      </HostParameterSet> 
176
    </Connector>
177
  </Device>
178
</DeviceDescription>