Diff of /pi-plate.devdesc.xml [r3] .. [r4]  Maximize  Restore

Switch to side-by-side view

--- a/pi-plate.devdesc.xml
+++ b/pi-plate.devdesc.xml
@@ -1,6 +1,37 @@
 <?xml version="1.0" encoding="utf-8"?>
 <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">
-  <Types namespace="local"></Types>
+  <Types namespace="local">
+   <BitField  name="RelaysStructure" basetype="std:BYTE">
+	  <Component identifier="Bit0" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit0">Relay 1</VisibleName>
+      </Component>
+	  <Component identifier="Bit1" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit1">Relay 2</VisibleName>
+      </Component>
+	  <Component identifier="Bit2" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit2">Relay 3</VisibleName>
+      </Component>
+	  <Component identifier="Bit3" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit3">Relay 4</VisibleName>
+      </Component>
+	  <Component identifier="Bit4" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit4">Relay 5</VisibleName>
+      </Component>
+	  <Component identifier="Bit5" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit5">Relay 6</VisibleName>
+      </Component>
+	  <Component identifier="Bit6" type="std:BOOL" offlineaccess="none" onlineaccess="none">
+        <Default />
+        <VisibleName name="local:RelaysStructure.Bit6">Relay 7</VisibleName>
+      </Component>
+	</BitField >
+  </Types>
   <Strings namespace="local">
     <Language lang="en"></Language>
   </Strings>
@@ -27,87 +58,63 @@
     <Connector moduleType="501" interface="Raspberry.SPI" role="child" explicit="false" connectorId="1" hostpath="-1">
       <InterfaceName name="local:SPI">SPI devices</InterfaceName>
       <Slot count="1" allowEmpty="false"></Slot>
-      <DriverInfo needsBusCycle="false">
-        <RequiredLib libname="Relay Plate" vendor="Open Source" version="1.0.0.0" identifier="Relay Plate">
-          <FBInstance basename="$(DeviceName)" fbname="RelayPlate">
+      <DriverInfo needsBusCycle="true">
+        <RequiredLib libname="Relay Plate" vendor="Open Source" version="1.0.0.0" identifier="deviceLib">
+          <FBInstance basename="$(DeviceName)" fbname="IoDrvRelayPlate">
             <Initialize methodName="Initialize" />
-            <CyclicCall methodname="AfterReadInputs" task="#buscycletask" whentocall="afterReadInputs" />
-            <CyclicCall methodname="BeforeWriteOutputs" task="#buscycletask" whentocall="beforeWriteOutputs" />
           </FBInstance>
         </RequiredLib>
       </DriverInfo>
-      <HostParameterSet>
-        <Parameter ParameterId="1000" type="std:BYTE">
-          <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
+	  <HostParameterSet>
+		<Parameter ParameterId="1000" type="std:BYTE">
+          <Attributes channel="output"/>
+          <Name name="Relays">Relays</Name>
+          <Description name="Relays_Desc">Relays on Relay Plate</Description>
+        </Parameter>
+		<Parameter ParameterId="1001" type="std:BOOL">
+          <Attributes channel="output"/>
+          <Name name="LED">Led</Name>
+          <Description name="LED_Desc-">LED CONTROL</Description>
+        </Parameter>
+		<Parameter ParameterId="1002" type="std:BIT">
+          <Attributes channel="input"/>
+          <Name name="Control_IO">Control IO Port</Name>
+          <Description name="Control_IO_Desc-">Control IO Port</Description>
+        </Parameter>
+        <Parameter ParameterId="1003" type="std:BYTE">
+          <Attributes channel="input"/>
+          <Name name="FW_Version">Firmware Version</Name>
+          <Description name="FW_VersionDesc-">Firmware Version of Relay Plate</Description>
+        </Parameter>
+        <Parameter ParameterId="1004" type="std:BYTE">
+          <Attributes channel="input" download="true" functional="false" onlineaccess="readwrite" />
           <Default>0</Default>
-          <Name name="local:BitWidth">Address</Name>
-          <Description name="local:BitWidthDesc">Address of Relay Plate</Description>
+          <Name name="HW_Version">Hardware Version</Name>
+          <Description name="HW_VersionDesc-">Hardware Version of Relay Plate</Description>
         </Parameter>
-        <Parameter ParameterId="1001" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
+        <Parameter ParameterId="1005" type="std:BYTE">
+          <Attributes channel="none" download="true" functional="false" onlineaccess="readwrite" />
           <Default>0</Default>
-          <Name name="local:Relay1">Relay 1</Name>
-          <Description name="local:RelayDescription">Relay 1</Description>
+          <Name name="Address">Address</Name>
+          <Description name="AddressDesc">Address of Relay Plate</Description>
         </Parameter>
-        <Parameter ParameterId="1002" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
+		<Parameter ParameterId="1006" type="std:BYTE">
+          <Attributes channel="none" download="true" functional="false" onlineaccess="readwrite" />
           <Default>0</Default>
-          <Name name="local:Relay2">Relay 2</Name>
-          <Description name="local:RelayDescription">Relay 2</Description>
+          <Name name="PLATE_TYPE">Plate Type</Name>
+          <Description name="PLATE_TYPE_DESC-">Plate Type</Description>
         </Parameter>
-        <Parameter ParameterId="1003" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
+		<Parameter ParameterId="1007" type="std:BOOL">
+          <Attributes channel="Output" download="true" functional="false" onlineaccess="readwrite" />
           <Default>0</Default>
-          <Name name="local:Relay3">Relay 3</Name>
-          <Description name="local:RelayDescription">Relay 3</Description>
+          <Name name="Reset">Reset</Name>
+          <Description name="Reset_DESC-">Reset the Relay Plate</Description>
         </Parameter>
-        <Parameter ParameterId="1004" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
+		<Parameter ParameterId="1008" type="std:BOOL">
+          <Attributes channel="Input" download="true" functional="false" onlineaccess="readwrite" />
           <Default>0</Default>
-          <Name name="local:Relay4">Relay 4</Name>
-          <Description name="local:RelayDescription">Relay 4</Description>
-        </Parameter>
-		<Parameter ParameterId="1005" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:Relay5">Relay 5</Name>
-          <Description name="local:RelayDescription">Relay 5</Description>
-        </Parameter>
-        <Parameter ParameterId="1006" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:Relay6">Relay 6</Name>
-          <Description name="local:RelayDescription">Relay 6</Description>
-        </Parameter>
-        <Parameter ParameterId="1007" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:Relay7">Relay 7</Name>
-          <Description name="local:RelayDescription">Relay 7</Description>
-        </Parameter>
-        <Parameter ParameterId="1008" type="std:BYTE">
-          <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:FW_Version">Firmware Version</Name>
-          <Description name="local:FW_VersionDesc-">Firmware Version of Relay Plate</Description>
-        </Parameter>
-        <Parameter ParameterId="1009" type="std:BYTE">
-          <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:HW_Version">Hardware Version</Name>
-          <Description name="local:HW_VersionDesc-">Hardware Version of Relay Plate</Description>
-        </Parameter>
-		<Parameter ParameterId="1010" type="std:DWORD">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:Control_IO">Control IO Port</Name>
-          <Description name="local:Control_IO_Desc-">Control IO Port</Description>
-        </Parameter>
-		<Parameter ParameterId="1011" type="std:BIT">
-          <Attributes channel="output" download="true" functional="false" onlineaccess="read" />
-          <Default>0</Default>
-          <Name name="local:LED">Led</Name>
-          <Description name="local:LED_Desc-">LED CONTROL</Description>
+          <Name name="Reset_Complete">Reset Complete</Name>
+          <Description name="Reset_Complete_DESC-">Relay Pi Plate Reset is complete</Description>
         </Parameter>
       </HostParameterSet>
     </Connector>