Default initialization is as for XCCH channels (SACCH) or CS-1 encoding. Pat says: From GSM04.03sec5.1 the 40 bit parity is generated by the polynomial: g(D) = (D23 + 1)*(D17 + D3 + 1) = 1 + D3 + D17 + D23 + D26 + D40, which are the bits set in Parity initialization below.
| 1018 | // g(D) = (D23 + 1)*(D17 + D3 + 1) = 1 + D3 + D17 + D23 + D26 + D40, |
| 1019 | // which are the bits set in Parity initialization below. |
| 1020 | void SharedL1Encoder::initInterleave(int mIsize) |
| 1021 | { |
| 1022 | // Set up the interleaving buffers. |
| 1023 | for(int k = 0; k<mIsize; k++) { |
| 1024 | mI[k].resize(114); |
| 1025 | mE[k].resize(114); |
| 1026 | // Fill with zeros just to make Valgrind happy. |
| 1027 | mI[k].fill(0); |
| 1028 | mE[k].fill(0); |
| 1029 | } |
| 1030 | } |
| 1031 | |
| 1032 | SharedL1Encoder::SharedL1Encoder(): |
| 1033 | mBlockCoder(0x10004820009ULL, 40, 224), |