MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / initInterleave

Method initInterleave

GSM/GSML1FEC.cpp:1020–1030  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

1018// g(D) = (D23 + 1)*(D17 + D3 + 1) = 1 + D3 + D17 + D23 + D26 + D40,
1019// which are the bits set in Parity initialization below.
1020void 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
1032SharedL1Encoder::SharedL1Encoder():
1033 mBlockCoder(0x10004820009ULL, 40, 224),

Callers

nothing calls this directly

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected