<?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 All rights reserved -->
<!-- $Id: MRC_sound1626.xml,v 1.1 2008/05/07 05:20:24 billchown 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="Rick Beaber rbeaber@gmail.com"
			version="1.1" lastUpdated="20050208" />

<decoder>
	<family name="Sound Decoders" mfg="MRC"
			lowVersionID="1" highVersionID="1">
		<model model="Synch Diesel Sound 1626" numOuts="4" numFns="12" />
	</family>

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

	<variables>

		<variable label="Primary Address" CV="1" comment="Short address"
						item="Short Address"  default="3">
			<shortAddressVal/></variable>

		<variable label="Start Volts" CV="2" item="Vstart" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Acceleration momentum" CV="3" item="Accel" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Brake momentum" CV="4" item="Decel" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>
			
		<variable label="Max Voltage" CV="5" item="Vhigh" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Version ID" CV="7" readOnly="yes"
				item="Decoder Version" default="1">
			<decVal/>
			</variable>

		<variable label="Manufacturer ID" CV="8" readOnly="yes"
				item="Manufacturer" default="143">
			<decVal/>
			</variable>

		<variable label="Long Address" CV="17" item="Extended Address"
		        comment="4 digit address (Range 0001-9999)">
			<longAddressVal/>
			</variable>

		<variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address">
			<decVal/>
			</variable>

		<variable label="Consist Direction" CV="19" mask="VXXXXXXX">
			<enumVal>
				<enumChoice choice="Normal"></enumChoice>
				<enumChoice choice="Reversed"></enumChoice>
				</enumVal></variable>

		<variable label="Normal direction of motion" CV="29"
				mask="XXXXXXXV"
		        item="Locomotive Direction">
			<enumVal>
				<enumChoice choice="Forward"/>
				<enumChoice choice="Reverse"/>
				</enumVal>
			</variable>

		<variable label="Speed Steps" CV="29" mask="XXXXXXVX"
				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="1"
				item="Analog (DC) Operation">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
				</enumVal>
			</variable>

		<variable label="Use Speed Table" CV="29" mask="XXXVXXXX"
				item="Speed Table Definition">
			<enumVal>
				<enumChoice choice="Don't use Speed Table"/>
				<enumChoice choice="Use Speed Table"/>
				</enumVal>
			</variable>

		<variable label="Addressing Mode" CV="29" mask="XXVXXXXX"
				item="Address Format">
			<enumVal>
				<enumChoice choice="2 digit addressing"/>
				<enumChoice choice="4 digit addressing"/>
				</enumVal>
			</variable>
			

		<variable label="Horn Volume" CV="52" item="Sound Setting 1" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>	
			
		<variable label="Bell Volume" CV="53" item="Sound Setting 2" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Diesel Volume" CV="54" item="Sound Setting 3" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Brake Volume" CV="55" item="Sound Setting 4" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Dynamic Brake Volume" item="Sound Setting 5" CV="56" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Brake Release Volume" item="Sound Setting 6" CV="57" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>

		<variable label="Air Pump Volume" CV="58" item="Sound Setting 7" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Coupling Volume" CV="59" item="Sound Setting 8" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Conductor Volume" CV="60" item="Sound Setting A" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Reverser Volume" CV="61" item="Sound Setting B" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Exhaust Volume" CV="62" item="Sound Setting C" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Sand Release Volume" CV="63" item="Sound Setting D" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Air Release Volume" CV="64" item="Sound Setting E" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>
			
		<variable label="Speed Table" CV="67">
			<speedTableVal/>
			</variable>
			
		<variable label="User ID #1" CV="105" item="User Id #1" default="0">
			<decVal max="255"/>
			</variable>
			
		<variable label="User ID #2" CV="106" item="User Id #2" default="0">
			<decVal max="255"/>
			</variable>
		
		<variable label="Horn Type" CV="50" item="Sound Option 1" default="1"
				comment="Range 0-2">
			<decVal max="2"/>
			</variable>
			
		<variable label="Bell Type" CV="51" item="Sound Option 2" default="1"
				comment="Range 0-2">
			<decVal max="2"/>
			</variable>
					
		<variable label="Light Effects" item="Global lighting option 3" CV="112" default="0">
  			<enumVal>
				<enumChoice choice="Headlights Normal - Pad#1 Ditch - Pad#2 Ditch" value="0"/>
				<enumChoice choice="Headlights Normal - Pad#1 Mars  - Pad#2 Single Strobe" value="1"/>
				<enumChoice choice="Headlights Normal - Pad#1 Mars  - Pad#2 Dual Strobe" value="2"/>
				<enumChoice choice="Headlights Rule 17 - Pad#1 Ditch - Pad#2 Ditch" value="16"/>
				<enumChoice choice="Headlights Rule 17 - Pad#1 Mars  - Pad#2 Single Strobe" value="17"/>
				<enumChoice choice="Headlights Rule 17 - Pad#1 Mars  - Pad#2 Dual Strobe" value="18"/>
				</enumVal>
			</variable>
			
		<variable label="Ditch/Mars Light Rate" item="Global lighting option 1" CV="113" default="10"
				comment="Range 0-48">
			<decVal max="48"/>
			</variable>
			
		<variable label="Strobe Light Rate" item="Global lighting option 2" CV="114" default="10"
				comment="Range 0-48">
			<decVal max="48"/>
			</variable>
			
		<variable label="Brake squeal" item="Sound Option 3" CV="115">
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="On"/>
		         </enumVal>
			</variable>
		
</variables>

</decoder>

<pane name="Sound Levels-2">
		<column>
			<row>
				<display item="Sound Setting A" layout="above" label=""/>
				<label label=" "/>
				<display item="Sound Setting A" layout="above" format="hslider"/>
			</row>
			<label label=" "/>
			<row>
				<display item="Sound Setting B" layout="above" label=""/>
				<label label=" "/>
				<display item="Sound Setting B" layout="above" format="hslider"/>
			</row>
			<label label=" "/>
			<row>
				<display item="Sound Setting C" layout="above" label=""/>
				<label label=" "/>
				<display item="Sound Setting C" layout="above" format="hslider"/>
			</row>
			<label label=" "/>
			<row>
				<display item="Sound Setting D" layout="above" label=""/>
				<label label=" "/>
				<display item="Sound Setting D" layout="above" format="hslider"/>
			</row>
				<label label=" "/>
			<row>
				<display item="Sound Setting E" layout="above" label=""/>
				<label label=" "/>
				<display item="Sound Setting E" layout="above" format="hslider"/>
			</row>
							
		</column>
	</pane>


</decoder-config>



