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

<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!-- $Id: MRC_Challenger.xml,v 1.1 2007/12/25 04:59:30 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="Bob Jacobsen"
			version="1" lastUpdated="20071221" />
<!-- made from the MRC_1645 file -->

<decoder>
	<family name="Athearn Genesis Challenger" mfg="MRC"
			lowVersionID="32" highVersionID="32">
		<model model="Athearn Genesis Challenger" numOuts="2" numFns="19"
		            maxTotalCurrent="1.5A" extFnsNmraF13="yes">
                </model>
 	</family>

	<programming direct="yes" paged="yes"
	                     register="yes" ops="yes"/>
					<!-- Note Mfg. recognizes CV read back is not 100% correct -->

	<variables>

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

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

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

		<variable label="Deceleration" CV="4" item="Decel" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
		</variable>
			
		<variable label="Top voltage" CV="5" item="Vhigh" default="32"
				comment="Range 0-32">
			<decVal max="32"/>
		</variable>

		<variable label="Manufacturer version number" CV="7" readOnly="yes"
				item="Decoder Version" default="32">
			<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="Advanced 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="0"
				item="Analog (DC) Operation">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
				</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 min/max" CV="52" item="Sound Option 1" default="0"
				comment="Range 0 or 1">
			<enumVal>
				<enumChoice choice="Min"/>
				<enumChoice choice="Max"/>
			</enumVal>
		</variable>
			
		<variable label="Chuff Rate" CV="64" item="Sound Setting 1" default="5"
				comment="Range 0-10">
			<decVal max="10"/>
		</variable>
						
		<variable label="User ID #1" CV="105" item="User Id #1" default="0"
				comment="Range 0-255">
			<decVal max="255"/>
		</variable>
			
		<variable label="User ID #2" CV="106" item="User Id #2" default="0"
				comment="Range 0-255">
			<decVal max="255"/>
		</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>



