5 #ifndef PIXELRAWDATABYTESTREAMCNV_PIXELBYTESTREAMMODULEMASK_H
6 #define PIXELRAWDATABYTESTREAMCNV_PIXELBYTESTREAMMODULEMASK_H
10 static const uint32_t PRB_BCIDmask = 0xFF;
11 static const uint32_t PRB_BCIDskip = 0;
12 static const uint32_t PRB_L1IDmask = 0xF;
13 static const uint32_t PRB_L1IDskip = 8;
14 static const uint32_t PRB_L1IDSKIPmask = 0xF;
15 static const uint32_t PRB_L1IDSKIPskip = 12;
16 static const uint32_t PRB_MODULEmask = 0x7F;
17 static const uint32_t PRB_MODULEskip = 16;
19 static const uint32_t PRB_HEADERERRORSmask = 0xF;
20 static const uint32_t PRB_HEADERERRORSskip = 25;
21 static const uint32_t PRB_HEADERBITFLIPmask = 0x3;
22 static const uint32_t PRB_HEADERBITFLIPskip = 23;
25 static const uint32_t PRB_BCIDskip_IBL = 0;
26 static const uint32_t PRB_BCIDmask_IBL = 0x3FF;
27 static const uint32_t PRB_L1IDskip_IBL = 10;
28 static const uint32_t PRB_L1IDmask_IBL = 0x1FFF;
29 static const uint32_t PRB_FeI4BFLAGskip_IBL = 23;
30 static const uint32_t PRB_FeI4BFLAGmask_IBL = 0x1;
31 static const uint32_t PRB_ZERO_skip_IBL = 16;
32 static const uint32_t PRB_ZERO_mask_IBL = 0xFF;
33 static const uint32_t PRB_MODULEskip_IBL = 24;
34 static const uint32_t PRB_MODULEmask_IBL = 0x1F;
38 static const uint32_t PRB_ROWmask = 0xFF;
39 static const uint32_t PRB_ROWskip = 0;
40 static const uint32_t PRB_COLUMNmask = 0x1F;
41 static const uint32_t PRB_COLUMNskip = 8;
42 static const uint32_t PRB_TOTmask = 0xFF;
43 static const uint32_t PRB_TOTskip = 16;
44 static const uint32_t PRB_FEmask = 0xF;
45 static const uint32_t PRB_FEskip = 24;
46 static const uint32_t PRB_HITBITFLIPmask = 0x8007;
47 static const uint32_t PRB_HITBITFLIPskip = 13;
50 static const uint32_t PRB_FIRSTHITCONDENSEDWORD = 0xA0000000;
52 static const uint32_t PRB_MIDDLEHITCONDENSEDWORD = 0x80000000;
53 static const uint32_t PRB_LASTHITCONDENSEDWORD = 0xE0000000;
56 static const int nCondensedWords = 4;
60 static const uint32_t mask12 = 0x00000FFF;
61 static const uint32_t mask19 = 0x0007FFFF;
62 static const uint32_t mask24 = 0x00FFFFFF;
79 static const uint32_t PRB_HIT_PIXEL_MASK = 0xF000E000;
82 static const uint32_t PRB_ROWskip_IBL = 0;
83 static const uint32_t PRB_ROWmask_IBL = 0x1FF;
84 static const uint32_t PRB_COLUMNskip_IBL = 9;
85 static const uint32_t PRB_COLUMNmask_IBL = 0x7F;
86 static const uint32_t PRB_TOTskip_IBL = 16;
87 static const uint32_t PRB_TOTmask_IBL = 0xFF;
88 static const uint32_t PRB_LINKNUMHITskip_IBL = 24;
89 static const uint32_t PRB_LINKNUMHITmask_IBL = 0x1F;
93 static const uint32_t PRB_TRAILERERRORSmask = 0x7;
94 static const uint32_t PRB_TRAILERERRORSskip = 26;
95 static const uint32_t PRB_TRAILERBITFLIPmask = 0x3FFFFFF;
96 static const uint32_t PRB_TRAILERBITFLIPskip = 0;
99 static const uint32_t PRB_SKIPPEDTRIGGERTRAILERskip_IBL = 5;
100 static const uint32_t PRB_SKIPPEDTRIGGERTRAILERmask_IBL = 0x3FF;
101 static const uint32_t PRB_TRAILERERRORSskip_IBL = 15;
102 static const uint32_t PRB_TRAILERERRORSmask_IBL = 0x1FF;
103 static const uint32_t PRB_LINKNUMTRAILERskip_IBL = 24;
104 static const uint32_t PRB_LINKNUMTRAILERmask_IBL = 0x1F;
106 static const uint32_t PRB_BITFLIPSTRAILERskip_IBL = 0;
107 static const uint32_t PRB_BITFLIPSTRAILERmask_IBL = 0x1F;
110 static const uint32_t PRB_BCIDSKIPTRAILERskip_IBL = 0x0;
111 static const uint32_t PRB_BCIDSKIPTRAILERmask_IBL = 0x1F;
112 static const uint32_t PRB_L1IDSKIPTRAILERskip_IBL = 19;
113 static const uint32_t PRB_L1IDSKIPTRAILERmask_IBL = 0x1;
114 static const uint32_t PRB_PREAMBLEERRORTRAILERskip_IBL = 20;
115 static const uint32_t PRB_PREAMBLEERRORTRAILERmask_IBL = 0x1;
116 static const uint32_t PRB_LINKMASKEDskip_IBL = 21;
117 static const uint32_t PRB_LINKMASKEDmask_IBL = 0x1;
118 static const uint32_t PRB_CONDENSEDMODEskip_IBL = 22;
119 static const uint32_t PRB_CONDENSEDMODEmask_IBL = 0x1;
120 static const uint32_t PRB_TIMEOUTERRORskip_IBL = 23;
121 static const uint32_t PRB_TIMEOUTERRORmask_IBL = 0x1;
134 static const uint32_t PRB_FEFlagmask2 = 0xFF;
135 static const uint32_t PRB_FEFlagskip2 = 0;
136 static const uint32_t PRB_MCCFlagmask = 0x1F;
137 static const uint32_t PRB_MCCFlagskip = 8;
138 static const uint32_t PRB_FEFLAG2BITFLIPmask = 0x7;
139 static const uint32_t PRB_FEFLAG2BITFLIPskip = 21;
142 static const uint32_t PRB_SERVICECODECOUNTERskip_IBL = 0;
143 static const uint32_t PRB_SERVICECODECOUNTERmask_IBL = 0x3FF;
144 static const uint32_t PRB_BITFLIPSFEFLAGskip_IBL = 10;
145 static const uint32_t PRB_BITFLIPSFEFLAGmask_IBL = 0x207F;
146 static const uint32_t PRB_SERVICECODEskip_IBL = 17;
147 static const uint32_t PRB_SERVICECODEmask_IBL = 0x3F;
148 static const uint32_t PRB_LINKNUMBERFEFLAGskip_IBL = 24;
149 static const uint32_t PRB_LINKNUMBERFEFLAGmask_IBL = 0x1F;
158 static const uint32_t PRB_DATAMASK = 0xE0000000;
159 static const uint32_t PRB_HITMASK = 0x80000000;
160 static const uint32_t PRB_LINKHEADER = 0x20000000;
161 static const uint32_t PRB_LINKTRAILER = 0x40000000;
162 static const uint32_t PRB_RAWDATA = 0x60000000;
163 static const uint32_t PRB_DATAWORD = 0x80000000;
165 static const uint32_t PRB_TIMEOUT = 0x20004000;
166 static const uint32_t PRB_FEERRORMASK = 0xF0000000;
168 static const uint32_t PRB_FEERROR2 = 0x10000000;
170 static const uint32_t PRB_UNKNOWNWORD = 0xFFFFFFFF;
173 static const uint32_t PRB_DATAWORDEMPTY = 0x1000E000;
174 static const uint32_t PRB_LINKTRAILEREMPTY = 0x03FFFFFF;
176 static const uint32_t PRB_FEERROR2CHECK = 0x001F0000;
180 static const uint32_t PRB_FEERROR_IBL = 0x00000000;