<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!-- See the COPYING file for more information on licensing and appropriate use -->
<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="Alain Le Marchand" version="1" lastUpdated="20160409"/>
  <!-- made from the MRC_1663 version 4.1  -->
  <version author="Peter Ulvestad" version="2" lastUpdated="20160501"/>
  <!-- added miising CV29 for speed table  -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="25" highVersionID="25" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model model="1750 - HO Scale - Walthers GP15-1" numOuts="2" numFns="28" maxTotalCurrent="1.5A" extFnsMRC="yes" formFactor="HO" connector="DropIn" comment="&lt;html&gt;HO-Scale, &lt;br&gt; with multiple types (16 horns, 8 bells) &lt;br&gt;and with wireless remote&lt;/html&gt;">
        <!-- Functions F0 to F28 are NMRA compatible -->
        <size length="114" width="18" height="11" units="mm"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Headlight</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="false">Horn</functionlabel>
        <functionlabel num="3" lockable="false">Air Release</functionlabel>
        <functionlabel num="4" lockable="false">Coupling 1</functionlabel>
        <functionlabel num="5" lockable="false">Brake Squeal/Release</functionlabel> <!-- Brake squeal (moving) and brake release (idle)-->
        <functionlabel num="6" lockable="true">Idle</functionlabel> <!-- idle shifting during idle -->
        <functionlabel num="7" lockable="false">Air Hose/Uncoupling Lever</functionlabel> <!-- Air hose firing/uncoupling lever -->
        <functionlabel num="8" lockable="true">Shut Down/Notch Down</functionlabel> <!-- Click 3 times during idle will shut down / notch down while CV122=3 -->
        <functionlabel num="9" lockable="true">Fan/Notch Up</functionlabel> <!-- Engine cooling fan / notch up while CV122=3 -->
        <functionlabel num="10" lockable="false">Rail Clack</functionlabel> <!--Rail wheel clack (only moving) -->
        <functionlabel num="11" lockable="false">Traction Air Compressor</functionlabel>
        <functionlabel num="12" lockable="true">Sound On/Off</functionlabel>
        <functionlabel num="13" lockable="false">Air Release</functionlabel>
        <functionlabel num="14" lockable="false">Coupling 2</functionlabel>
        <functionlabel num="15" lockable="false">Air Pump</functionlabel>
        <functionlabel num="16" lockable="false">Associated Loco Sound</functionlabel>
        <functionlabel num="17" lockable="false">Flange Noise 1</functionlabel>
        <functionlabel num="18" lockable="false">Bell Type</functionlabel>
        <functionlabel num="19" lockable="false">Horn Type</functionlabel>
        <functionlabel num="20" lockable="false">Reversal Gear</functionlabel>
        <functionlabel num="21" lockable="false">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="false">Horn Volume</functionlabel>
        <functionlabel num="23" lockable="false">Diesel Rumble Volume</functionlabel>
        <functionlabel num="24" lockable="false">Air Release</functionlabel>
        <functionlabel num="25" lockable="false">Flange Noise 2</functionlabel>
        <functionlabel num="26" lockable="false">Flange Noise 3</functionlabel>
        <functionlabel num="27" lockable="false">Sand Drop</functionlabel>
        <functionlabel num="28" lockable="false">Air Release</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" default="2" tooltip="sets the motor voltage at Speed Step 1, range 0-32" 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>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <variable CV="3" item="Accel" default="5" tooltip="sets the acceleration rate (delay), range 0-32" 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>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <variable CV="4" item="Decel" default="5" tooltip="sets the deceleration rate (delay), range 0-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione (1-32)</label>
        <label xml:lang="fr">Décélération (1-32)</label>
        <label xml:lang="de">Bremszeit (1-32)</label>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <variable CV="5" item="Vhigh" default="32" tooltip="sets the motor voltage at top Speed Step, range 0-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>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <!-- CV=7/8 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
      <!-- CV=19 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <!-- CV=21 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv21_lsb.xml"/>
      <!-- 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"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table1-28.xml"/>
      <variable CV="49" mask="XXXXXXXV" item="Sound Option 1" tooltip="can turn off all sound except the Horn" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Sound on/off</label>
      </variable>
     <variable CV="50" item="Sound Option 2" default="8">
        <enumVal>
          <enumChoice choice="Horn 1">
            <choice>Horn 1</choice>
          </enumChoice>
          <enumChoice choice="Horn 2">
            <choice>Horn 2</choice>
          </enumChoice>
          <enumChoice choice="Horn 3">
            <choice>Horn 3</choice>
          </enumChoice>
          <enumChoice choice="Horn 4">
            <choice>Horn 4</choice>
          </enumChoice>
          <enumChoice choice="Horn 5">
            <choice>Horn 5</choice>
          </enumChoice>
          <enumChoice choice="Horn 6">
            <choice>Horn 6</choice>
          </enumChoice>
          <enumChoice choice="Horn 7">
            <choice>Horn 7</choice>
          </enumChoice>
          <enumChoice choice="Horn 8">
            <choice>Horn 8</choice>
          </enumChoice>
          <enumChoice choice="Horn 9">
            <choice>Horn 9</choice>
          </enumChoice>
          <enumChoice choice="Horn 10">
            <choice>Horn 10</choice>
          </enumChoice>
          <enumChoice choice="Horn 11">
            <choice>Horn 11</choice>
          </enumChoice>
          <enumChoice choice="Horn 12">
            <choice>Horn 12</choice>
          </enumChoice>
          <enumChoice choice="Horn 13">
            <choice>Horn 13</choice>
          </enumChoice>
          <enumChoice choice="Horn 14">
            <choice>Horn 14</choice>
          </enumChoice>
          <enumChoice choice="Horn 15">
            <choice>Horn 15</choice>
          </enumChoice>
          <enumChoice choice="Horn 16">
            <choice>Horn 16</choice>
          </enumChoice>
        </enumVal>
        <label>Horn type</label>
        <tooltip>Range 0-15 (16 types)</tooltip>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Horn Volume</label>
      </variable>
      <variable CV="52" item="Sound Option 3" default="7">
        <enumVal>
          <enumChoice choice="Bell 1">
            <choice>Bell 1</choice>
          </enumChoice>
          <enumChoice choice="Bell 2">
            <choice>Bell 2</choice>
          </enumChoice>
          <enumChoice choice="Bell 3">
            <choice>Bell 3</choice>
          </enumChoice>
          <enumChoice choice="Bell 4">
            <choice>Bell 4</choice>
          </enumChoice>
          <enumChoice choice="Bell 5">
            <choice>Bell 5</choice>
          </enumChoice>
          <enumChoice choice="Bell 6">
            <choice>Bell 6</choice>
          </enumChoice>
          <enumChoice choice="Bell 7">
            <choice>Bell 7</choice>
          </enumChoice>
          <enumChoice choice="Bell 8">
            <choice>Bell 8</choice>
          </enumChoice>
        </enumVal>
        <label>Bell type</label>
        <tooltip>Range 0-7 (8 types)</tooltip>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="2" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Bell Volume</label>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="3" tooltip="range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
      </variable>
      <variable CV="55" item="Sound Setting 4" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Diesel rumble volume</label>
      </variable>
      <variable CV="56" item="Sound Setting 5" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Brake squeal volume</label>
      </variable>
      <variable CV="57" item="Sound Setting 11" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Dynamic brake volume</label>
      </variable>
      <variable CV="58" item="Sound Setting 12" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
      </variable>
      <variable CV="59" item="Sound Setting 13" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="60" item="Sound Setting 14" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Safety pop valve volume</label>
      </variable>
      <variable CV="61" item="Sound Setting 15" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Engine Cooling Fan Volume</label>
      </variable>
      <variable CV="62" item="Sound Setting 21" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
      </variable>
      <variable CV="64" item="Sound Setting 23" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Rail clack volume</label>
      </variable>
      <!-- Kick-Start Voltage as per NMRA definition -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <!-- Speed table -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <!-- CV=105, 106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <!-- MRC Sound settings continue -->
      <variable CV="113" item="Sound Setting 24" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Coupling fire volume</label>
      </variable>
      <variable CV="114" item="Sound Setting 25" default="0" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Brake Release volume</label>
      </variable>
      <variable CV="115" item="Sound Option 4" tooltip="sets the Auto Brake Squeal [Enable/Disable]" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-DisableEnable_01.xml"/>
        <label>Auto Brake squeal</label>
      </variable>
      <variable item="Sound Option 5" CV="122" default="0" tooltip="Auto(0)(default) or Manual(3)">
        <enumVal>
          <enumChoice choice="Auto notch - RPM and notch synchro to speed" value="0">
            <choice>Auto notch - RPM and notch synchro to speed</choice>
          </enumChoice>
          <enumChoice choice="Manual notch - notch down/up with F8/F9" value="3">
            <choice>Manual notch - notch down/up with F8/F9</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel notch mode</label>
      </variable>
      <variable CV="124" item="EMF Option 1" default="0" tooltip="Back EMF Load Control, on/off, 1=on">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Back EMF Load Control on/off</label>
      </variable>
    </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>
</decoder-config>
