All Packages Class Hierarchy This Package Previous Next Index
Class pinball.io.RS232SDD16
java.lang.Object
|
+----pinball.io.RS232SDD16
- public class RS232SDD16
- extends Object
Controls for the RS232SDD16 data IO device. Currently the LSB is the output
part of the I/O unit sending data to the pinball machine. The MSB is used
to read the data from the I/O device.
-
ALL
- A bitset with all the bits on.
-
WORDSIZE
- Size of word for the device.
-
ZERO
- A zero bitset.
-
RS232SDD16(String)
- Create the IO device at the port specified.
-
defineLines(byte, byte)
- Define the IO lines in the system.
-
flushInputData()
- Clear any data waiting to be read.
-
flushOutputData()
- Clear any commands waiting to go out.
-
main(String[])
- Used to test the device.
-
readConfiguration()
- Read the configuration of the device.
-
readOutputLines()
-
Read the output lines.
-
requestRead()
- Request a read from the output lines.
-
resetOutputLines(BitSet, BitSet)
- Clear the output lines on the device.
-
setOutputLines(BitSet, BitSet)
- Set the output lines on the device.
-
setPowerupStates(byte, byte)
- Define the IO lines inital power on state.
-
turnOff()
- Clean out the data, so that all the devices are turned off.
WORDSIZE
public final int WORDSIZE
- Size of word for the device.
ZERO
public BitSet ZERO
- A zero bitset.
ALL
public BitSet ALL
- A bitset with all the bits on.
RS232SDD16
public RS232SDD16(String port)
- Create the IO device at the port specified.
param port serial port location.
resetOutputLines
public synchronized void resetOutputLines(BitSet msb,
BitSet lsb) throws IOException
- Clear the output lines on the device.
param msb the most significant bit.
param lsb the least significant bit.
setOutputLines
public synchronized void setOutputLines(BitSet msb,
BitSet lsb) throws IOException
- Set the output lines on the device.
param msb the most significant bit.
param lsb the least significant bit.
readOutputLines
public synchronized byte[] readOutputLines() throws IOException
- Read the output lines.
return the bytes reads in from the device.
requestRead
public synchronized void requestRead() throws IOException
- Request a read from the output lines.
defineLines
public synchronized void defineLines(byte msb,
byte lsb) throws IOException
- Define the IO lines in the system.
1 mean output, 0 means input.
param msb the most significant bit.
param lsb the least significant bit.
setPowerupStates
public synchronized void setPowerupStates(byte msb,
byte lsb) throws IOException
- Define the IO lines inital power on state.
param msb the most significant bit.
param lsb the least significant bit.
readConfiguration
public synchronized byte[] readConfiguration() throws IOException
- Read the configuration of the device.
return The bytes in the configuration. IO Definitions followed by Powerup states.
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