All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.io.ADR2200

java.lang.Object
   |
   +----pinball.io.ADR2200

public class ADR2200
extends Object
Controls for the ADR2200 data IO device.


Constructor Index

 o ADR2200(String)
Create the IO device at the port specified.
 o ADR2200(String, int)
Create the IO device for the port and board.

Method Index

 o flushInputData()
Clear any data waiting to be read.
 o flushOutputData()
Clear any commands waiting to go out.
 o main(String[])
Used to test the device.
 o ReadInput(int)
Read the output lines.
 o requestRead()
Request a read from the output lines.
 o resetOutputLine(int)
Clear the output lines on the device.
 o setOutputLine(int)
Set the output lines on the device.
 o setStates(int)
Set the output lines on the device.
 o setStates(String)
Set the output lines on the device.
 o turnOff()
Clean out the data, so that all the devices are turned off.
 o value()
The value of the relays

Constructors

 o ADR2200
 public ADR2200(String port)
Create the IO device at the port specified.

Parameters:
port - serial port location.
 o ADR2200
 public ADR2200(String port,
                int board)
Create the IO device for the port and board.

Parameters:
port - serial port location.
board - which board if more than one board is daisy chained.

Methods

 o value
 public synchronized int value()
The value of the relays

Returns:
the relay values.
 o resetOutputLine
 public synchronized void resetOutputLine(int relay) throws IOException
Clear the output lines on the device.

Parameters:
relay - the relay to reset.
 o setOutputLine
 public synchronized void setOutputLine(int relay) throws IOException
Set the output lines on the device.

Parameters:
relay - the relay to set.
 o setStates
 public synchronized void setStates(int relays) throws IOException
Set the output lines on the device.

Parameters:
relays - the states of the relays.
 o setStates
 public synchronized void setStates(String relays) throws IOException
Set the output lines on the device.

Parameters:
relays - the states of the relays.
 o ReadInput
 public synchronized boolean ReadInput(int input) throws IOException
Read the output lines.

Parameters:
input - the line to check if it's on.
Returns:
the status of the line.
 o requestRead
 public synchronized void requestRead() throws IOException
Request a read from the output lines.

 o turnOff
 public synchronized void turnOff()
Clean out the data, so that all the devices are turned off.

 o main
 public static void main(String args[])
Used to test the device.

 o flushInputData
 public synchronized void flushInputData()
Clear any data waiting to be read.

 o flushOutputData
 public synchronized void flushOutputData()
Clear any commands waiting to go out.


All Packages  Class Hierarchy  This Package  Previous  Next  Index