|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.devices.bbElec.BBElec
org.mbari.siam.devices.bbElec.BB232SDD16
public class BB232SDD16
Class to encapsulate operations to 232SDD16 RS-232 Digital I/O module from B&B Electronics
| Field Summary | |
|---|---|
protected int |
_outputState
|
protected static byte[] |
DEFINE_IO
|
protected static byte[] |
READ_CONFIG
|
protected static byte[] |
READ_INPUT
|
protected static byte[] |
SET_OUTPUT
|
protected static byte[] |
SET_PWRUP
|
| Fields inherited from class org.mbari.siam.devices.bbElec.BBElec |
|---|
_in, _log4j, _out, _serPort, _tmout, DFLT_TMOUT |
| Constructor Summary | |
|---|---|
BB232SDD16(gnu.io.SerialPort serport)
Constructor |
|
BB232SDD16(gnu.io.SerialPort serport,
long tmout)
Constructor |
|
| Method Summary | |
|---|---|
void |
defineIO(int outputs)
Define I/O lines |
int |
readConfiguration()
Read Configuration |
int |
readInputs()
Read Input Bits |
void |
setOutput(int newState)
Set Output lines |
void |
setOutputBits(int newBits,
int bitMask)
Set a subset of output bits |
void |
setPwrupState(int pwrupState)
Set Power-up state |
| Methods inherited from class org.mbari.siam.devices.bbElec.BBElec |
|---|
cmdWith16bitReply, cmdWith16bitReply, cmdWith32bitReply, cmdWith32bitReply, inFlush, readResponse, readResponse, readResponse, send16bitCmd, sendCmd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static byte[] SET_OUTPUT
protected static byte[] READ_INPUT
protected static byte[] READ_CONFIG
protected static byte[] DEFINE_IO
protected static byte[] SET_PWRUP
protected int _outputState
| Constructor Detail |
|---|
public BB232SDD16(gnu.io.SerialPort serport,
long tmout)
throws java.io.IOException
serport - Serial port to use for devicetmout - Read timeout in ms
java.io.IOException
public BB232SDD16(gnu.io.SerialPort serport)
throws java.io.IOException
serport - Serial port to use for device
java.io.IOException| Method Detail |
|---|
public void defineIO(int outputs)
throws java.io.IOException
outputs - Bit vector, '1' defines output bit, '0' defines input bit
java.io.IOException
public void setOutput(int newState)
throws java.io.IOException
newState - State of output lines to set
java.io.IOException
public void setOutputBits(int newBits,
int bitMask)
throws java.io.IOException
newBits - State of output lines to setbitMask - Mask for which bits to set
java.io.IOException
public void setPwrupState(int pwrupState)
throws java.io.IOException
pwrupState - State of output lines when device powers up
java.io.IOException
public int readInputs()
throws java.io.IOException
java.io.IOException
public int readConfiguration()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||