inp.camac.cc232
Class DriverCC232

java.lang.Object
  |
  +--inp.camac.CamacDriver
        |
        +--inp.camac.cc232.DriverCC232

public class DriverCC232
extends CamacDriver


Constructor Summary
DriverCC232()
           
 
Method Summary
 void C(int crateN)
          Execute C cycle in specified crate
 void close()
           
 void close(int crateN)
          Close crate connectection and release all allocated resources for this crate
 void executeNAF(int crateN, int N, int A, int F, int[] data, int bits, Module module)
          Execute NAF in Crate
 void I(int crateN, boolean I)
          set I (inhibit) bus state
 void init()
          Implement here whatever needed to initialize camac driver called by loadDriver when new driver loaded.
 void initCrate(int crateN)
          Implement here whatever needed to initialize connection with crate controller.
 int readLAMs(int crateN)
           
 void setLAMMask(int crateN, int mask)
          set LAM bit mask to filter out LAM events only from given positions.
 void Z(int crateN)
          Execute Z cycle in specified crate
 
Methods inherited from class inp.camac.CamacDriver
getCrate, loadDriver, onLAM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverCC232

public DriverCC232()
Method Detail

init

public void init()
          throws java.io.IOException
Description copied from class: CamacDriver
Implement here whatever needed to initialize camac driver called by loadDriver when new driver loaded.
Overrides:
init in class CamacDriver

C

public void C(int crateN)
       throws java.io.IOException
Description copied from class: CamacDriver
Execute C cycle in specified crate
Overrides:
C in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - crate Number

I

public void I(int crateN,
              boolean I)
       throws java.io.IOException
Description copied from class: CamacDriver
set I (inhibit) bus state
Overrides:
I in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - crate Number
inhibit -  

Z

public void Z(int crateN)
       throws java.io.IOException
Description copied from class: CamacDriver
Execute Z cycle in specified crate
Overrides:
Z in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - crate Number

setLAMMask

public void setLAMMask(int crateN,
                       int mask)
                throws java.io.IOException
Description copied from class: CamacDriver
set LAM bit mask to filter out LAM events only from given positions.
Overrides:
setLAMMask in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - crate number
mask - LAM mask. 1 enables LAM, 0 disables LAM. LSB bit 0 of mask corresponds to position 1

readLAMs

public int readLAMs(int crateN)
             throws java.io.IOException

close

public void close(int crateN)
Description copied from class: CamacDriver
Close crate connectection and release all allocated resources for this crate
Overrides:
close in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - crate number to release.

executeNAF

public void executeNAF(int crateN,
                       int N,
                       int A,
                       int F,
                       int[] data,
                       int bits,
                       Module module)
                throws java.io.IOException
Description copied from class: CamacDriver
Execute NAF in Crate
Overrides:
executeNAF in class CamacDriver
Tags copied from class: CamacDriver
Parameters:
crateN - Crate number from 0 to MAXCRATES
N - Camac module position (1..24)
A - Camac subaddress
F - Camac function
data - Array of data, NAF will be executed as many times as data.length is. If data is null than NAF will be executed once without data transfer. In case of write operation, data from this array must be written in target module. In case of read operation data read from module must be placed in this array.
bits - Number of significant bits in data transfer. For some sort of hardware this parameter might be usefull to reduce data transfer time. Implementation might return either all 24 bits either only required number of bits
Module - module reference, Usefull in particular implementations to check module.mustHaveX() and module.mustHaveQ() for correct exceptions handling.

initCrate

public void initCrate(int crateN)
               throws java.io.IOException
Description copied from class: CamacDriver
Implement here whatever needed to initialize connection with crate controller. Called by default implementation of CamacDriver.getCrate on first attempt to get crate.
Overrides:
initCrate in class CamacDriver

close

public void close()