| Constructor and Description |
|---|
RegClient()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOpen()
Checks that connection is open.
|
void |
close()
Closes a connection.
|
protected void |
finalize()
Finalizer.
|
void |
open(int id)
Opens a connection.
|
int |
read(int address)
Reads from a register.
|
void |
read(int address,
int[] values)
Reads from a set of registers.
|
void |
read(int address,
int[] values,
int offset,
int count)
Reads from a set of registers.
|
long |
readLong(int address)
Reads a register pair as a long value.
|
int |
update(int address,
int mask,
int value)
Updates a register.
|
void |
write(int address,
int value)
Writes to a register.
|
void |
write(int address,
int[] values)
Writes to a set of registers.
|
void |
write(int address,
int[] values,
int offset,
int count)
Writes to a set of registers.
|
void |
writeLong(int address,
long value)
Writes a long value to a register pair.
|
protected void finalize()
throws Throwable
public void open(int id)
throws RcmException
id - The ID of the RCM to connect toRcmExceptionpublic void close()
throws RcmException
RcmExceptionprotected void checkOpen()
throws RcmException
RcmExceptionpublic int read(int address)
throws RcmException
address - The address of the register to readRcmExceptionpublic void read(int address,
int[] values,
int offset,
int count)
throws RcmException
address - The address of the first register to readvalues - An array to receive the register valuesoffset - The offset to the array element where the first value
is to be putcount - The number of registers to readRcmExceptionpublic void read(int address,
int[] values)
throws RcmException
address - The address of the first register to readvalues - An array to receive the register values. The size
of the array determines how many registers to read.RcmExceptionpublic void write(int address,
int value)
throws RcmException
address - The address of the register to writevalue - The value to write to the registerRcmExceptionpublic void write(int address,
int[] values,
int offset,
int count)
throws RcmException
address - The address of the first register to writevalues - An array containing the values to writeoffset - The offset to the array element containing the first
value to writecount - The number of registers to writeRcmExceptionpublic void write(int address,
int[] values)
throws RcmException
address - The address of the first register to writevalues - An array containing the values to write. The size of
array is the number of registers to write.RcmExceptionpublic int update(int address,
int mask,
int value)
throws RcmException
address - The address of the register to updatemask - A mask in which set bits indicate which bits of
value are to be writtenvalue - The value to write to the registerRcmExceptionpublic long readLong(int address)
throws RcmException
address - The address of the first register to readRcmExceptionpublic void writeLong(int address,
long value)
throws RcmException
address - The address of the first register to writevalue - The value to write, as a little-endian pairRcmExceptionCopyright © 2013 LSST. All Rights Reserved.