MIDAS
Loading...
Searching...
No Matches
hardware.h
Go to the documentation of this file.
1
/********************************************************************\
2
3
Name: HARDWARE.H
4
Created by: Stefan Ritt
5
6
Contents: Type ID definitions and structured for specific
7
hardware.
8
9
$Id$
10
11
\********************************************************************/
12
13
/* Hardware data types. Can be used to create MIDAS banks. Should
14
be or'ed with standard data types like TID_DWORD | TID_LRS1882 */
15
16
#define TID_LRS1882 (1<<8)
/* LeCroy 1882 fastbus ADC */
17
#define TID_LRS1877 (2<<8)
/* LeCroy 1877 fastbus TDC */
18
#define TID_PCOS3 (3<<8)
/* LeCroy PCOS 3 wire chambers */
19
#define TID_LRS1875 (4<<8)
/* LeCroy 1875 fastbus TDC */
20
21
/* Hardware data records */
22
23
typedef
struct
{
24
WORD
data
:12;
25
WORD
:4;
26
WORD
channel
:7;
27
WORD
range
:1;
28
WORD
event
:3;
29
WORD
geo_addr
:5;
30
}
LRS1882_DATA
;
31
32
typedef
struct
{
33
WORD
data
:16;
34
WORD
edge
:1;
35
WORD
channel
:7;
36
WORD
buffer
:2;
37
WORD
parity
:1;
38
WORD
geo_addr
:5;
39
}
LRS1877_DATA
;
40
41
typedef
struct
{
42
WORD
count
:11;
43
WORD
buffer
:3;
44
WORD
:1;
45
WORD
parity
:1;
46
WORD
:11;
47
WORD
geo_addr
:5;
48
}
LRS1877_HEADER
;
49
50
typedef
struct
{
51
WORD
data
: 12;
52
WORD
: 4;
53
WORD
channel
: 6;
54
WORD
: 1;
55
WORD
range
: 1;
56
WORD
event
: 3;
57
WORD
geo_addr
: 5;
58
}
LRS1875_DATA
;
59
60
typedef
struct
{
61
WORD
: 8;
62
WORD
count
: 6;
63
WORD
: 2;
64
WORD
crate
: 8;
65
WORD
tag
: 3;
66
WORD
geo_addr
: 5;
67
}
CAEN775_HEADER
;
68
69
typedef
struct
{
70
WORD
data
: 12;
71
WORD
overflow
: 1;
72
WORD
underflow
: 1;
73
WORD
valid
: 1;
74
WORD
: 1;
75
WORD
channel
: 6;
76
WORD
: 2;
77
WORD
tag
: 3;
78
WORD
geo_addr
: 5;
79
}
CAEN775_DATA
;
WORD
unsigned short int WORD
Definition
mcstd.h:49
CAEN775_DATA
Definition
hardware.h:69
CAEN775_DATA::channel
WORD channel
Definition
hardware.h:75
CAEN775_DATA::geo_addr
WORD geo_addr
Definition
hardware.h:78
CAEN775_DATA::data
WORD data
Definition
hardware.h:70
CAEN775_DATA::underflow
WORD underflow
Definition
hardware.h:72
CAEN775_DATA::valid
WORD valid
Definition
hardware.h:73
CAEN775_DATA::overflow
WORD overflow
Definition
hardware.h:71
CAEN775_DATA::tag
WORD tag
Definition
hardware.h:77
CAEN775_HEADER
Definition
hardware.h:60
CAEN775_HEADER::count
WORD count
Definition
hardware.h:62
CAEN775_HEADER::crate
WORD crate
Definition
hardware.h:64
CAEN775_HEADER::tag
WORD tag
Definition
hardware.h:65
CAEN775_HEADER::geo_addr
WORD geo_addr
Definition
hardware.h:66
LRS1875_DATA
Definition
hardware.h:50
LRS1875_DATA::range
WORD range
Definition
hardware.h:55
LRS1875_DATA::event
WORD event
Definition
hardware.h:56
LRS1875_DATA::data
WORD data
Definition
hardware.h:51
LRS1875_DATA::channel
WORD channel
Definition
hardware.h:53
LRS1875_DATA::geo_addr
WORD geo_addr
Definition
hardware.h:57
LRS1877_DATA
Definition
hardware.h:32
LRS1877_DATA::parity
WORD parity
Definition
hardware.h:37
LRS1877_DATA::geo_addr
WORD geo_addr
Definition
hardware.h:38
LRS1877_DATA::data
WORD data
Definition
hardware.h:33
LRS1877_DATA::buffer
WORD buffer
Definition
hardware.h:36
LRS1877_DATA::channel
WORD channel
Definition
hardware.h:35
LRS1877_DATA::edge
WORD edge
Definition
hardware.h:34
LRS1877_HEADER
Definition
hardware.h:41
LRS1877_HEADER::parity
WORD parity
Definition
hardware.h:45
LRS1877_HEADER::geo_addr
WORD geo_addr
Definition
hardware.h:47
LRS1877_HEADER::count
WORD count
Definition
hardware.h:42
LRS1877_HEADER::buffer
WORD buffer
Definition
hardware.h:43
LRS1882_DATA
Definition
hardware.h:23
LRS1882_DATA::channel
WORD channel
Definition
hardware.h:26
LRS1882_DATA::data
WORD data
Definition
hardware.h:24
LRS1882_DATA::range
WORD range
Definition
hardware.h:27
LRS1882_DATA::event
WORD event
Definition
hardware.h:28
LRS1882_DATA::geo_addr
WORD geo_addr
Definition
hardware.h:29
include
hardware.h
Generated on Sat May 3 2025 05:01:05 for MIDAS by
1.9.8