1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <?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> <Strings namespace="local"> <Language lang="en"></Language> </Strings> <Files namespace="local"> <Language lang="en"> <File fileref="local" identifier="Icon"> <LocalFile>icon.ico</LocalFile> </File> </Language> </Files> <Device hideInCatalogue="false"> <DeviceIdentification> <Type>500</Type> <Id>0003 0002</Id> <Version>1.0.0.0</Version> </DeviceIdentification> <DeviceInfo> <Name name="local:ModelName">I2C Template</Name> <Description name="local:DeviceDescription">This is a driver template for an I2C driver.</Description> <Vendor name="local:VendorName">Open Source</Vendor> <OrderNumber>-</OrderNumber> <Icon name="local:Icon">icon.ico</Icon> </DeviceInfo> <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1"> <InterfaceName name="local:I2C">I2C devices</InterfaceName> <Slot count="1" allowEmpty="false"></Slot> <DriverInfo needsBusCycle="false"> <RequiredLib libname="I2C Template" vendor="Open Source" version="1.0.0.0" identifier="I2C Template"> <FBInstance basename="$(DeviceName)" fbname="I2CTemplate"> <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:USINT"> <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> <Default>0</Default> <Name name="local:I2CAddress">I2C Address</Name> <Description name="local:I2CAddressDesc">Address of the device</Description> </Parameter> <Parameter ParameterId="1001" type="std:UINT"> <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> <Default>50</Default> <Name name="local:Resolution">Frequency [Hz]</Name> <Description name="local:ResolutionDesc">PWM Frequency (1/T)</Description> </Parameter> </HostParameterSet> </Connector> </Device> </DeviceDescription> |