<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2008 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="Alain Le Marchand" version="1" lastUpdated="20150501"/>
  <!-- version 1: Created from MRC_sound1644-1645  -->
  <decoder>
    <family name="Sound Decoders - N Scale" mfg="MRC" lowVersionID="32" highVersionID="44"  comment="Synchronized Sound Brilliance(TM) Decoders">
      <model model="1644 - N Scale - Kato SD70MAC/AC4400 (version 2)" numOuts="2" numFns="28" maxTotalCurrent="1.0A" productID="1644v2" extFnsMRC="yes" formFactor="N" connector="DropIn" comment="N-Scale, Drop-In">
        <size length="77" width="9.7" height="3.5" units="mm"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Light</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="false">Horn</functionlabel>
        <functionlabel num="3" lockable="false">Air Release/Acc1 on or off</functionlabel>
        <functionlabel num="4" lockable="false">Coupling</functionlabel>
        <functionlabel num="5" lockable="true">Brake release/Squeal</functionlabel>
        <functionlabel num="6" lockable="true">Dynamic Brake</functionlabel>
        <functionlabel num="7" lockable="false">Air Hose/Uncoupling Lever</functionlabel>
        <functionlabel num="8" lockable="false">Shut Down/Notch Down</functionlabel>
        <functionlabel num="9" lockable="true">Fan/Notch Up</functionlabel>
        <functionlabel num="10" lockable="true">Rail Clack</functionlabel>
        <functionlabel num="11" lockable="false">loco Sound</functionlabel>
        <functionlabel num="12" lockable="false">Prime MoverType</functionlabel>
        <functionlabel num="13" lockable="false">Air release/ Acc2 on or off</functionlabel>
        <functionlabel num="14" lockable="false">Coupling 2</functionlabel>
        <functionlabel num="15" lockable="true">Air Pump</functionlabel>
        <functionlabel num="16" lockable="false">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">Loco Sound</functionlabel>
        <functionlabel num="21" lockable="false">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="false">Horn Volume</functionlabel>
        <functionlabel num="23" lockable="false">Prime Mover Volume</functionlabel>
        <functionlabel num="24" lockable="false">Air Release</functionlabel>
        <functionlabel num="25" lockable="false">Flange Noise 2</functionlabel>
        <functionlabel num="26" lockable="false">Lococ Sound</functionlabel>
        <functionlabel num="27" lockable="false">Short 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="0" tooltip="sets the motor voltage at Speed Step 1, range 0(default)-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">Anfahrspannung</label>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <variable CV="3" item="Accel" default="0" tooltip="Sets the acceleration rate (delay), range 0(default)-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="0" tooltip="Sets the deceleration rate (delay), range 0(default)-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(default)" 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>
      <variable CV="6" item="Speed Table/Mid Range Cab Speed Step" default="0" tooltip="sets the motor voltage increase with Speed Steps, range 0(default)-2">
        <enumVal>
          <enumChoice choice="Linear" value="0">
            <choice>Linear</choice>
          </enumChoice>
          <enumChoice choice="Slow - increase at slow speed" value="1">
            <choice>Slow - increase at slow speed</choice>
          </enumChoice>
          <enumChoice choice="Fast - increase at fast speed" value="2">
            <choice>Fast - increase at fast speed</choice>
          </enumChoice>
        </enumVal>
        <label>Speed curve select</label>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" tooltip="=32 for all MRC Brilliance models, Read Only" 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" tooltip="=143 for MRC, Read Only" 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>
      <!-- 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"/>
      <variable CV="49" item="Sound Option 1" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Sound On/Off</label>
        <tooltip>F12 also sets sound on/off</tooltip>
      </variable>
      <variable CV="50" item="Sound Option 2" default="4" comment="Range 0-34">
        <decVal max="34"/>
        <label>Horn type</label>
        <tooltip>Range 0-34</tooltip>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Horn volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="52" item="Sound Option 3" default="3" comment="Range 0-7">
        <decVal max="7"/>
        <label>Bell type</label>
        <tooltip>Range 0-7</tooltip>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Bell volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="3" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell ring rate</label>
        <tooltip>Range 0-50</tooltip>
      </variable>
      <variable CV="55" item="Sound Setting 4" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Diesel Rumble volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="56" item="Sound Setting 5" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Squeal volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable item="Sound Setting 6" CV="57" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Dynamic Brake volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable item="Sound Setting 7" CV="58" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Release volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="59" item="Sound Setting 8" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="60" item="Sound Setting 9" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Safety Pop Valve volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="61" item="Sound Setting 10" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Engine Cooling Fan volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="62" item="Sound Setting 11" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="64" item="Sound Setting 13" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Rail Wheel Clack volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <!-- MRC CVs continue -->
      <variable CV="113" item="Sound Setting 16" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Fire volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="114" item="Sound Setting 17" default="0" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Release volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="115" item="Sound Option 5" default="1" tooltip="Off(0) or On(1)(default)">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Auto Brake squeal</label>
      </variable>
      <variable CV="117" item="Global lighting option 1" tooltip="selects the Light Mode" default="0">
        <enumVal>
          <enumChoice choice="Normal Headlights" value="0">
            <choice>Normal Headlights</choice>
          </enumChoice>
          <enumChoice choice="Off / Dim /  Bright Cycle" value="1">
            <choice>Off / Dim /  Bright Cycle</choice>
          </enumChoice>
          <enumChoice choice="Rule 17" value="2">
            <choice>Rule 17</choice>
          </enumChoice>
        </enumVal>
        <label>Headlights Mode</label>
      </variable>
      <variable CV="122" item="Sound Option 7" tooltip="can only have values of 0 or 3" default="0">
        <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 item="Sound Option 8" CV="123" default="2" tooltip="[Range 0-4 (4=Off)]">
        <enumVal>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
          <enumChoice choice="Type 3">
            <choice>Type 3</choice>
          </enumChoice>
          <enumChoice choice="Type 4">
            <choice>Type 4</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover type</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>
