<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003, 2004, 2005, 2007 All rights reserved -->
<!-- $Id: Digitrax_TL1.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder.xsd">
  <version author="Howard G. Penny" version="1" lastUpdated="20051108"/>
  <version author="Walter Thompson wsthompson@earthlink.net" version="2" lastUpdated="20080412"/>
  <decoder>
    <family name="Function Only, with transponding" mfg="Digitrax">
      <model model="TL1" lowVersionID="250"/>
    </family>
    <programming direct="byteOnly" paged="yes" register="yes" ops="no"/>
    <variables>
      <variable label="Primary Address" CV="1" comment="Short address" item="Short Address" default="03">
        <shortAddressVal/>
        <label>Primary Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version" default="250">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer" default="129">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Long Address" CV="17" item="Extended Address">
        <longAddressVal/>
        <label>Long Address</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Effect Generated" CV="49" mask="XXXXXVVV" item="Effect Generated">
        <enumVal>
          <enumChoice choice="Normal on off">
            <choice>Normal on off</choice>
          </enumChoice>
          <enumChoice choice="Simulated FRED">
            <choice>Simulated FRED</choice>
          </enumChoice>
          <enumChoice choice="Simulated Mars light">
            <choice>Simulated Mars light</choice>
          </enumChoice>
          <enumChoice choice="Slow Strobe">
            <choice>Slow Strobe</choice>
          </enumChoice>
          <enumChoice choice="Single pulse">
            <choice>Single pulse</choice>
          </enumChoice>
          <enumChoice choice="Double pulse">
            <choice>Double pulse</choice>
          </enumChoice>
          <enumChoice choice="Medium pulse">
            <choice>Medium pulse</choice>
          </enumChoice>
          <enumChoice choice="Mostly on blinking off">
            <choice>Mostly on blinking off</choice>
          </enumChoice>
        </enumVal>
        <label>Effect Generated</label>
      </variable>
      <variable label="Use F0 for function control" CV="61" mask="XXXXXXXV" item="F0 use">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Use F0 for function control</label>
      </variable>
      <variable label="Digitrax Transponding" CV="61" mask="XXXXXXVX" item="Transpond" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Digitrax Transponding</label>
      </variable>
      <variable label="Effect Rate" CV="62" mask="XXXXXVVV" item="Effect Rate" tooltip="0 is slowest- max 7">
        <enumVal>
          <enumChoice choice="0 slowest">
            <choice>0 slowest</choice>
          </enumChoice>
          <enumChoice choice="1">
            <choice>1</choice>
          </enumChoice>
          <enumChoice choice="2">
            <choice>2</choice>
          </enumChoice>
          <enumChoice choice="3">
            <choice>3</choice>
          </enumChoice>
          <enumChoice choice="4">
            <choice>4</choice>
          </enumChoice>
          <enumChoice choice="5">
            <choice>5</choice>
          </enumChoice>
          <enumChoice choice="6">
            <choice>6</choice>
          </enumChoice>
          <enumChoice choice="7 fastest">
            <choice>7 fastest</choice>
          </enumChoice>
        </enumVal>
        <label>Effect Rate</label>
      </variable>
      <variable label="Function controlling output" CV="64" mask="XXXXXXXV" item="ControlFn">
        <enumVal>
          <enumChoice choice="F0 or F1">
            <choice>F0 or F1</choice>
          </enumChoice>
          <enumChoice choice="F2">
            <choice>F2</choice>
          </enumChoice>
          <enumChoice choice="F3">
            <choice>F3</choice>
          </enumChoice>
          <enumChoice choice="F4">
            <choice>F4</choice>
          </enumChoice>
        </enumVal>
        <label>Function controlling output</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8"/>
      <factReset label="Reset All CVs except speed table" CV="8" default="9"/>
    </resets>
  </decoder>
  <pane name="Function Output">
    <column>
      <display item="Transpond"/>
      <display item="ControlFn"/>
      <display item="F0 use" format="checkbox" tooltip="Do not check this box if 'F0 or F1' is not selected above"/>
      <display item="Effect Generated"/>
      <display item="Effect Rate"/>
    </column>
    <name>Function Output</name>
  </pane>
</decoder-config>

