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.
-
ADR2200(String)
- Create the IO device at the port specified.
-
ADR2200(String, int)
- Create the IO device for the port and board.
-
flushInputData()
- Clear any data waiting to be read.
-
flushOutputData()
- Clear any commands waiting to go out.
-
main(String[])
- Used to test the device.
-
ReadInput(int)
-
Read the output lines.
-
requestRead()
- Request a read from the output lines.
-
resetOutputLine(int)
- Clear the output lines on the device.
-
setOutputLine(int)
- Set the output lines on the device.
-
setStates(int)
- Set the output lines on the device.
-
setStates(String)
- Set the output lines on the device.
-
turnOff()
- Clean out the data, so that all the devices are turned off.
-
value()
- The value of the relays
ADR2200
public ADR2200(String port)
- Create the IO device at the port specified.
- Parameters:
- port - serial port location.
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.
value
public synchronized int value()
- The value of the relays
- Returns:
- the relay values.
resetOutputLine
public synchronized void resetOutputLine(int relay) throws IOException
- Clear the output lines on the device.
- Parameters:
- relay - the relay to reset.
setOutputLine
public synchronized void setOutputLine(int relay) throws IOException
- Set the output lines on the device.
- Parameters:
- relay - the relay to set.
setStates
public synchronized void setStates(int relays) throws IOException
- Set the output lines on the device.
- Parameters:
- relays - the states of the relays.
setStates
public synchronized void setStates(String relays) throws IOException
- Set the output lines on the device.
- Parameters:
- relays - the states of the relays.
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.
requestRead
public synchronized void requestRead() throws IOException
- Request a read from the output lines.
turnOff
public synchronized void turnOff()
- Clean out the data, so that all the devices are turned off.
main
public static void main(String args[])
- Used to test the device.
flushInputData
public synchronized void flushInputData()
- Clear any data waiting to be read.
flushOutputData
public synchronized void flushOutputData()
- Clear any commands waiting to go out.
All Packages Class Hierarchy This Package Previous Next Index