Last change
on this file since 1625 was 248, checked in by dneise, 14 years ago |
initial check in of FAD tools
simple daq - simple command line interface to FAD
will produce binary socket_x.dat files
ddd_for_fad - simple GUI
able to plot FAD raw data.
|
File size:
994 bytes
|
Line | |
---|
1 | #ifndef VIEWEVENT_H_
|
---|
2 | #define VIEWEVENT_H_
|
---|
3 |
|
---|
4 | #include <stdlib.h>
|
---|
5 | #include <stdio.h>
|
---|
6 | #include <string.h>
|
---|
7 | #include <getopt.h>
|
---|
8 | #include <arpa/inet.h>
|
---|
9 |
|
---|
10 | void usage (char *argv);
|
---|
11 |
|
---|
12 |
|
---|
13 | typedef struct
|
---|
14 | {
|
---|
15 | unsigned short start_package_flag;
|
---|
16 | unsigned short package_length;
|
---|
17 | unsigned short version_no;
|
---|
18 | unsigned int trigger_id;
|
---|
19 | unsigned char trigger_type;
|
---|
20 | unsigned char trigger_crc;
|
---|
21 | unsigned int local_trigger_id;
|
---|
22 | unsigned char local_trigger_type;
|
---|
23 | unsigned char local_trigger_crc;
|
---|
24 | unsigned short board_id;
|
---|
25 | short drs_temperature[4];
|
---|
26 | unsigned short dac[8]; // new in version 0x0102
|
---|
27 | } __attribute__((__packed__)) EVNT_HEADER;
|
---|
28 |
|
---|
29 | typedef struct
|
---|
30 | {
|
---|
31 | unsigned short channel_id;
|
---|
32 | unsigned short channel_start_cell;
|
---|
33 | unsigned short channel_roi;
|
---|
34 | unsigned short *channel_adc_data;
|
---|
35 | } __attribute__((__packed__)) CHANNEL;
|
---|
36 |
|
---|
37 | typedef struct
|
---|
38 | {
|
---|
39 | EVNT_HEADER evnt_header;
|
---|
40 | CHANNEL channel[4 * 9];
|
---|
41 | unsigned short package_crc; // new in version 0x0101
|
---|
42 | unsigned short end_package_flag;
|
---|
43 | } EVNT;
|
---|
44 |
|
---|
45 |
|
---|
46 | #endif /*VIEWEVENT_H_*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.