source: fact/tools/FAD/format_headers/formatfad.h@ 13102

Last change on this file since 13102 was 271, checked in by dneise, 14 years ago
added sclkon & sclkoff command to 'fad'
File size: 808 bytes
Line 
1#ifndef FORMATFAD_H_
2#define FORMATFAD_H_
3
4typedef struct
5{
6 unsigned short start_package_flag;
7 unsigned short package_length;
8 unsigned short version_no;
9 unsigned long trigger_id;
10 unsigned char trigger_type;
11 unsigned char trigger_crc;
12 unsigned long local_trigger_id;
13 unsigned char local_trigger_type;
14 unsigned char local_trigger_crc;
15 unsigned short board_id;
16 short drs_temperature[4];
17 unsigned short dac[8]; // new in version 0x0102
18} EVNT_HEADER;
19
20typedef struct
21{
22 unsigned short channel_id;
23 unsigned short channel_start_cell;
24 unsigned short channel_roi;
25 unsigned short *channel_adc_data;
26} CHANNEL;
27
28typedef struct
29{
30 EVNT_HEADER evnt_header;
31 CHANNEL channel[4 * 9];
32 unsigned short package_crc; // new in version 0x0101
33 unsigned short end_package_flag;
34} EVNT;
35
36
37#endif /*FORMATFAD_H_*/
Note: See TracBrowser for help on using the repository browser.