<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2016 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">
    <copyright xmlns="http://docbook.org/ns/docbook">
        <year>2016</year>
        <holder>JMRI</holder>
    </copyright>
    <authorgroup xmlns="http://docbook.org/ns/docbook">
        <author>
            <personname>
                <firstname>Michael</firstname>
                <surname>Mosher</surname>
            </personname>
        </author>
        <author>
            <personname>
                <firstname>Alain</firstname>
                <surname>Le Marchand</surname>
            </personname>
        </author>
        <author>
            <personname>
                <firstname>Dave</firstname>
                <surname>Heap</surname>
            </personname>
        </author>
        <author>
            <personname>
                <firstname>James</firstname>
                <surname>Exler</surname>
            </personname>
        </author>
    </authorgroup>
    <revhistory xmlns="http://docbook.org/ns/docbook">
        <revision>
            <revnumber>1</revnumber>
            <date>2016-05-29</date>
            <authorinitials>MM</authorinitials>
            <revremark>New file, based on ECO Steam file + (ALM) Factoring and minor adjustments</revremark>
        </revision>
        <revision>
            <revnumber>1.1</revnumber>
            <date>2016-06-04</date>
            <authorinitials>ALM</authorinitials>
            <revremark>Add Tsunami2 Reset values</revremark>
        </revision>
        <revision>
            <revnumber>2</revnumber>
            <date>2016-06-20</date>
            <authorinitials>MM</authorinitials>
            <revremark>Added TSU-2200 model</revremark>
        </revision>
        <revision>
            <revnumber>3</revnumber>
            <date>2016-08-30</date>
            <authorinitials>MM</authorinitials>
            <revremark>Added TSU-21PNEM model</revremark>
        </revision>
        <revision>
            <revnumber>4</revnumber>
            <date>2016-10-21</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Add ID CV 253,254,255,256 and change product ID to values in CV256</revremark>
        </revision>
        <revision>
            <revnumber>4.1</revnumber>
            <date>2016-12-21</date>
            <authorinitials>DGH</authorinitials>
            <revremark>Change product ID to values in CVs 253(high byte) and 256(low byte)</revremark>
        </revision>
        <revision>
            <revnumber>5</revnumber>
            <date>2017-07-13</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Added TSU-4400 model</revremark>
        </revision>
        <revision>
            <revnumber>6</revnumber>
            <date>2018-01-05</date>
            <authorinitials>ALM</authorinitials>
            <revremark>Separate ECO CVs file for Extended Function Map. Add labels to Extended Function map CVs.</revremark>
        </revision>
        <revision>
            <revnumber>6.1</revnumber>
            <date>2018-02-18</date>
            <authorinitials>ALM</authorinitials>
            <revremark>Volume and Alt volume display alignment.</revremark>
        </revision>
        <revision>
            <revnumber>7</revnumber>
            <date>2018-08-13</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Added Steam 2 decoders</revremark>
        </revision>
        <revision>
            <revnumber>8</revnumber>
            <date>2019-12-11</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Fixed legacy function names and move to family level</revremark>
        </revision>
        <revision>
            <revnumber>9</revnumber>
            <date>2020-07-27</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Added 21PNEM8 decoder</revremark>
         </revision>
		<revision>
            <revnumber>10</revnumber>
            <date>2021-06-28</date>
            <authorinitials>DH</authorinitials>
            <revremark>Correct Handling of PI (CV31) and SI (CV32)</revremark>
        </revision>
        <revision>
            <revnumber>9</revnumber>
            <date>2020-07-27</date>
            <authorinitials>MJM</authorinitials>
            <revremark>Added BH2 and N18 and Big Steam decoders</revremark>
        </revision>
        <revision>
            <revnumber>10</revnumber>
            <date>2022-07-25</date>
            <authorinitials>JE</authorinitials>
            <revremark>Chg pane ref to new file TSU2PaneLighting, Chg pane ref to TSU2PaneASCsteam</revremark>
        </revision>
        <revision>
            <revnumber>11</revnumber>
            <date>2022-12-01</date>
            <authorinitials>MM</authorinitials>
            <revremark>Split vars to include file to reuse with Blunami</revremark>
        </revision>
        <revision>
            <revnumber>12</revnumber>
            <date>2023-10-09</date>
            <authorinitials>MM</authorinitials>
            <revremark>productID change for 11 bit Soundtraxx ID</revremark>
        </revision>
    </revhistory>
    <!-- Decoder Model information follows -->
    <decoder>
        <family name="Tsunami2 Steam" mfg="SoundTraxx (Throttle-Up)" lowVersionID="71" comment="These are the -retail- version Tsunami2 Steam decoders">
            <model model="TSU-1100 Steam" numOuts="4" numFns="30" maxMotorCurrent="1A" connector="9pin" productID="2064" comment="Model 884001">
                <size length="27" width="10.5" height="5" units="mm"/>
            </model>
            <model model="TSU-1100 Steam-2" numOuts="4" numFns="30" maxMotorCurrent="1A" connector="9pin" productID="2107" comment="Model 884006">
                <size length="27" width="10.5" height="5" units="mm"/>
            </model>
            <model model="TSU-1100 Big Steam" numOuts="4" numFns="30" maxMotorCurrent="1A" connector="9pin" productID="2131" comment="Model 884011">
                <size length="27" width="10.5" height="5" units="mm"/>
            </model>
            <model model="TSU-2200 Steam" numOuts="6" numFns="30" maxMotorCurrent="2A" connector="9pin" productID="2065" comment="Model 884002">
                <size length="35" width="18" height="6" units="mm"/>
            </model>
            <model model="TSU-2200 Steam-2" numOuts="6" numFns="30" maxMotorCurrent="2A" connector="9pin" productID="2108" comment="Model 884007">
                <size length="35" width="18" height="6" units="mm"/>
            </model>
            <model model="TSU-2200 Big Steam" numOuts="6" numFns="30" maxMotorCurrent="2A" connector="9pin" productID="2132" comment="Model 884012">
                <size length="35" width="18" height="6" units="mm"/>
            </model>
            <model model="TSU-21PNEM Steam" numOuts="6" numFns="30" maxMotorCurrent="1A" connector="21MTC" productID="2066" comment="Model 884003">
                <size length="30.5" width="15.5" height="6.5" units="mm"/>
            </model>
            <model model="TSU-21PNEM Steam-2" numOuts="6" numFns="30" maxMotorCurrent="1A" connector="21MTC" productID="2109" comment="Model 884008">
                <size length="30.5" width="15.5" height="6.5" units="mm"/>
            </model>
            <model model="TSU-21PNEM8 Steam-2" numOuts="8" numFns="30" maxMotorCurrent="1A" connector="21MTC" productID="2116" comment="Model 884808">
                <size length="30.5" width="15.5" height="6.5" units="mm"/>
            </model>
            <model model="TSU-21PNEM8 Big Steam" numOuts="8" numFns="30" maxMotorCurrent="1A" connector="21MTC" productID="2133" comment="Model 884013">
                <size length="30.5" width="15.5" height="6.5" units="mm"/>
            </model>
            <model model="TSU-4400 Steam" numOuts="6" numFns="30" maxMotorCurrent="4A" connector="other" productID="2067" comment="Model 884005">
                <size length="69" width="30.5" height="14" units="mm"/>
            </model>
            <model model="TSU-4400 Steam-2" numOuts="6" numFns="30" maxMotorCurrent="4A" connector="other" productID="2110" comment="Model 884009">
                <size length="69" width="30.5" height="14" units="mm"/>
            </model>
            <model model="TSU-BH2 Steam-2" numOuts="8" numFns="30" maxMotorCurrent="2A" connector="DropIn" productID="2134" comment="Model 884814">
                <size length="45" width="28" height="7.5" units="mm"/>
            </model>
            <model model="TSU-N18 Steam-2" numOuts="6" numFns="30" maxMotorCurrent="1A" connector="Next18" productID="2124" comment="Model 884010">
                <size length="25" width="10.5" height="4.1" units="mm"/>
            </model>
            <output name="3" label="  FX3  "/>
            <output name="4" label="  FX4  "/>
            <output name="5" label="Whistle| ">
                <label xml:lang="it">Fischio| </label>
            </output>
            <output name="6" label="Bell| ">
                <label xml:lang="it">Campana| </label>
            </output>
            <output name="7" label="Dynamo| ">
                <label xml:lang="it">Dynamo| </label>
            </output>
            <output name="8" label="Short|Whistle">
                <label xml:lang="it">Breve|Tromba</label>
            </output>
            <output name="9" label="Cylinder|Cocks">
                <label xml:lang="it">Cilindro|Cazzi</label>
            </output>
            <output name="10" label="Water|Stop">
                <label xml:lang="it">Acqua|Stop</label>
            </output>
            <output name="11" label="Dimming| ">
                <label xml:lang="it">Smorzam| </label>
            </output>
            <output name="12" label="Mute| ">
                <label xml:lang="it">Silenzio| </label>
            </output>
            <output name="13" label="|"/>	<!-- Not used for for this decoder -->
            <output name="14" label="Brakes| "/>
            <output name="15" label="Coupler| ">
                <label xml:lang="it">Accoppiatore| </label>
            </output>
            <functionlabels>
                <functionlabel num="0" lockable="true">Headlight</functionlabel>
                <functionlabel num="1" lockable="true">Bell</functionlabel>
                <functionlabel num="2" lockable="false">Whistle</functionlabel>
                <functionlabel num="3" lockable="true">Short Whistle</functionlabel>
                <functionlabel num="4" lockable="true">Cylinder Cocks</functionlabel>
                <functionlabel num="5" lockable="true">Cutoff+</functionlabel>
                <functionlabel num="6" lockable="true">Cutoff-</functionlabel>
                <functionlabel num="7" lockable="true">Dimmer</functionlabel>
                <functionlabel num="8" lockable="true">Mute</functionlabel>
                <functionlabel num="9" lockable="true">Xing Signal</functionlabel>
                <functionlabel num="10" lockable="true">Blowdown</functionlabel>
                <functionlabel num="11" lockable="true">Ind/Train Brake</functionlabel>
                <functionlabel num="12" lockable="true">Brake Select</functionlabel>
                <functionlabel num="13" lockable="true">Coupler</functionlabel>
                <functionlabel num="14" lockable="true">Half Speed</functionlabel>
                <functionlabel num="15" lockable="true">Wheel Chains</functionlabel>
                <functionlabel num="16" lockable="true">Water Stop</functionlabel>
                <functionlabel num="17" lockable="true">Fuel Loading</functionlabel>
                <functionlabel num="18" lockable="true">Ash Dump</functionlabel>
                <functionlabel num="19" lockable="true">Wheel Slip</functionlabel>
                <functionlabel num="20" lockable="true">Injector</functionlabel>
                <functionlabel num="21" lockable="true">Sander Valve</functionlabel>
                <functionlabel num="22" lockable="true">Cab Chatter</functionlabel>
                <functionlabel num="23" lockable="true">All Aboard</functionlabel>
                <functionlabel num="24" lockable="true">FX3 Output</functionlabel>
                <functionlabel num="25" lockable="true">FX4 Output</functionlabel>
                <functionlabel num="26" lockable="true">FX5 Output</functionlabel>
                <functionlabel num="27" lockable="true">FX6 Output</functionlabel>
                <functionlabel num="28" lockable="true">FX7,8 Output</functionlabel>
            </functionlabels>
        </family>
        <programming direct="yes" paged="yes" register="yes" ops="yes">
            <capability>
                <name>Indexed CV access</name>
                <parameter name="PI">31</parameter>
                <parameter name="SI">32</parameter>
                <parameter name="cvFirst">false</parameter>
            </capability>
        </programming>
        <!-- Configuration Variable (CV) information follows -->
        <variables>
            <xi:include href="http://jmri.org/xml/decoders/soundtraxx/SoundTraxx_Blu_Tsu2_Steam_cv.xml"/>
        </variables>
        <resets>
            <factReset label="Reset all CVs to factory defaults" CV="8" default="8"/>
            <factReset label="Reset CVs 1-128 to factory defaults" CV="8" default="9"/>
            <factReset label="Reset CVs 129-256 to factory defaults" CV="8" default="10"/>
            <factReset label="Reset CVs 1.257-1.512 to factory defaults" CV="8" default="11"/>
            <factReset label="Reset CVs 2.257-2.512 to factory defaults" CV="8" default="12"/>
            <factReset label="Reset CVs 3.257-3.512 to factory defaults" CV="8" default="13"/>
        </resets>
    </decoder>
    <!-- References to external Pane format definitions below -->
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUaltSoundLevelsPane.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSU2PaneLighting.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUPaneEqualizer.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUPaneDDE.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUPaneReverb.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSU2PaneASCsteam.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/ECOPaneFnMap.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/ECOlegacyPaneFnMap.xml"/>
    <xi:include href="http://jmri.org/xml/decoders/soundtraxx/ECOPaneID.xml"/>
</decoder-config>
