001package jmri.jmrix.can.adapters.lawicell.canusb.serialdriver;
002
003/**
004 * Implements SerialPortAdapter for the CAN-USB.
005 * <p>
006 * This connects a CAN-USB CAN adapter via a serial com port. Normally
007 * controlled by the SerialDriverFrame class.
008 *
009 * @author Andrew Crosland Copyright (C) 2008
010 * @author Bob Jacobsen Copyright (C) 2008, 2010
011 */
012public class CanUsbDriverAdapter extends jmri.jmrix.can.adapters.lawicell.SerialDriverAdapter {
013
014    /**
015     * {@inheritDoc}
016     */
017    @Override
018    public String[] validBaudRates() {
019        return new String[]{Bundle.getMessage("Baud57600"),
020                Bundle.getMessage("Baud115200"), Bundle.getMessage("Baud230400"),
021                Bundle.getMessage("Baud250000"), Bundle.getMessage("Baud333333"),
022                Bundle.getMessage("Baud460800"), Bundle.getMessage("Baud500000")};
023    }
024
025    /**
026     * {@inheritDoc}
027     */
028    @Override
029    public int[] validBaudNumbers() {
030        return new int[]{57600, 115200, 230400, 250000, 333333, 460800, 500000};
031    }
032
033}