- Added support for EMBL PSD detectors for TRIS and AMOR.

This commit is contained in:
cvs
2001-01-24 11:03:14 +00:00
parent e64773949d
commit 96e2fc44c0
11 changed files with 1077 additions and 28 deletions

View File

@@ -172,6 +172,20 @@
uchar Vmio_Dummy[64]; /* Dummy VMIO10 addr space, in case absent */
jmp_buf Vmio_trap_env;
/*==========================================================================
Special variables for decoding PSD data: The PSD detector position is
calculated as: coord = TXPOS*calibfactor + caliboffset. Thus we need two
factors for each direction. In addition we need to keep track of flashes
and hits on the detector for diagnostic reasons.
---------------------------------------------------------------------------*/
int psdXOffset;
int psdYOffset;
int psdXFactor;
int psdYFactor;
int psdFlashCount;
int psdHitCount;
int psdXSize;
int psdYSize;
/*========================== Define the function prototypes ================*/
void catch_int_signal (
@@ -228,6 +242,10 @@
int skt,
struct req_buff_struct *request,
struct rply_buff_struct *reply);
int do_SQHM__PSD_alloc (
int skt,
struct req_buff_struct *request,
struct rply_buff_struct *reply);
int do_SQHM__TRANS_alloc (
struct req_buff_struct *request,
struct rply_buff_struct *reply);
@@ -273,6 +291,8 @@
int nbytes);
void process_coinc_tsi (
uint hdr);
void process_psd_tsi (
uint hdr);
void process_no_coinc_tsi (
uint hdr);
int rply_status_send (