<?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_sound1627.xml,v 1.1 2008/05/07 05:21:20 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.0" lastUpdated="20050214" />

<decoder>
	<family name="Sound Decoders" mfg="MRC"
			lowVersionID="31" highVersionID="31">
		<model model="Synch Steam Sound 1627" numOuts="2" 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="31">
			<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="Sound Volume" CV="52" item="Sound Setting 1" default="31"
				comment="Range 0-31">
			<decVal max="31"/>
			</variable>	
			
		<variable label="Chuff Rate" CV="64" item="Sound Setting 2" default="15"
				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="Whistle Type" item="Sound Option 1" CV="50" default="0">
  			<enumVal>
				<enumChoice choice="American Whistle #1" value="0"/>
				<enumChoice choice="American Whistle #2" value="1"/>
				<enumChoice choice="European Whistle" value="2"/>
			</enumVal>
			</variable>
			
		<variable label="Air Pump Type (0-2)" CV="51" item="Sound Option 2" default="0"
				comment="Range 0-2">
			<decVal max="2"/>
			</variable>
					
</variables>

</decoder>

</decoder-config>



