org.lsst.ccs.drivers.iocard
Class Iocard

java.lang.Object
  extended by org.lsst.ccs.drivers.iocard.Iocard
Direct Known Subclasses:
AccesDio, Helios

public class Iocard
extends Object

\file Iocard.java Java interface to the I/O card routines \author Owen Saxton


Field Summary
static int OPT_CHECK
          Various constants
static int OPT_READV
          Various constants
static int OPT_WRITER
          Various constants
 
Constructor Summary
Iocard()
           
 
Method Summary
 void attachInt(int id, int optns, int cOffset, int cMask, int rOffset, int rValue, int vOffset, Object cbObj, String cbMeth, Object cbParm)
          Attach to interrupts
 void detachInt(int id)
          Detach from interrupts
 void init(int baseAddr, int size, int irq)
          Initiate access to a card
 int readB(int offs)
          Read a byte from a register
 int readL(int offs)
          Read an integer from a register
 int readW(int offs)
          Read a short integer from a register
 void term()
          Terminate access to a card
 void updateB(int offs, int mask, int value)
          Update a byte in a register
 void updateL(int offs, int mask, int value)
          Update an integer in a register
 void updateW(int offs, int mask, int value)
          Update a short integer in a register
 void writeB(int offs, int value)
          Write a byte to a register
 void writeL(int offs, int value)
          Write an integer to a register
 void writeW(int offs, int value)
          Write a short integer to a register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_CHECK

public static final int OPT_CHECK
Various constants

See Also:
Constant Field Values

OPT_WRITER

public static final int OPT_WRITER
Various constants

See Also:
Constant Field Values

OPT_READV

public static final int OPT_READV
Various constants

See Also:
Constant Field Values
Constructor Detail

Iocard

public Iocard()
Method Detail

init

public void init(int baseAddr,
                 int size,
                 int irq)
          throws IocardException
Initiate access to a card

Throws:
IocardException

term

public void term()
          throws IocardException
Terminate access to a card

Throws:
IocardException

readB

public int readB(int offs)
          throws IocardException
Read a byte from a register

Throws:
IocardException

readW

public int readW(int offs)
          throws IocardException
Read a short integer from a register

Throws:
IocardException

readL

public int readL(int offs)
          throws IocardException
Read an integer from a register

Throws:
IocardException

writeB

public void writeB(int offs,
                   int value)
            throws IocardException
Write a byte to a register

Throws:
IocardException

writeW

public void writeW(int offs,
                   int value)
            throws IocardException
Write a short integer to a register

Throws:
IocardException

writeL

public void writeL(int offs,
                   int value)
            throws IocardException
Write an integer to a register

Throws:
IocardException

updateB

public void updateB(int offs,
                    int mask,
                    int value)
             throws IocardException
Update a byte in a register

Throws:
IocardException

updateW

public void updateW(int offs,
                    int mask,
                    int value)
             throws IocardException
Update a short integer in a register

Throws:
IocardException

updateL

public void updateL(int offs,
                    int mask,
                    int value)
             throws IocardException
Update an integer in a register

Throws:
IocardException

attachInt

public void attachInt(int id,
                      int optns,
                      int cOffset,
                      int cMask,
                      int rOffset,
                      int rValue,
                      int vOffset,
                      Object cbObj,
                      String cbMeth,
                      Object cbParm)
               throws IocardException
Attach to interrupts

Throws:
IocardException

detachInt

public void detachInt(int id)
               throws IocardException
Detach from interrupts

Throws:
IocardException


Copyright © 2012 LSST. All Rights Reserved.