jmri.jmrix.can.adapters.lawicell.canusb.serialdriver
Class CanUsbDriverAdapter

java.lang.Object
  extended by jmri.jmrix.AbstractPortController
      extended by jmri.jmrix.AbstractSerialPortController
          extended by jmri.jmrix.can.adapters.lawicell.PortController
              extended by jmri.jmrix.can.adapters.lawicell.SerialDriverAdapter
                  extended by jmri.jmrix.can.adapters.lawicell.canusb.serialdriver.CanUsbDriverAdapter
All Implemented Interfaces:
PortAdapter, SerialPortAdapter

public class CanUsbDriverAdapter
extends SerialDriverAdapter
implements SerialPortAdapter

Implements SerialPortAdapter for the CAN-USB.

This connects a CAN-USB CAN adapter via a serial com port. Normally controlled by the SerialDriverFrame class.

Author:
Andrew Crosland Copyright (C) 2008, Bob Jacobsen Copyright (C) 2008, 2010

Field Summary
 
Fields inherited from class jmri.jmrix.can.adapters.lawicell.SerialDriverAdapter
validSpeeds, validSpeedValues
 
Fields inherited from class jmri.jmrix.AbstractSerialPortController
mBaudRate, mPort
 
Fields inherited from class jmri.jmrix.AbstractPortController
mDisabled, mManufacturer, mOpt1, mOpt2
 
Constructor Summary
CanUsbDriverAdapter()
           
 
Method Summary
static CanUsbDriverAdapter instance()
           
 String[] validBaudRates()
          Get an array of valid baud rates.
 int[] validBaudValues()
          And the corresponding values.
 
Methods inherited from class jmri.jmrix.can.adapters.lawicell.SerialDriverAdapter
configure, configureOption1, getCurrentOption1Setting, getInputStream, getManufacturer, getOutputStream, openPort, option1Name, setManufacturer, status, validOption1
 
Methods inherited from class jmri.jmrix.AbstractSerialPortController
configureBaudRate, currentBaudNumber, dispose, getCurrentBaudRate, getCurrentPortName, getPortNames, getSystemConnectionMemo, handlePortBusy, handlePortNotFound, setDisabled, setPort, validBaudNumber
 
Methods inherited from class jmri.jmrix.AbstractPortController
configureOption2, getCurrentOption2Setting, getDisabled, option2Name, validOption2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.jmrix.SerialPortAdapter
configure, configureBaudRate, configureOption1, configureOption2, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getManufacturer, getPortNames, handlePortBusy, openPort, option1Name, option2Name, setManufacturer, setPort, status, validOption1, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
dispose, getDisabled, getInputStream, getOutputStream, getSystemConnectionMemo, setDisabled
 

Constructor Detail

CanUsbDriverAdapter

public CanUsbDriverAdapter()
Method Detail

validBaudRates

public String[] validBaudRates()
Get an array of valid baud rates.

Specified by:
validBaudRates in interface SerialPortAdapter
Overrides:
validBaudRates in class SerialDriverAdapter

validBaudValues

public int[] validBaudValues()
And the corresponding values.

Overrides:
validBaudValues in class SerialDriverAdapter

instance

public static CanUsbDriverAdapter instance()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads