<?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="4.1" lastUpdated="20150501"/>
  <version author="Alain Le Marchand" version="4" lastUpdated="20150427"/>
  <version author="Peter Ulvestad" version="3" lastUpdated="20091205"/>
  <version author="Pete Cesaro" version="2" lastUpdated="20090215"/>
  <version author=" " version="1.1" lastUpdated="20080205"/>
  <!-- made from the MRC_1630 file by Pete Cesaro -->
  <!-- Version 2 - added many tooltips -->
  <!-- Version 3 - Corrected consist tab and some default values, modified how CV6 shows -->
  <!-- version 4  New family for all MRC HO scale: "Sound Decoders"          -->
  <!--            File MRC_soundbrilliance1663.xml renamed MRC_sound1663.xml -->
  <!-- version 4.1: Bell Ring Rate (CV54) on Sound pane                      -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="32" highVersionID="32" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model model="1663 - HO Scale - Atlas S2/S4" numOuts="2" numFns="12" maxTotalCurrent="1.5A" extFnsMRC="yes">
        <!-- Functions F0 to F28 are NMRA compatible -->
        <size length="95" width="14" height="9" units="mm"/>
      </model>
    </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-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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="3" item="Accel" default="0" 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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="4" item="Decel" default="0" 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>
        <comment>Range 0-32</comment>
      </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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="6" item="Speed Table/Mid Range Cab Speed Step" tooltip="sets Speed Curve">
        <enumVal>
          <enumChoice choice="Linear">
            <choice>Linear</choice>
          </enumChoice>
          <enumChoice choice="Slow increase at slow speed">
            <choice>Slow increase at slow speed</choice>
          </enumChoice>
          <enumChoice choice="Fast increase at slow speed">
            <choice>Fast increase at slow speed</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Curve Select</label>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" tooltip="is the decoder software version, Read Only">
        <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" item="Manufacturer" readOnly="yes" tooltip="=143 for MRC, Read Only">
        <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="50" item="Sound Option 1" default="4" tooltip="range 0-16">
        <decVal max="16"/>
        <label>Horn Type</label>
      </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 2" default="3" tooltip="range 0-6">
        <decVal max="6"/>
        <label>Bell Type</label>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="3" tooltip="range 0-7">
        <decVal max="7"/>
        <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" comment="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="63" item="Sound Setting 22" default="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Random noise 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>
      <variable CV="105" item="User Id #1" default="0" tooltip="range 0-255">
        <decVal max="255"/>
        <label>User ID #1</label>
      </variable>
      <variable CV="106" item="User Id #2" default="0" tooltip="range 0-255">
        <decVal max="255"/>
        <label>User ID #2</label>
      </variable>
      <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="3" tooltip="range 0-3">
        <decVal max="3"/>
        <label>Brake Release volume</label>
      </variable>
      <variable item="Sound Option 3" CV="115" 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 item="Sound Option 4" CV="116" default="1" tooltip="Off(0) or Type1(1)(default) or Type2(2)">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
        </enumVal>
        <label>Coupling Sound Type</label>
      </variable>
      <variable item="Sound Option 5" CV="122" default="0" tooltip="Auto(1)(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>
    </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>
