View Javadoc

1   package org.lsst.ccs.drivers.ftdi;
2   
3   /**
4    ***************************************************************************
5    **
6    **  Interface for the FTDI access routines
7    **
8    **  @author Owen Saxton
9    **
10   ***************************************************************************
11   */
12  public interface FtdiInterface {
13  
14      public void open(int index, String serial) throws FtdiException;
15  
16      public void open(String node, int index, String serial)
17          throws FtdiException;
18  
19      public void close() throws FtdiException;
20  
21      public void setBaudrate(int baudrate) throws FtdiException;
22  
23      public void setDataCharacteristics(int wordLength, int stopBits, int parity)
24          throws FtdiException;
25  
26      public void setTimeouts(int rcveTimeout, int xmitTimeout)
27          throws FtdiException;
28  
29      public int read(byte[] data) throws FtdiException;
30  
31      public int read(byte[] data, int offset, int count) throws FtdiException;
32  
33      public int write(byte[] data) throws FtdiException;
34  
35      public int write(byte[] data, int offset, int count) throws FtdiException;
36  
37      public int getQueueStatus() throws FtdiException;
38  
39      public int getModemStatus() throws FtdiException;
40  
41  }