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>501</Type> <Id>0003 0001</Id> <Version>1.0.0.0</Version> </DeviceIdentification> <DeviceInfo> <Name name="local:ModelName">SPI Template</Name> <Description name="local:DeviceDescription">This is a driver template for an SPI driver.</Description> <Vendor name="local:VendorName">Open Source</Vendor> <OrderNumber>-</OrderNumber> <Icon name="local:Icon">icon.ico</Icon> </DeviceInfo> <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="SPI Template" vendor="Open Source" version="1.0.0.0" identifier="SPI Template"> <FBInstance basename="$(DeviceName)" fbname="SPITemplate"> <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>14</Default> <Name name="local:BitWidth">Bit Width</Name> <Description name="local:BitWidthDesc">Bit width of the temperature value</Description> </Parameter> <Parameter ParameterId="1001" type="std:REAL"> <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> <Default>0.25</Default> <Name name="local:Resolution">Resolution</Name> <Description name="local:ResolutionDesc">Minimal resolution in degrees</Description> </Parameter> </HostParameterSet> </Connector> </Device> </DeviceDescription> |