|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.deployed.FOCERelayBoard
public class FOCERelayBoard
FOCERelayBoard encapsulates one Real-Time Devices DM6952HR PC/104 Relay Board
| Field Summary | |
|---|---|
protected int |
_boardAddress
|
protected int |
_boardIndex
|
protected IOMapper |
_ioMapper
|
protected static int |
DEFAULT_BOARD_ADDR
|
protected static java.lang.String |
RELAY_INIT
|
protected static java.lang.String |
RELAY_OFF
|
protected static java.lang.String |
RELAY_ON
|
protected static java.lang.String |
RELAY_STATE
|
protected static int |
RELAYS_PER_BOARD
|
| Constructor Summary | |
|---|---|
FOCERelayBoard()
Creates FOCERelayBoard at default address |
|
FOCERelayBoard(int address)
Constructor |
|
| Method Summary | |
|---|---|
void |
close()
Close this board. |
java.lang.String |
getName()
Return name. |
int |
numRelays()
Power off a multiple relays |
void |
powerOffAll()
Power off all relays |
void |
powerOffBit(int bit)
Power off a single relay |
void |
powerOffBits(int bit,
int numBits)
Power off a multiple relays |
void |
powerOnAll()
Power off all relays |
void |
powerOnBit(int bit)
Power on a single relay |
void |
powerOnBits(int bit,
int numBits)
Power on a multiple relays |
int |
relayState()
Return state of relays in relay board |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int RELAYS_PER_BOARD
protected static final int DEFAULT_BOARD_ADDR
protected static final java.lang.String RELAY_INIT
protected static final java.lang.String RELAY_ON
protected static final java.lang.String RELAY_OFF
protected static final java.lang.String RELAY_STATE
protected int _boardAddress
protected int _boardIndex
protected IOMapper _ioMapper
| Constructor Detail |
|---|
public FOCERelayBoard(int address)
throws java.io.IOException
address - Address in I/O space for this board.
java.io.IOException
public FOCERelayBoard()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void powerOnBit(int bit)
throws java.io.IOException
java.io.IOException
public void powerOffBit(int bit)
throws java.io.IOException
java.io.IOException
public void powerOnAll()
throws java.io.IOException
java.io.IOException
public void powerOffAll()
throws java.io.IOException
java.io.IOException
public void powerOnBits(int bit,
int numBits)
throws java.io.IOException
java.io.IOException
public void powerOffBits(int bit,
int numBits)
throws java.io.IOException
java.io.IOException
public int relayState()
throws java.io.IOException,
java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic int numRelays()
public java.lang.String getName()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||