<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003, 2004, 2007 All rights reserved -->
<!-- $Id: CVProducts_AD4LC.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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.xsd">
  <version author="jake@physics.berkeley.edu" version="4" lastUpdated="20030525"/>
<!-- Created from version 4 of the CVProducts_AD4 file -->
  <decoder>
    <family name="Enhanced AD4" mfg="CVP Products" lowVersionID="6" highVersionID="6" type="stationary">
      <model model="AD4LC"/>
      <model model="AD4MC"/>
      <model model="AD4HC"/>
    </family>
    <programming direct="byteOnly" paged="no" register="no" ops="no"/>
    <variables>
      <variable label="Card Address" item="Short Address" CV="1" mask="XXVVVVVV">
        <splitVal highCV="9"/>
        <label>Card Address</label>
      </variable>
      <variable label="Turnout_Address_Low" CV="1" mask="XXVVVVVV">
        <splitVal highCV="9" factor="4" offset="-3"/>
        <label>Turnout_Address_Low</label>
      </variable>
      <variable label="Turnout_Address_High" item="Short Address" CV="1" mask="XXVVVVVV">
        <splitVal highCV="9" factor="4"/>
        <label>Turnout_Address_High</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer" default="135">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Manufacturer Version No" CV="7" readOnly="yes" item="Decoder Version" default="62">
        <decVal/>
        <label>Manufacturer Version No</label>
      </variable>
      <variable label="Number Inputs" CV="2" mask="VVVVVVVV">
        <enumVal>
          <enumChoice choice="4 inputs" value="0">
            <choice>4 inputs</choice>
          </enumChoice>
          <enumChoice choice="8 inputs" value="255">
            <choice>8 inputs</choice>
          </enumChoice>
        </enumVal>
        <label>Number Inputs</label>
      </variable>
      <variable label="Local_Input_1" CV="2" mask="XXXXXXXV" default="1">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Local_Input_1</label>
      </variable>
      <variable label="Local_Input_2" CV="2" mask="XXXXXVXX" default="1">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Local_Input_2</label>
      </variable>
      <variable label="Local_Input_3" CV="2" mask="XXXVXXXX" default="1">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Local_Input_3</label>
      </variable>
      <variable label="Local_Input_4" CV="2" mask="XVXXXXXX" default="1">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Local_Input_4</label>
      </variable>
      <variable label="Output_A_Constant_Mode" CV="3" mask="VVVVVVVV" default="0">
        <enumVal>
          <enumChoice choice="Constant output">
            <choice>Constant output</choice>
          </enumChoice>
        </enumVal>
        <label>Output_A_Constant_Mode</label>
      </variable>
      <variable label="Output_A_Mode" CV="3" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Single pulse">
            <choice>Single pulse</choice>
          </enumChoice>
          <enumChoice choice="Flashing">
            <choice>Flashing</choice>
          </enumChoice>
        </enumVal>
        <label>Output_A_Mode</label>
      </variable>
      <variable label="Output_A_On_Time" CV="3" default="1" mask="XVVVVVVV">
        <decVal/>
        <label>Output_A_On_Time</label>
      </variable>
      <variable label="Output_B_Constant_Mode" CV="4" mask="VVVVVVVV" default="0">
        <enumVal>
          <enumChoice choice="Constant output">
            <choice>Constant output</choice>
          </enumChoice>
        </enumVal>
        <label>Output_B_Constant_Mode</label>
      </variable>
      <variable label="Output_B_Mode" CV="4" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Single pulse">
            <choice>Single pulse</choice>
          </enumChoice>
          <enumChoice choice="Flashing">
            <choice>Flashing</choice>
          </enumChoice>
        </enumVal>
        <label>Output_B_Mode</label>
      </variable>
      <variable label="Output_B_On_Time" CV="4" default="1" mask="XVVVVVVV">
        <decVal/>
        <label>Output_B_On_Time</label>
      </variable>
      <variable label="Output_C_Constant_Mode" CV="5" mask="VVVVVVVV" default="0">
        <enumVal>
          <enumChoice choice="Constant output">
            <choice>Constant output</choice>
          </enumChoice>
        </enumVal>
        <label>Output_C_Constant_Mode</label>
      </variable>
      <variable label="Output_C_Mode" CV="5" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Single pulse">
            <choice>Single pulse</choice>
          </enumChoice>
          <enumChoice choice="Flashing">
            <choice>Flashing</choice>
          </enumChoice>
        </enumVal>
        <label>Output_C_Mode</label>
      </variable>
      <variable label="Output_C_On_Time" CV="5" default="1" mask="XVVVVVVV">
        <decVal/>
        <label>Output_C_On_Time</label>
      </variable>
      <variable label="Output_D_Constant_Mode" CV="6" mask="VVVVVVVV" default="0">
        <enumVal>
          <enumChoice choice="Constant output">
            <choice>Constant output</choice>
          </enumChoice>
        </enumVal>
        <label>Output_D_Constant_Mode</label>
      </variable>
      <variable label="Output_D_Mode" CV="6" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Single pulse">
            <choice>Single pulse</choice>
          </enumChoice>
          <enumChoice choice="Flashing">
            <choice>Flashing</choice>
          </enumChoice>
        </enumVal>
        <label>Output_D_Mode</label>
      </variable>
      <variable label="Output_D_On_Time" CV="6" default="1" mask="XVVVVVVV">
        <decVal/>
        <label>Output_D_On_Time</label>
      </variable>
    </variables>
  </decoder>
  <pane name="AD4">
    <column>
      <display item="Card Address" label="AD4 Module Number: ">
        <label>AD4 Module Number: </label>
      </display>
      <display item="Turnout_Address_Low" label="Turnout Addresses: ">
        <label>Turnout Addresses: </label>
      </display>
      <display item="Turnout_Address_High" label="through: ">
        <label>through: </label>
      </display>
      <label label=" ">
        <label> </label>
      </label>
      <separator/>
      <row>
        <separator/>
        <column>
          <label label="Output Port A">
            <label>Output Port A</label>
          </label>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Output_A_Constant_Mode" format="offradiobutton" label="">
            <label/>
          </display>
          <display item="Output_A_Mode" label="">
            <label/>
          </display>
          <display item="Output_A_On_Time" label="On Time (1/10th Sec) ">
            <label>On Time (1/10th Sec) </label>
          </display>
          <label label=" ">
            <label> </label>
          </label>
          <separator/>
          <label label="Output Port C">
            <label>Output Port C</label>
          </label>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Output_C_Constant_Mode" format="offradiobutton" label="">
            <label/>
          </display>
          <display item="Output_C_Mode" label="">
            <label/>
          </display>
          <display item="Output_C_On_Time" label="On Time (1/10th Sec) ">
            <label>On Time (1/10th Sec) </label>
          </display>
          <label label=" ">
            <label> </label>
          </label>
        </column>
        <separator/>
        <column>
          <label label="Output Port B">
            <label>Output Port B</label>
          </label>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Output_B_Constant_Mode" format="offradiobutton" label="">
            <label/>
          </display>
          <display item="Output_B_Mode" label="">
            <label/>
          </display>
          <display item="Output_B_On_Time" label="On Time (1/10th Sec) ">
            <label>On Time (1/10th Sec) </label>
          </display>
          <label label=" ">
            <label> </label>
          </label>
          <separator/>
          <label label="Output Port D">
            <label>Output Port D</label>
          </label>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Output_D_Constant_Mode" format="offradiobutton" label="">
            <label/>
          </display>
          <display item="Output_D_Mode" label="">
            <label/>
          </display>
          <display item="Output_D_On_Time" label="On Time (1/10th Sec) ">
            <label>On Time (1/10th Sec) </label>
          </display>
          <label label=" ">
            <label> </label>
          </label>
        </column>
        <separator/>
        <column>
          <label label="   Local Input Line Usage  ">
            <label>   Local Input Line Usage  </label>
          </label>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Local_Input_1" format="checkbox" label="      Input 1 Enabled ">
            <label>      Input 1 Enabled </label>
          </display>
          <display item="Local_Input_2" format="checkbox" label="      Input 2 Enabled ">
            <label>      Input 2 Enabled </label>
          </display>
          <display item="Local_Input_3" format="checkbox" label="      Input 3 Enabled ">
            <label>      Input 3 Enabled </label>
          </display>
          <display item="Local_Input_4" format="checkbox" label="      Input 4 Enabled ">
            <label>      Input 4 Enabled </label>
          </display>
          <display item="Number Inputs" format="checkbox" label="      8 input ports   ">
            <label>      8 input ports   </label>
          </display>
        </column>
        <separator/>
      </row>
      <separator/>
      <label label=" ">
        <label> </label>
      </label>
      <display item="Manufacturer ID" label="Manufacturer ID: ">
        <label>Manufacturer ID: </label>
      </display>
      <display item="Manufacturer Version No" label="Manufacturer Version Number: ">
        <label>Manufacturer Version Number: </label>
      </display>
    </column>
    <name>AD4</name>
  </pane>
</decoder-config>

