|
MIDAS
|

Functions | |
| EXTERNAL void EXPRT | cam16i (const int c, const int n, const int a, const int f, WORD *d) |
| EXTERNAL void EXPRT | cam24i (const int c, const int n, const int a, const int f, DWORD *d) |
| EXTERNAL void EXPRT | cam8i_q (const int c, const int n, const int a, const int f, BYTE *d, int *x, int *q) |
| EXTERNAL void EXPRT | cam16i_q (const int c, const int n, const int a, const int f, WORD *d, int *x, int *q) |
| EXTERNAL void EXPRT | cam24i_q (const int c, const int n, const int a, const int f, DWORD *d, int *x, int *q) |
| EXTERNAL void EXPRT | cam16i_r (const int c, const int n, const int a, const int f, WORD **d, const int r) |
| EXTERNAL void EXPRT | cam24i_r (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
| EXTERNAL void EXPRT | cam8i_rq (const int c, const int n, const int a, const int f, BYTE **d, const int r) |
| EXTERNAL void EXPRT | cam16i_rq (const int c, const int n, const int a, const int f, WORD **d, const int r) |
| EXTERNAL void EXPRT | cam24i_rq (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
| EXTERNAL void EXPRT | cam8i_sa (const int c, const int n, const int a, const int f, BYTE **d, const int r) |
| EXTERNAL void EXPRT | cam16i_sa (const int c, const int n, const int a, const int f, WORD **d, const int r) |
| EXTERNAL void EXPRT | cam24i_sa (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
| EXTERNAL void EXPRT | cam8i_sn (const int c, const int n, const int a, const int f, BYTE **d, const int r) |
| EXTERNAL void EXPRT | cam16i_sn (const int c, const int n, const int a, const int f, WORD **d, const int r) |
| EXTERNAL void EXPRT | cam24i_sn (const int c, const int n, const int a, const int f, DWORD **d, const int r) |
| EXTERNAL void EXPRT | cami (const int c, const int n, const int a, const int f, WORD *d) |
| EXTERNAL void EXPRT | cam8o (const int c, const int n, const int a, const int f, BYTE d) |
| EXTERNAL void EXPRT | cam16o (const int c, const int n, const int a, const int f, WORD d) |
| EXTERNAL void EXPRT | cam24o (const int c, const int n, const int a, const int f, DWORD d) |
| EXTERNAL void EXPRT | cam8o_q (const int c, const int n, const int a, const int f, BYTE d, int *x, int *q) |
| EXTERNAL void EXPRT | cam16o_q (const int c, const int n, const int a, const int f, WORD d, int *x, int *q) |
| EXTERNAL void EXPRT | cam24o_q (const int c, const int n, const int a, const int f, DWORD d, int *x, int *q) |
| EXTERNAL void EXPRT | cam8o_r (const int c, const int n, const int a, const int f, BYTE *d, const int r) |
| EXTERNAL void EXPRT | cam16o_r (const int c, const int n, const int a, const int f, WORD *d, const int r) |
| EXTERNAL void EXPRT | cam24o_r (const int c, const int n, const int a, const int f, DWORD *d, const int r) |
| EXTERNAL void EXPRT | camo (const int c, const int n, const int a, const int f, WORD d) |
| EXTERNAL int EXPRT | camc_chk (const int c) |
| EXTERNAL void EXPRT | camc (const int c, const int n, const int a, const int f) |
| EXTERNAL void EXPRT | camc_q (const int c, const int n, const int a, const int f, int *q) |
| EXTERNAL void EXPRT | camc_sa (const int c, const int n, const int a, const int f, const int r) |
| EXTERNAL void EXPRT | camc_sn (const int c, const int n, const int a, const int f, const int r) |
| EXTERNAL int EXPRT | cam_init (void) |
| EXTERNAL int EXPRT | cam_init_rpc (const char *host_name, const char *exp_name, const char *fe_name, const char *client_name, const char *rpc_server) |
| EXTERNAL void EXPRT | cam_exit (void) |
| EXTERNAL void EXPRT | cam_inhibit_set (const int c) |
| EXTERNAL void EXPRT | cam_inhibit_clear (const int c) |
| EXTERNAL int EXPRT | cam_inhibit_test (const int c) |
| EXTERNAL void EXPRT | cam_crate_clear (const int c) |
| EXTERNAL void EXPRT | cam_crate_zinit (const int c) |
| EXTERNAL void EXPRT | cam_lam_enable (const int c, const int n) |
| EXTERNAL void EXPRT | cam_lam_disable (const int c, const int n) |
| EXTERNAL void | cam_lam_read (const int c, DWORD *lam) |
| EXTERNAL void EXPRT | cam_lam_clear (const int c, const int n) |
| EXTERNAL int EXPRT | cam_lam_wait (int *c, DWORD *n, const int millisec) |
| EXTERNAL void EXPRT | cam_interrupt_enable (const int c) |
| EXTERNAL void EXPRT | cam_interrupt_disable (const int c) |
| EXTERNAL int EXPRT | cam_interrupt_test (const int c) |
| EXTERNAL void EXPRT | cam_interrupt_attach (const int c, const int n, void(*isr)(void)) |
| EXTERNAL void EXPRT | cam_interrupt_detach (const int c, const int n) |
| EXTERNAL void EXPRT | cam_op () |
dox dox
16 bits input.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |

| EXTERNAL void EXPRT cam16i_q | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| WORD * | d, | ||
| int * | x, | ||
| int * | q | ||
| ) |
16 bits input with Q response.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |
| x | X response (0:failed,1:success) |
| q | Q resonpse (0:no Q, 1: Q) |

| EXTERNAL void EXPRT cam16i_r | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| WORD ** | d, | ||
| const int | r | ||
| ) |
Repeat 16 bits input.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |
| r | repeat time |

| EXTERNAL void EXPRT cam16i_rq | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| WORD ** | d, | ||
| const int | r | ||
| ) |
Repeat 16 bits input with Q stop.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | repeat time |

| EXTERNAL void EXPRT cam16i_sa | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| WORD ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the sub-address by one. Repeat r times.
equivalent to :
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive sub-address to read |

| EXTERNAL void EXPRT cam16i_sn | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| WORD ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the station number by one. Repeat r times.
equivalent to :
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive station to read |
24 bits input.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |

| EXTERNAL void EXPRT cam24i_q | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| DWORD * | d, | ||
| int * | x, | ||
| int * | q | ||
| ) |
24 bits input with Q response.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |
| x | X response (0:failed,1:success) |
| q | Q resonpse (0:no Q, 1: Q) |

| EXTERNAL void EXPRT cam24i_r | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| DWORD ** | d, | ||
| const int | r | ||
| ) |
Repeat 24 bits input.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out |
| r | repeat time |

| EXTERNAL void EXPRT cam24i_rq | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| DWORD ** | d, | ||
| const int | r | ||
| ) |
Repeat 24 bits input with Q stop.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | repeat time |

| EXTERNAL void EXPRT cam24i_sa | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| DWORD ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the sub-address by one. Repeat r times.
equivalent to
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive sub-address to read |

| EXTERNAL void EXPRT cam24i_sn | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| DWORD ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the station number by one. Repeat r times.
equivalent to :
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive station to read |

| EXTERNAL void EXPRT cam8i_q | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| BYTE * | d, | ||
| int * | x, | ||
| int * | q | ||
| ) |
8 bits input with Q response.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | data read out data |
| x | X response (0:failed,1:success) |
| q | Q resonpse (0:no Q, 1: Q) |
| EXTERNAL void EXPRT cam8i_rq | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| BYTE ** | d, | ||
| const int | r | ||
| ) |
Repeat 8 bits input with Q stop.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | repeat time |
| EXTERNAL void EXPRT cam8i_sa | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| BYTE ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the sub-address by one. Repeat r times.
equivalent to :
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive sub-address to read |
| EXTERNAL void EXPRT cam8i_sn | ( | const int | c, |
| const int | n, | ||
| const int | a, | ||
| const int | f, | ||
| BYTE ** | d, | ||
| const int | r | ||
| ) |
Read the given CAMAC address and increment the station number by one. Repeat r times.
equivalent to :
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (0..7) |
| d | pointer to data read out |
| r | number of consecutive station to read |
Issue CLEAR to crate.
| c | crate number (0..) |

Issue Z to crate.
| c | crate number (0..) |

Clear Crate inhibit.
| c | crate number (0..) |

Set Crate inhibit.
| c | crate number (0..) |

Test Crate Inhibit.
| c | crate number (0..) |
| EXTERNAL int EXPRT cam_init_rpc | ( | const char * | host_name, |
| const char * | exp_name, | ||
| const char * | fe_name, | ||
| const char * | client_name, | ||
| const char * | rpc_server | ||
| ) |
Initialize CAMAC access for rpc calls
| host_name | Midas host to contact |
| exp_name | Midas experiment to contact |
| fe_name | frontend application name to contact |
| client_name | RPC host name |
| rpc_server | RPC server name |

Attach service routine to LAM of specific crate and station.
| c | crate number (0..) |
| n | station number |
| (*isr) | Function pointer to attach to the LAM |

Detach service routine from LAM.
| c | crate number (0..) |
| n | station number |

Disables interrupts in specific crate
| c | crate number (0..) |

Enable interrupts in specific crate
| c | crate number (0..) |

Test Crate Interrupt.
| c | crate number (0..) |
Clear the LAM register of the crate controller. It doesn't clear the LAM of the particular station.
| c | crate number (0..) |
| n | LAM station |

Disable LAM generation for given station to the Crate controller. It doesn't disable the LAM of the actual station itself.
| c | crate number (0..) |
| n | LAM station |

Enable LAM generation for given station to the Crate controller. It doesn't enable the LAM of the actual station itself.
| c | crate number (0..) |
| n | LAM station |

Reads in lam the lam pattern of the entire crate.
| c | crate number (0..) |
| lam | LAM pattern of the crate |

Wait for a LAM to occur with a certain timeout. Return crate and station if LAM occurs.
| c | crate number (0..) |
| n | LAM station |
| millisec | If there is no LAM after this timeout, the routine returns |
CAMAC command (no data).
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (8..15, 24..31) |

CAMAC command with Q response (no data).
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (8..15, 24..31) |
| q | Q response (0:no Q, 1:Q) |

Scan CAMAC command on sub-address.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (8..15, 24..31) |
| r | number of consecutive sub-address to read |
Scan CAMAC command on station.
| c | crate number (0..) |
| n | station number (0..30) |
| a | sub-address (0..15) |
| f | function (8..15, 24..31) |
| r | number of consecutive station to read |
Same as cam16i()