Go to the documentation of this file. 1 #ifndef _DDASDATAFORMAT_H_
2 #define _DDASDATAFORMAT_H_
10 #define CHANNELIDMASK 0xF // Bits 0-3 inclusive
11 #define SLOTIDMASK 0xF0 // Bits 4-7 inclusive
12 #define CRATEIDMASK 0xF00 // Bits 8-11 inclusive
13 #define HEADERLENGTHMASK 0x1F000 // Bits 12-16 inclusive
14 #define CHANNELLENGTHMASK 0x3FFE0000 // Bits 17-29 inclusive
15 #define OVERFLOWMASK 0x40000000 // Bit 30 has overflow information (1 - overflow)
16 #define FINISHCODEMASK 0x80000000 // Bit 31 has pileup information (1 - pileup)
17 #define LOWER16BITMASK 0xFFFF // Lower 16 bits
18 #define UPPER16BITMASK 0xFFFF0000 // Upper 16 bits
19 #define LOWER12BITMASK 0xFFF // Lower 12 bits
20 #define BIT31MASK 0x80000000 // Bit 31
21 #define BIT30MASK 0x40000000 // Bit 30
22 #define BIT30TO29MASK 0x60000000 // Bits 30 through 29
23 #define BIT31TO29MASK 0xE0000000 // Bits 31 through 29
24 #define BIT30TO16MASK 0x7FFF0000 // Bits 30 through 16
25 #define BIT29TO16MASK 0x3FFF0000 // Bits 29 through 16
26 #define BIT28TO16MASK 0x1FFF0000 // Bits 28 through 16