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

Method L1Encoder

GSM/GSML1FEC.cpp:200–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199
200L1Encoder::L1Encoder(unsigned wCN, unsigned wTN, const TDMAMapping& wMapping, L1FEC *wParent)
201 :mDownstream(NULL),
202 mMapping(wMapping),
203 mCN(wCN),mTN(wTN),
204 mTSC(gBTS.BCC()), // Note that TSC (Training Sequence Code) is hardcoded to the BCC.
205 mParent(wParent),
206 mTotalBursts(0),
207 mPrevWriteTime(gBTS.time().FN(),wTN),
208 mNextWriteTime(gBTS.time().FN(),wTN),
209 mRunning(false),mActive(false),
210 mEncrypted(ENCRYPT_NO),
211 mEncryptionAlgorithm(0)
212{
213 assert((int)mCN<gConfig.getNum("GSM.Radio.ARFCNs"));
214#ifndef TESTTCHL1FEC
215 assert(mMapping.allowedSlot(mTN));
216 assert(mMapping.downlink());
217 mNextWriteTime.rollForward(mMapping.frameMapping(0),mMapping.repeatLength());
218 mPrevWriteTime.rollForward(mMapping.frameMapping(0),mMapping.repeatLength());
219#endif // TESTTCHL1FEC
220 // Compatibility with C0 will be checked in the ARFCNManager.
221 // Build the descriptive string.
222 ostringstream ss;
223 ss << wMapping.typeAndOffset();
224 //sprintf(mDescriptiveString,"C%dT%d %s", wCN, wTN, ss.str().c_str());
225 mDescriptiveString = format("C%dT%d %s", wCN, wTN, ss.str().c_str());
226}
227
228
229void L1Encoder::rollForward()

Callers

nothing calls this directly

Calls 10

BCCMethod · 0.80
allowedSlotMethod · 0.80
frameMappingMethod · 0.80
repeatLengthMethod · 0.80
FNMethod · 0.45
timeMethod · 0.45
downlinkMethod · 0.45
rollForwardMethod · 0.45
typeAndOffsetMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected