17 auto supercells = inFrame;
23 for(
auto&
icell:supercells)
32 dataToLoad.at(0) = (bcId56 << 8) | ((supercells.at(0)&0xff) <<10) |
33 ((supercells.at(1)&0xff) << 20) | (bcId34 << 30);
34 dataToLoad.at(1) = (supercells.at(2)&0xff) | ((supercells.at(3)&0xff) << 10) |
35 ((supercells.at(4)&0xff) << 20);
36 dataToLoad.at(2) = (supercells.at(5)&0xff) | ((supercells.at(6)&0xff) << 10) |
37 ((supercells.at(7)&0xff) << 20);
38 dataToLoad.at(3) = (supercells.at(8)&0xff) | ((supercells.at(9)&0xff) << 10) |
39 ((supercells.at(10)&0xff) << 20);
40 dataToLoad.at(4) = (supercells.at(11)&0xff) | ((supercells.at(12)&0xff) << 10) |
41 ((supercells.at(13)&0xff) << 20);
42 dataToLoad.at(5) = (supercells.at(14)&0xff) | ((supercells.at(15)&0xff) << 10) ;
43 dataToLoad.at(6) = bcIdFull | bcId02 << 20;
48 dataToLoad.at(0) =
K_28_5 | dataToLoad.at(0) ;
49 dataToLoad[6] = dataToLoad[6] | ( myCRCReminder << 23) ;
58 dataToLoad.at(6) =
bcId;
59 dataToLoad.at(0) = (
K_28_0 << 8) | dataToLoad.at(0) ;
64 dataToLoad.at(0) =
K_28_5 | dataToLoad.at(0) ;
65 dataToLoad[6] = dataToLoad[6] | ( myCRCReminder << 23) ;
84 controlWords.at(0) = 0x1;
88 controlWords.at(0) = 0x3;
99 auto inputData = encodedData;
105 inputData.at(0) = inputData.at(0) & 0xffffff00;
106 CRCCheck =
crc9d32(inputData,7
l,
true);
110 inputData.at(0) = inputData.at(0) & 0xffffff00;
111 CRCCheck =
crc9d32(inputData,7
l,
true);
116 return (CRCCheck == 0);
121 myDataWord BcNumber = encodedData.at(6) & 0xfff;
132 std::vector<myDataWord> unpackedData;
140 supercells[0] = (encodedData[0] >> 10) & 0x3ff;
141 supercells[1] = (encodedData[0] >> 20) & 0x3ff;
142 supercells[2] = (encodedData[1] ) & 0x3ff;
143 supercells[3] = (encodedData[1] >> 10) & 0x3ff;
144 supercells[4] = (encodedData[1] >> 20) & 0x3ff;
145 supercells[5] = (encodedData[2] ) & 0x3ff;
146 supercells[6] = (encodedData[2] >> 10) & 0x3ff;
147 supercells[7] = (encodedData[2] >> 20) & 0x3ff;
148 supercells[8] = (encodedData[3] ) & 0x3ff;
149 supercells[9] = (encodedData[3] >> 10) & 0x3ff;
150 supercells[10] = (encodedData[3] >> 20) & 0x3ff;
151 supercells[11] = (encodedData[4] ) & 0x3ff;
152 supercells[12] = (encodedData[4] >> 10) & 0x3ff;
153 supercells[13] = (encodedData[4] >> 20) & 0x3ff;
154 supercells[14] = (encodedData.at(5) ) & 0x3ff;
155 supercells.at(15) = (encodedData[5] >> 10) & 0x3ff;
157 unpackedData=std::move(supercells);