org.lsst.ccs.drivers.rcm
Class RegClient

java.lang.Object
  extended by org.lsst.ccs.drivers.rcm.RegClient
Direct Known Subclasses:
BaseSet

public class RegClient
extends Object

Java interface to the RCM registers

Author:
Owen Saxton

Constructor Summary
RegClient()
          Constructor.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegClient

public RegClient()
Constructor.

Method Detail

finalize

protected void finalize()
                 throws Throwable
Finalizer

Overrides:
finalize in class Object
Throws:
Throwable

open

public void open(int id)
          throws RcmException
Opens a connection

Throws:
RcmException

close

public void close()
           throws RcmException
Closes a connection

Throws:
RcmException

checkOpen

protected void checkOpen()
                  throws RcmException
Checks that connection is open

Throws:
RcmException

read

public int read(int address)
         throws RcmException
Reads from a register

Throws:
RcmException

read

public void read(int address,
                 int[] values,
                 int offset,
                 int count)
          throws RcmException
Reads from a set of registers

Throws:
RcmException

read

public void read(int address,
                 int[] values)
          throws RcmException
Reads from a set of registers

Throws:
RcmException

write

public void write(int address,
                  int value)
           throws RcmException
Writes to a register

Throws:
RcmException

write

public void write(int address,
                  int[] values,
                  int offset,
                  int count)
           throws RcmException
Writes to a set of registers

Throws:
RcmException

write

public void write(int address,
                  int[] values)
           throws RcmException
Writes to a set of registers

Throws:
RcmException

update

public int update(int address,
                  int mask,
                  int value)
           throws RcmException
Updates a register

Throws:
RcmException

readLong

public long readLong(int address)
              throws RcmException
Reads a register pair as a long value

Throws:
RcmException

writeLong

public void writeLong(int address,
                      long value)
               throws RcmException
Writes a long value to a register pair

Throws:
RcmException


Copyright © 2013 LSST. All Rights Reserved.