|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--inp.camac.Crate
Class representing CAMAC crate hardware. To obtain Crate object use something like this:
.... CamacDriver driver = CamacDriver.loadDriver("DriverCC232"); Crate crate = driver.getCrate(0); ....
Method Summary | |
void |
addModule(Module module,
int N)
Add module to station N. N is in terms if camac numeration from 1 to 24. |
void |
C()
Execute C cycle in Crate |
void |
executeNAF(int N,
int A,
int F,
int[] data,
int bits)
Methid to execute NAF in Crate This method can be used public to execute NAF on crate object, but better to use Module.AF(..) instead. |
Module |
getModule(int N)
|
void |
I(boolean inhibit)
set Inhibit bus state |
Module |
removeModule(int N)
Remove module from specified position |
Module |
removeModule(Module m)
remove Module from Crate |
void |
Z()
Execute Z cycle in Crate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void addModule(Module module, int N)
module
- module to addN
- position (1..24) where to addModule.setN(int)
,
Module.setCrate(inp.camac.Crate)
public Module removeModule(int N)
N
- position wherefrom to remove modulepublic Module getModule(int N)
public Module removeModule(Module m)
public void executeNAF(int N, int A, int F, int[] data, int bits) throws java.io.IOException
N
- Camac module position (1..24)A
- Camac subaddressF
- Camac functiondata
- Array of data, NAF will be executed as many times as data.length
if 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 bitspublic void Z() throws java.io.IOException
public void C() throws java.io.IOException
public void I(boolean inhibit) throws java.io.IOException
inhibit
- new state of bus
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |