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