--- a/branches/IoDrvMEGAIO/IoDrvMEGAIO.devdesc.xml +++ b/branches/IoDrvMEGAIO/IoDrvMEGAIO.devdesc.xml @@ -2,7 +2,6 @@ <!--created with CoDeSys 3.0 (http://www.3s-software.com) by DeviceDescriptionBuilder (3S-Smart Software Solutions GmbH)--> <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"> - <StructType name="Channel8BOOL"> <Component identifier="BOOL0" type="std:BOOL"> <Default /> @@ -37,7 +36,6 @@ <VisibleName name="Local:Bool7">Bit7</VisibleName> </Component> </StructType> - <StructType name="Ch5BOOL"> <Component identifier="Bit0" type="std:BOOL"> <Default /> @@ -64,7 +62,6 @@ <VisibleName name="Bit5">Bit5</VisibleName> </Component> </StructType> - <StructType name="OpenDrainState"> <Component identifier="Bit0" type="std:BOOL"> <Default /> @@ -83,7 +80,6 @@ <VisibleName name="Bit3">Bit3</VisibleName> </Component> </StructType> - <StructType name="Ch8REAL"> <Component identifier="REAL0" type="std:REAL"> <Default /> @@ -118,7 +114,6 @@ <VisibleName name="REAL7">REAL7</VisibleName> </Component> </StructType> - <StructType name="Ch8UINT"> <Component identifier="UINT0" type="std:UINT"> <Default /> @@ -153,31 +148,29 @@ <VisibleName name="UINT7">UINT7</VisibleName> </Component> </StructType> - + <StructType name="IoDrvOutput"> + <Component identifier="dwIn" type="std:DWORD"> + <Default /> + <VisibleName name="local:Input">Input</VisibleName> + </Component> + <Component identifier="adcVoltages" type="local:Ch8REAL"> + <Default /> + <VisibleName name="adcVoltages">adcVoltages</VisibleName> + </Component> + <Component identifier="adcRaw" type="local:Ch8UINT"> + <Default /> + <VisibleName name="adcRaw">adcRaw</VisibleName> + </Component> + <Component identifier="optoIn" type="local:Channel8BOOL"> + <Default /> + <VisibleName name="local:optoIn">optoIn</VisibleName> + </Component> + <Component identifier="gpioIn" type="local:Ch5BOOL"> + <Default /> + <VisibleName name="local:gpioIn">gpioIn</VisibleName> + </Component> + </StructType> <StructType name="IoDrvInput"> - <Component identifier="dwIn" type="std:DWORD"> - <Default /> - <VisibleName name="local:Input">Input</VisibleName> - </Component> - <Component identifier="adcVoltages" type="local:Ch8REAL"> - <Default /> - <VisibleName name="adcVoltages">adcVoltages</VisibleName> - </Component> - <Component identifier="adcRaw" type="local:Ch8UINT"> - <Default /> - <VisibleName name="adcRaw">adcRaw</VisibleName> - </Component> - <Component identifier="optoIn" type="local:Channel8BOOL"> - <Default /> - <VisibleName name="local:optoIn">optoIn</VisibleName> - </Component> - <Component identifier="gpioIn" type="local:Ch5BOOL"> - <Default /> - <VisibleName name="local:gpioIn">gpioIn</VisibleName> - </Component> - </StructType> - - <StructType name="IoDrvOutput"> <Component identifier="dwOut" type="std:DWORD"> <Default /> <VisibleName name="local:Output">Output</VisibleName> @@ -192,24 +185,24 @@ </Component> <Component identifier="openDrainState" type="local:OpenDrainState"> <Default /> - <VisibleName name="openDrain State">openDrain State</VisibleName> + <VisibleName name="openDrain State">OpenDrain State</VisibleName> + </Component> + <Component identifier="gpioDir" type="local:Ch5BOOL"> + <Default /> + <VisibleName name="gpioDir">GPIO Direction</VisibleName> </Component> <Component identifier="gpioOut" type="local:Ch5BOOL"> <Default /> <VisibleName name="gpioOut">gpioOut</VisibleName> </Component> - <Component identifier="gpioDir" type="local:Ch5BOOL"> - <Default /> - <VisibleName name="gpioDir">gpioDir</VisibleName> - </Component> </StructType> - <StructType name="IoDrvConfig"> <Component identifier="dwConfig" type="std:DWORD"> <Default>2</Default> <VisibleName name="local:Config">Config</VisibleName> </Component> </StructType> + <!-- <Component identifier="StackLevel" type="std:USINT"> <Default>16#1</Default> @@ -217,6 +210,7 @@ <Description name="local:StackLevel.Desc">Stack level of MegaIO boards</Description> </Component> --> + </Types> <Strings namespace="local"> <Language lang="en"> @@ -240,7 +234,7 @@ </DeviceIdentification> <DeviceInfo> <Name name="local:ModelName">IO Driver for MEGAIO</Name> - <Description name="local:DeviceDescription">An I/O driver for MEGAIO</Description> + <Description name="local:DeviceDescription">An I/O driver for MEGAIO written by Aliazzz</Description> <Vendor name="local:VendorName">Open Source</Vendor> <OrderNumber>-</OrderNumber> <Image name="local:ImageFile">device.png</Image> @@ -258,24 +252,36 @@ </RequiredLib> </DriverInfo> <HostParameterSet> - <Parameter ParameterId="1" type="std:USINT"> - <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> - <Default>16#31</Default> - <Name name="local:I2cAddress">I²C address</Name> - <Description name="local:I2cAddress.Desc">Address of I²C Device</Description> - </Parameter> - <Parameter ParameterId="1000" type="local:IoDrvInput"> - <Attributes channel="input" /> + <ParameterSection> + <Name name="local:GeneralParameters">General Parameters</Name> + <Parameter ParameterId="1" type="std:USINT"> + <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> + <Default>16#31</Default> + <Name name="local:I2cAddress">I²C address</Name> + <Description name="local:I2cAddress.Desc">Address of I²C Device</Description> + </Parameter> + </ParameterSection> + <ParameterSection> + <Name name="local:GeneralParameters">Inputs</Name> + <Parameter ParameterId="1000" type="local:IoDrvInput"> + <Attributes channel="Input" /> <Name name="local:Input">Inputs</Name> - </Parameter> - <Parameter ParameterId="2000" type="local:IoDrvOutput"> + </Parameter> + </ParameterSection> + <ParameterSection> + <Name name="local:GeneralParameters">Outputs</Name> + <Parameter ParameterId="2000" type="local:IoDrvOutput"> <Attributes channel="Output" /> <Name name="local:Output">Outputs</Name> - </Parameter> - <Parameter ParameterId="3000" type="local:IoDrvConfig"> + </Parameter> + </ParameterSection> + <ParameterSection> + <Name name="local:GeneralParameters">Configuration</Name> + <Parameter ParameterId="3000" type="local:IoDrvConfig"> <Attributes channel="none" /> <Name name="local:Config">Config</Name> - </Parameter> + </Parameter> + </ParameterSection> </HostParameterSet> </Connector> <ExtendedSettings>