<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!--                                                                        -->
<!-- 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-4-15-2.xsd">
  <version author="Martin Gostling ingleborough@yahoo.com" version="1" lastUpdated="20070411"/>
  <!-- Version 1 - created from Lenz_silver.xml "20070411"-->
  <!-- This is the Trix Selectrix - DCC decoder -->
  <decoder>
    <family name="Version 1" mfg="Trix Modelleisenbahn" highVersionID="65" lowVersionID="65" comment="Trx Selectrix &amp; DCC decoder">
      <model model="Version 1" numOuts="0" numFns="0" lowVersionID="65">
		</model>
    </family>
    <programming direct="no" paged="yes" register="no" ops="no"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="3" item="Accel" default="6" comment="Range 0-255">
        <decVal min="0" max="255"/>
        <label>Acceleration Momentum (0-255)</label>
        <label xml:lang="it">Accellerazione (0-255)</label>
        <label xml:lang="fr">Accelération (0-255)</label>
        <label xml:lang="de">Anfahrverzögerung (0-255)</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="4" item="Decel" default="5" comment="Range 0-255">
        <decVal min="0" max="255"/>
        <label>Deceleration (Brake) Momentum (0-255)</label>
        <label xml:lang="it">Decellerazione (0-255)</label>
        <label xml:lang="fr">Décélération (0-255)</label>
        <label xml:lang="de">Bremszeit (0-255)</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="5" item="Vhigh" default="255" comment="Sets the maximum voltage at full throttle">
        <decVal min="0" max="255"/>
        <label>Max Volts (0-255)</label>
        <label xml:lang="it">Volt Massimi (0-255):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
        <comment>Sets the maximum voltage at full throttle</comment>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" default="65">
        <decVal/>
        <label>Decoder Version No: </label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="131">
        <decVal/>
        <label>Manufacturer ID: </label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
      </variable>
      <!-- CV=29 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29direction.xml"/>
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <variable CV="49" mask="XXXXVVVV" item="Motor Option 1" default="0" comment="Range 0-3">
        <enumVal>
          <enumChoice choice="0 ">
            <choice>0 </choice>
          </enumChoice>
          <enumChoice choice="1 ">
            <choice>1 </choice>
          </enumChoice>
          <enumChoice choice="2 ">
            <choice>2 </choice>
          </enumChoice>
          <enumChoice choice="3 ">
            <choice>3 </choice>
          </enumChoice>
        </enumVal>
        <label>Pulse Width for Motor Control</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="50" mask="XXXXVVVV" item="Motor Option 2" default="0" comment="Range 0-3">
        <enumVal>
          <enumChoice choice="0 ">
            <choice>0 </choice>
          </enumChoice>
          <enumChoice choice="1 ">
            <choice>1 </choice>
          </enumChoice>
          <enumChoice choice="2 ">
            <choice>2 </choice>
          </enumChoice>
          <enumChoice choice="3 ">
            <choice>3 </choice>
          </enumChoice>
        </enumVal>
        <label>Motor Type(0-5)</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="51" mask="XXXXXXXV" item="Motor Polarity Reversal" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Motor Polarity Reversal</label>
      </variable>
      <variable CV="51" mask="XXXXXXVX" item="Lighting Polarity Reversal" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Lighting Polarity Reversal</label>
      </variable>
      <variable CV="51" mask="XXXXXVXX" item="Track Polarity Reversal" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Track Polarity Reversal</label>
      </variable>
      <variable CV="128" readOnly="yes" item="Decoder Software Version" default="1">
        <decVal/>
        <label>Decoder Software Version (read only): </label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="33">
         <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
</decoder-config>
