﻿<?xml version="1.0" encoding="utf-8"?>
<!--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">
  </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>FFFF 4712</Id>
      <Version>1.1.0.0</Version>
    </DeviceIdentification>
    <DeviceInfo>
      <Name name="local:ModelName">LCD4x20</Name>
      <Description name="local:DeviceDescription">LCD4x20</Description>
      <Vendor name="local:VendorName">Lambda</Vendor>
      <OrderNumber>-</OrderNumber>
<!--      <Icon name="local:Icon">Icon.ico</Icon> -->
    </DeviceInfo>
    <Connector moduleType="500" interface="Raspberry.SPI" role="child" explicit="false" connectorId="1" hostpath="-1">
      <InterfaceName name="local:PCI">SPI devices</InterfaceName>
      <Slot count="1" allowEmpty="false">
      </Slot> 
      <DriverInfo needsBusCycle="false">
        <RequiredLib libname="LCD4x20" vendor="Lambda" version="1.0.0.0" identifier="deviceLib">
          <FBInstance basename="$(DeviceName)" fbname="LCD4x20">
            <Initialize methodName="Initialize" />
            <CyclicCall methodname="AfterReadInputs" task="#buscycletask" whentocall="afterReadInputs" />
            <CyclicCall methodname="BeforeWriteOutputs" task="#buscycletask" whentocall="beforeWriteOutputs" />
          </FBInstance>
        </RequiredLib>
      </DriverInfo>
      <HostParameterSet>
        <Parameter ParameterId="100" type="std:USINT">
          <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
          <Default>0</Default>
          <Name name="local:SPI_channel">SPI master number</Name>
          <Description name="local:Id393218.Desc">SPI controlling device name /dev/spidev0.X</Description>
        </Parameter>
      </HostParameterSet>
    </Connector>
  </Device>
</DeviceDescription>