<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!DOCTYPE decoder-config SYSTEM "../DTD/decoder-config.dtd">

<!-- Copyright (C) JMRI 2005, 2006, 2007 All rights reserved -->
<!-- $Id: MRC_soundbrilliance1656.xml,v 1.2 2009/03/21 22:11:00 jacobsen Exp $ -->
<!--                                                                        -->
<!-- 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>
				<version author="Pete Cesaro"
			version="2" lastUpdated="20090215" />
<!-- added many tooltips -->
				<version author="Pete Cesaro"
			version="1" lastUpdated="20080216" />
<!-- made from the MRC_1630 file by Pete Cesaro pdsteam@aol.com -->

<decoder>
	<family name="Brilliance Sound Decoders" mfg="MRC"
			lowVersionID="32" highVersionID="32">
		<model model="Synch Steam Sound 1656"
		            maxTotalCurrent="1.5A" extFnsMRC="yes">
		            <!-- note All functions are NMRA compatible -->
                <size length="45" width="18" height="6.2" units="mm" />
        </model>
	</family>

	<programming direct="yes" paged="yes"
	                     register="yes" ops="yes">
		</programming>

	<variables>

		<variable label="Primary Address" CV="1" comment="Short address 1-127"
						tooltip="Sets the Short, Primary or 2-digit address, CV 1, range 1-127" 
						item="Short Address"  default="3">
			<shortAddressVal/></variable>

		<variable label="Start Volts" CV="2" item="Vstart" default="0"
				tooltip="sets the motor voltage at Speed Step 1, range 0(default)-32, CV2"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Acceleration" CV="3" item="Accel" default="8"
				tooltip="Sets the acceleration rate (delay or momentum), range 0(default)-32, CV3"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Deceleration" CV="4" item="Decel" default="8"
				tooltip="Sets the deceleration rate (delay or momentum), range 0(default)-32, CV4"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>
			
		<variable label="Top Voltage" CV="5" item="Vhigh" default="32"
				tooltip="sets the motor voltage at top Speed Step, range 0-32(default), CV5"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Version ID" CV="7" readOnly="yes"
				tooltip="CV7=32, Read Only"				
				item="Decoder Version" default="32">
			<decVal/>
			</variable>

		<variable label="Manufacturer ID" CV="8" readOnly="yes"
				tooltip="CV8=143 for MRC, Read Only"
				item="Manufacturer" default="143">
			<decVal/>
			</variable>

		<variable label="Long Address" CV="17" item="Extended Address"
				tooltip="Sets the Extended (4 digit) address, range 128-9999, mapped to CV17 and 18" 
		        comment="4 digit address (Range 0001-9999)">
			<longAddressVal/>
			</variable>

		<variable label="Advanced Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address"
				tooltip="CV19, range 1-127">
			<decVal/>
			</variable>

		<variable label="Consist Direction" CV="19" mask="VXXXXXXX"
				tooltip="CV19, This loco runs Normal(default) or Reversed(address+128) when in the consist">
			<enumVal>
				<enumChoice choice="Normal"></enumChoice>
				<enumChoice choice="Reversed"></enumChoice>
				</enumVal></variable>

        <variable label="Functions Respond To Address" CV="21" mask="XXXXXXXV"  tooltip="CV21, least significant bit"> 
                <enumVal>
                        <enumChoice choice="Locomotive Address Only"/>
                        <enumChoice choice="Respond to Consist Address"/>
                        </enumVal></variable>

		<variable label="Normal direction of motion" CV="29"
				mask="XXXXXXXV"
				tooltip="CV29, '1' (least significant) bit, Forward(0)(default) or Reverse(1)"
		        item="Locomotive Direction">
			<enumVal>
				<enumChoice choice="Forward"/>
				<enumChoice choice="Reverse"/>
				</enumVal>
			</variable>

		<variable label="Speed Steps" CV="29" mask="XXXXXXVX"
				tooltip="CV29, '2' bit. Sets the Speed Step for motor, also affects some light settings"
				item="Speed Step Mode" default="1">
			<enumVal>
				<enumChoice choice="14"/>
				<enumChoice choice="28/128 (recommended)"/>
				</enumVal>
			</variable>

		<variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="0"
				tooltip="CV29, '4' bit. Allows the loco to run on DC, default is Off"
				item="Analog (DC) Operation">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
				</enumVal>
			</variable>

		<variable label="Addressing Mode" CV="29" mask="XXVXXXXX"
				tooltip="CV29, '32' bit"
				item="Address Format">
			<enumVal>
				<enumChoice choice="2 digit addressing"/>
				<enumChoice choice="4 digit addressing"/>
				</enumVal>
			</variable>
			
        <variable label="Master Volume Control" CV="49" default="2" item="Sound Option 1"
				tooltip="CV49, 0=Off, 1=Low, 2=Mid(default), 3=High">
				comment="Range 0-3">
			<decVal max="3"/>            
		</variable>

		<variable label="Whistle Type" CV="50" item="Sound Option 2" default="0"
				tooltip="CV50, range 0-13"
				comment="Range 0-13">
			<decVal max="13"/>
			</variable>

		<variable label="Whistle Volume" CV="51" item="Sound Setting 1" default="3"
				tooltip="CV51, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
								
		<variable label="Bell Type" CV="52" item="Sound Option 3" default="0"
				tooltip="CV52, 4 bell versions, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3"
				tooltip="CV53, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Bell Ring Rate" CV="54" item="Sound Setting 3" default="10"
				tooltip="CV54, range 0-50, lower is faster"
				comment="Range 0-50">
			<decVal max="50"/>
			</variable>
			
		<variable label="Chuff type" item="Sound Option 4" CV="55" default="0"
				tooltip="CV55, 4 chuff versions, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Chuff volume" CV="56" item="Sound Setting 4" default="3"
				tooltip="CV56, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Brake Squeal Volume" CV="57" item="Sound Setting 5" default="1"
				tooltip="CV57, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Air Release Volume" item="Sound Setting 6" CV="58" default="3"
				tooltip="CV58, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Blower Hiss Volume" CV="59" item="Sound Setting 7" default="3"
				tooltip="CV59, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Fire box door volume" CV="60" item="Sound Setting 8" default="3"
				tooltip="CV60, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Injector Volume" CV="61" item="Sound Setting 9" default="3"
				tooltip="CV61, range 0-3"				
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Coupling Volume" CV="62" item="Sound Setting 10" default="3"
				tooltip="CV62, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Air Pump Volume" CV="63" item="Sound Setting 11" default="0"
				tooltip="CV63, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="User ID #1" CV="105" item="User Id #1" default="0"
				tooltip="CV105, range 0-255, code your own ID">>
			<decVal max="255"/>
			</variable>
			
		<variable label="User ID #2" CV="106" item="User Id #2" default="0"
				tooltip="CV106, range 0-255, code your own ID">>
			<decVal max="255"/>
			</variable>

		<variable label="Conductor volume" CV="112" item="Sound Setting 12" default="3"
				tooltip="CV112, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Air brake squeal enable/disable" item="Sound Option 5" CV="115" default="1"
				tooltip="CV115,  range 0(off) or 1(enable)(Default)">
		<enumVal>
		         <enumChoice choice="Disable"/>
		         <enumChoice choice="Enable"/>
		         </enumVal>
		</variable>

		<variable label="Shoveling volume" CV="116" item="Sound Setting 13" default="3"
				tooltip="CV116, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
		
		<variable label="Air Pump Type" CV="117" item="Sound Option 6" default="0"
				tooltip="CV114, range 0-2, default 0"
				comment="Range 0-2">
			<decVal max="2"/>
			</variable>
		
		<variable label="Accessory Lighting Effects (Not Headlight)" item="Global lighting option 1" CV="118" default="0">
  			<enumVal>
				<enumChoice choice="Gyro Light" value="0"/>
				<enumChoice choice="Mars Light" value="1"/>
				<enumChoice choice="Strobe Light" value="2"/>
				<enumChoice choice="Steady On/Off (Used for interior cab light)" value="3"/>
				</enumVal>
			</variable>
						
		<variable label="Air Hose Fire Volume" CV="119" item="Sound Setting 14" default="3"
				tooltip="CV119, range 0-3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="Chuff Rate" CV="120" item="Sound Setting 15" default="12"
				tooltip="CV120, range 0-30, default 12"
				comment="Range 0-30">
			<decVal max="30"/>
			</variable>
								
		<variable label="Chuff Start Point" CV="121" item="Sound Setting 16" default="3"
				tooltip="CV121, range 0-7"
				comment="Range 0-7">
			<decVal max="7"/>
			</variable>
								
		<variable label="Double chuff enable" CV="122" item="Sound Option 7" default="1"
				tooltip="CV122,  range 0(single) or 1(double)(Default)"
				comment="MRC docs, use for articulated locomotives">
			<enumVal>
		         <enumChoice choice="Disable"/>
		         <enumChoice choice="Enable"/>
		         </enumVal>
			</variable>
							
		<variable label="Load Control emf" CV="123" item="EMF Static Config" default="0"
				tooltip="CV123,  range 0(off)(Default) or 1(enable)">>
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="On"/>
		         </enumVal>
			</variable>
						
		<variable label="Select Speed Curve" CV="124" item="Speed Table Selection"  default="0"
			tooltip="CV124, Speed Curve Select range - Linear(default), Slow or Fast">
		     <enumVal>
		         <enumChoice choice="Linear"/>
		         <enumChoice choice="Slow increase at slow speed"/>
		         <enumChoice choice="Fast increase at slow speed"/>
		         </enumVal>
			</variable>
				
</variables>

<resets>
        <factReset label="Reset All CVs" CV="125" default="1"/>
</resets>

</decoder>

<pane name="MRC">
        <column>
                <display item="Functions Respond To Address" />
        </column>
</pane>

</decoder-config>




 	  	 
