1 |
kusanagi |
1.1 |
struct datastruct{ |
2 |
|
|
|
3 |
|
|
unsigned short header[2]; |
4 |
|
|
unsigned short status; |
5 |
|
|
unsigned short hitmap; |
6 |
|
|
unsigned short regist[6]; |
7 |
|
|
unsigned short shift[16]; |
8 |
|
|
unsigned short counters[16]; |
9 |
|
|
unsigned short coinc[8]; |
10 |
|
|
unsigned short trigg; |
11 |
|
|
unsigned short clock[2]; |
12 |
|
|
unsigned short temp[2]; |
13 |
|
|
unsigned short DAC[16]; |
14 |
|
|
unsigned short CRC; |
15 |
|
|
}; |
16 |
|
|
|
17 |
|
|
//physics structure |
18 |
|
|
struct datastruct physicsdata; |
19 |
|
|
|
20 |
|
|
//pointer to struct |
21 |
|
|
struct datastruct *physicspointer; |
22 |
|
|
|
23 |
|
|
//read variables |
24 |
|
|
int i,err,found; |
25 |
|
|
unsigned short buffer[100]; |
26 |
|
|
unsigned short tmp1,tmp2; |
27 |
|
|
|