001package jmri.jmrix.can.adapters.gridconnect.pilcc.serialdriver;
002
003import jmri.jmrix.can.adapters.gridconnect.GcSerialDriverAdapter;
004
005/**
006 * Implements SerialPortAdapter for PI-LCC GridConnect adapter.
007 * <p>
008 * This connects a Raspberry Pi PI_LCC via a serial port. Normally
009 * controlled by the SerialDriverFrame class.
010 *
011 * @author Andrew Crosland Copyright (C) 2023
012 */
013public class PiLccSerialDriverAdapter extends GcSerialDriverAdapter {
014
015    public PiLccSerialDriverAdapter() {
016        super("M", FlowControl.RTSCTS); // enable RTS/CTS flow control
017    }
018
019    /**
020     * {@inheritDoc}
021     */
022    @Override
023    public String[] validBaudRates() {
024        return new String[]{Bundle.getMessage("Baud460800")};
025    }
026
027    /**
028     * And the corresponding values.
029     */
030    @Override
031    public int[] validBaudNumbers() {
032        return new int[]{460800};
033    }
034
035    @Override
036    public int defaultBaudIndex() {
037        return 0;
038    }
039
040}