Definition in file esone.c.
Go to the source code of this file.
Functions | |
INLINE void | ccinit (void) |
INLINE int | fccinit (void) |
INLINE void | cdreg (int *ext, const int b, const int c, const int n, const int a) |
INLINE void | cssa (const int f, int ext, unsigned short *d, int *q) |
INLINE void | cfsa (const int f, const int ext, unsigned long *d, int *q) |
INLINE void | cccc (const int ext) |
INLINE void | cccz (const int ext) |
INLINE void | ccci (const int ext, int l) |
INLINE void | ctci (const int ext, int *l) |
INLINE void | cccd (const int ext, int l) |
INLINE void | ctcd (const int ext, int *l) |
INLINE void | cdlam (int *lam, const int b, const int c, const int n, const int a, const int inta[2]) |
INLINE void | ctgl (const int ext, int *l) |
INLINE void | cclm (const int lam, int l) |
INLINE void | cclnk (const int lam, void(*isr)(void)) |
INLINE void | cculk (const int lam) |
INLINE void | ccrgl (const int lam) |
INLINE void | cclc (const int lam) |
INLINE void | ctlm (const int lam, int *l) |
INLINE void | cfga (int f[], int exta[], int intc[], int qa[], int cb[]) |
INLINE void | csga (int f[], int exta[], int intc[], int qa[], int cb[]) |
INLINE void | cfmad (int f, int extb[], int intc[], int cb[]) |
INLINE void | csmad (int f, int extb[], int intc[], int cb[]) |
INLINE void | cfubc (const int f, int ext, int intc[], int cb[]) |
INLINE void | csubc (const int f, int ext, int intc[], int cb[]) |
INLINE void | cfubr (const int f, int ext, int intc[], int cb[]) |
INLINE void | csubr (const int f, int ext, int intc[], int cb[]) |
INLINE void cccc | ( | const int | ext | ) |
Control Crate Clear.
Generate Crate Clear function. Execute cam_crate_clear()
ext | external address |
INLINE void cccd | ( | const int | ext, | |
int | l | |||
) |
INLINE void ccci | ( | const int | ext, | |
int | l | |||
) |
INLINE void cccz | ( | const int | ext | ) |
Control Crate Z.
Generate Dataway Initialize. Execute cam_crate_zinit()
ext | external address |
INLINE void ccinit | ( | void | ) |
INLINE void cclc | ( | const int | lam | ) |
INLINE void cclm | ( | const int | lam, | |
int | l | |||
) |
INLINE void cclnk | ( | const int | lam, | |
void(*)(void) | isr | |||
) |
INLINE void ccrgl | ( | const int | lam | ) |
INLINE void cculk | ( | const int | lam | ) |
INLINE void cdlam | ( | int * | lam, | |
const int | b, | |||
const int | c, | |||
const int | n, | |||
const int | a, | |||
const int | inta[2] | |||
) |
INLINE void cdreg | ( | int * | ext, | |
const int | b, | |||
const int | c, | |||
const int | n, | |||
const int | a | |||
) |
Control Declaration REGister.
Compose an external address from BCNA for later use. Accessing CAMAC through ext could be faster if the external address is memory mapped to the processor (hardware dependent). Some CAMAC controller do not have this option see Supported hardware.
ext | external address | |
b | branch number (0..7) | |
c | crate number (0..) | |
n | station number (0..30) | |
a | sub-address (0..15) |
Definition at line 109 of file esone.c.
Referenced by cdlam().
INLINE void cfga | ( | int | f[], | |
int | exta[], | |||
int | intc[], | |||
int | qa[], | |||
int | cb[] | |||
) |
Control Full (24bit) word General Action.
f | function code | |
exta[] | external address array | |
intc[] | data array | |
qa[] | Q response array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void cfmad | ( | int | f, | |
int | extb[], | |||
int | intc[], | |||
int | cb[] | |||
) |
Control Full (24bit) Address Q scan.
Scan all sub-address while Q=1 from a0..a15 max from address extb[0] and store corresponding data in intc[]. If Q=0 while A<15 or A=15 then cross station boundary is applied (n-> n+1) and sub-address is reset (a=0). Perform action until either cb[0] action are performed or current external address exceeds extb[1].
implementation of cb[2] for LAM recognition is not implemented.
f | function code | |
extb[] | external address array extb[0] : first valid external address extb[1] : last valid external address | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void cfsa | ( | const int | f, | |
const int | ext, | |||
unsigned long * | d, | |||
int * | q | |||
) |
Control Full Operation.
24 bit operation on a given external CAMAC address.
The range of the f is hardware dependent. The number indicated below are for standard ANSI/IEEE Std (758-1979) Execute cam24i for f<8, cam24o for f>15, camc_q for (f>7 or f>23)
f | function code (0..31) | |
ext | external address | |
d | data long word | |
q | Q response |
INLINE void cfubc | ( | const int | f, | |
int | ext, | |||
int | intc[], | |||
int | cb[] | |||
) |
Control Full (24bit) Block Repeat with Q-stop.
Execute function f on address ext with data intc[] while Q.
f | function code | |
ext | external address array | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void cfubr | ( | const int | f, | |
int | ext, | |||
int | intc[], | |||
int | cb[] | |||
) |
Repeat Mode Block Transfer (24bit).
Execute function f on address ext with data intc[] if Q. If noQ keep current intc[] data. Repeat cb[0] times.
f | function code | |
ext | external address array | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void csga | ( | int | f[], | |
int | exta[], | |||
int | intc[], | |||
int | qa[], | |||
int | cb[] | |||
) |
INLINE void csmad | ( | int | f, | |
int | extb[], | |||
int | intc[], | |||
int | cb[] | |||
) |
Control (16bit) Address Q scan.
Scan all sub-address while Q=1 from a0..a15 max from address extb[0] and store corresponding data in intc[]. If Q=0 while A<15 or A=15 then cross station boundary is applied (n-> n+1) and sub-address is reset (a=0). Perform action until either cb[0] action are performed or current external address exceeds extb[1].
implementation of cb[2] for LAM recognition is not implemented.
f | function code | |
extb[] | external address array extb[0] : first valid external address extb[1] : last valid external address | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void cssa | ( | const int | f, | |
int | ext, | |||
unsigned short * | d, | |||
int * | q | |||
) |
Control Short Operation.
16 bit operation on a given external CAMAC address.
The range of the f is hardware dependent. The number indicated below are for standard ANSI/IEEE Std (758-1979) Execute cam16i for f<8, cam16o for f>15, camc_q for (f>7 or f>23)
f | function code (0..31) | |
ext | external address | |
d | data word | |
q | Q response |
INLINE void csubc | ( | const int | f, | |
int | ext, | |||
int | intc[], | |||
int | cb[] | |||
) |
Control (16bit) Block Repeat with Q-stop.
Execute function f on address ext with data intc[] while Q.
f | function code | |
ext | external address array | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void csubr | ( | const int | f, | |
int | ext, | |||
int | intc[], | |||
int | cb[] | |||
) |
Repeat Mode Block Transfer (16bit).
Execute function f on address ext with data intc[] if Q. If noQ keep current intc[] data. Repeat cb[0] times.
f | function code | |
ext | external address array | |
intc[] | data array | |
cb[] | control block array cb[0] : number of function to perform cb[1] : returned number of function performed |
INLINE void ctcd | ( | const int | ext, | |
int * | l | |||
) |
INLINE void ctci | ( | const int | ext, | |
int * | l | |||
) |
Test Crate I.
Test Crate Inhibit, Execute cam_inhibit_test()
ext | external address | |
l | action l=0 -> Clear I, l=1 -> Set I |
INLINE void ctgl | ( | const int | ext, | |
int * | l | |||
) |
INLINE void ctlm | ( | const int | lam, | |
int * | l | |||
) |
INLINE int fccinit | ( | void | ) |