GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DDASBanks.h
Go to the documentation of this file.
1 #ifndef _DDASBANKS_H_
2 #define _DDASBANKS_H_
3 
4 struct DDASHeader{
5  unsigned int size; // Size of DDAS packet, inclusive, number of 16-bit words
6  unsigned short frequency; // Frequency, in MHz
7  unsigned char adc_bits; // Number of bits in ADC
8  unsigned char revision; // Firmware revision number
9 
10  unsigned int status; // Lots of packed values, unpacked in TDDASEvent
11  unsigned int time_low;
12  unsigned int time_high_cfd;
13  unsigned int energy_tracelength;
14 } __attribute__((packed));
15 
16 struct DDAS_QDC_Sum {
17  unsigned int qdc_sum[4];
18 } __attribute__((packed));
19 
21  unsigned int energy_sum[8];
22 } __attribute__((packed));
23 
24 #endif /* _DDASBANKS_H_ */