QualityControl  1.5.1
O2 Data Quality Control Framework
sampa_header.h
1 //
2 // Struct that defines SAMPA Header
3 //
4 // A. Baldisseri (Feb. 2017)
5 //
6 
7 #ifndef SAMPA_HEADERSTRUCT_H
8 #define SAMPA_HEADERSTRUCT_H
9 
10 namespace Sampa
11 {
13  unsigned long
14  fHammingCode : 6,
15  fHeaderParity : 1,
16  fPkgType : 3,
17  fNbOf10BitWords : 10,
18  fChipAddress : 4,
19  fChannelAddress : 5,
20  fBunchCrossingCounter : 20,
21  fPayloadParity : 1,
22  fUnused : 14;
23 };
24 
25 // struct SampaHeaderStruct {
26 // unsigned int fHammingCode : 6;
27 // unsigned int fHeaderParity : 1;
28 // unsigned int fPkgType : 3;
29 // unsigned int fNbOf10BitWords : 10;
30 // unsigned int fChipAddress : 4;
31 // unsigned int fChannelAddress : 5;
32 // unsigned int fBunchCrossingCounter : 20;
33 // unsigned int fPayloadParity : 1;
34 // };
35 
36 // struct SampaHeaderStruct {
37 //
38 // unsigned int fPayloadParity : 1;
39 // unsigned int fBunchCrossingCounter : 20;
40 // unsigned int fChannelAddress : 5;
41 // unsigned int fChipAddress : 4;
42 // unsigned int fNbOf10BitWords : 10;
43 // unsigned int fPkgType : 3;
44 // unsigned int fHeaderParity : 1;
45 // unsigned int fHammingCode : 6;
46 //
47 //
48 // };
49 
50 } // namespace Sampa
51 
52 #endif // SAMPA_HEADERSTRUCT_H
Definition: sampa_header.h:12
Definition: sampa_header.h:10