serial
Class SerialMux
java.lang.Object
|
+--serial.SerialMux
- public class SerialMux
- extends Object
The SerialMux class is designed to control the Multiplexer,
which recieves commands through a serial port and relays and duplicates
video signals.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SerialMux
public SerialMux()
open
public void open(String in_device)
throws IOException,
javax.comm.PortInUseException,
javax.comm.NoSuchPortException
- Connects this object with a device.
- Parameters:
in_device
- the name of the serial device to speak to. (e.g. "/dev/ttyre")
open
public void open(String in_device,
InputStream fdata,
InputStream fcfg)
throws IOException,
javax.comm.NoSuchPortException,
javax.comm.PortInUseException
- Connects this object with a device.
- Parameters:
in_device
- the name of the serial device to speak to. (e.g. "/dev/ttyre")
inputs
public Enumeration inputs()
outputs
public Enumeration outputs()
inputName
public String inputName(int num)
outputName
public String outputName(int num)
nameInput
public void nameInput(int num,
String name)
nameOutput
public void nameOutput(int num,
String name)
findInput
public int findInput(String name)
throws NoSuchElementException
findOutput
public int findOutput(String name)
throws NoSuchElementException
loadData
public void loadData(InputStream data)
throws IOException
loadCfg
public void loadCfg(InputStream cfg)
throws IOException
connect
public void connect(String i,
String o)
throws NoSuchElementException,
IOException
disconnect
public void disconnect(String o)
throws NoSuchElementException,
IOException
inputStatus
public String[] inputStatus(String inp)
throws NoSuchElementException,
IOException
outputStatus
public String[] outputStatus(String outp)
throws NoSuchElementException,
IOException
connect
public void connect(int i,
int o)
throws IOException
close
public void close()
throws IOException
- Closes the port.
main
public static void main(String[] args)
- Used for standalone debugging and hardware tests.