<?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.xsd">
  <version author="Bob Jacobsen" version="3" lastUpdated="20190727"/> <!-- xinclude for CV19 -->
  <version author="Bob Jacobsen" version="1" lastUpdated="20071221"/>
  <version author="Marc Fournier forfoum@videotron.ca" version="2" lastUpdated="20090624"/>
  <version author="Alain Le Marchand" version="3" lastUpdated="20150103"/>
  <!-- Ver 1  Made from the MRC_1645 file                             -->
  <!-- Ver 2  Cleanup, Move consist related items in to consist tab   -->
  <!-- Ver 3  Add function labels                                     -->
  <decoder>
    <family name="Athearn" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="Athearn Genesis Challenger" numOuts="2" numFns="12" maxTotalCurrent="1.5A" extFnsNmraF13="yes" formFactor="HO" comment="for HO models released from 2003 to 2007">
        <!-- note All 12 functions are NMRA compatible -->
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Lights (*2 Master volume)</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="true">Whistle</functionlabel>
        <functionlabel num="3" lockable="false">Air Release</functionlabel>
        <functionlabel num="4" lockable="false">Coupler</functionlabel>
        <functionlabel num="5" lockable="false">Brake Squeal</functionlabel>
        <functionlabel num="6" lockable="false">Conductor</functionlabel>
        <functionlabel num="7" lockable="false">Fire Box</functionlabel>
        <functionlabel num="8" lockable="false">Sand Release</functionlabel>
        <functionlabel num="9" lockable="false">Cylinder Cock/Flange Squeal</functionlabel>
        <functionlabel num="10" lockable="false">Water</functionlabel>
        <functionlabel num="11" lockable="false">Blower Hiss</functionlabel>
        <functionlabel num="12" lockable="true">Master Volume</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <!-- Note Mfg. recognizes CV read back is not 100% correct -->
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Start voltage</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Startspannung</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="3" item="Accel" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Acceleration</label>
        <label xml:lang="it">Accellerazione (0-32)</label>
        <label xml:lang="fr">Accelération (0-32)</label>
        <label xml:lang="de">Anfahrverzögerung (0-32)</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="4" item="Decel" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione (0-32)</label>
        <label xml:lang="fr">Décélération (0-32)</label>
        <label xml:lang="de">Bremszeit (0-32)</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="5" item="Vhigh" default="32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Top voltage</label>
        <label xml:lang="it">Volt Massimi (0-32):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" default="32">
        <decVal/>
        <label>Manufacturer version number</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="143">
        <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>

      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddr.xml"/>

      <!-- CV=29 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <variable CV="52" item="Sound Option 1" default="0" comment="Range 0 or 1">
        <enumVal>
          <enumChoice choice="Min">
            <choice>Min</choice>
          </enumChoice>
          <enumChoice choice="Max">
            <choice>Max</choice>
          </enumChoice>
        </enumVal>
        <label>Sound volume min/max</label>
        <comment>Range 0 or 1</comment>
      </variable>
      <variable CV="64" item="Sound Setting 1" default="5" comment="Range 0-10">
        <decVal max="10"/>
        <label>Chuff Rate</label>
        <comment>Range 0-10</comment>
      </variable>
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1">
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <column>
      <label>
        <text> MRC NOTE </text>
      </label>
      <label>
        <text> </text>
      </label>
      <label>
        <text>This decoder supports all program methods including </text>
      </label>
      <label>
        <text>register mode, paged mode, CV programming, direct </text>
      </label>
      <label>
        <text>mode and programming on the main (OPS mode programming).</text>
      </label>
      <label>
        <text>Program the locomotive the same way you would program </text>
      </label>
      <label>
        <text>any other NMRA compatible decoder with your</text>
      </label>
      <label>
        <text>DCC system.</text>
      </label>
    </column>
    <name>MRC</name>
  </pane>
</decoder-config>
