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

Method init

Transceiver52M/Transceiver.cpp:91–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91bool Transceiver::init()
92{
93 if (!sigProcLibSetup(mSPSTx)) {
94 LOG(ALERT) << "Failed to initialize signal processing library";
95 return false;
96 }
97
98 // initialize filler tables with dummy bursts
99 for (int i = 0; i < 8; i++) {
100 signalVector* modBurst = modulateBurst(gDummyBurst,
101 8 + (i % 4 == 0),
102 mSPSTx);
103 if (!modBurst) {
104 sigProcLibDestroy();
105 LOG(ALERT) << "Failed to initialize filler table";
106 return false;
107 }
108
109 scaleVector(*modBurst,txFullScale);
110 fillerModulus[i]=26;
111 for (int j = 0; j < 102; j++) {
112 fillerTable[j][i] = new signalVector(*modBurst);
113 }
114
115 delete modBurst;
116 mChanType[i] = NONE;
117 channelResponse[i] = NULL;
118 DFEForward[i] = NULL;
119 DFEFeedback[i] = NULL;
120 channelEstimateTime[i] = mTransmitDeadlineClock;
121 }
122
123 return true;
124}
125
126radioVector *Transceiver::fixRadioVector(BitVector &burst,
127 int RSSI,

Callers

nothing calls this directly

Calls 4

sigProcLibSetupFunction · 0.70
modulateBurstFunction · 0.70
sigProcLibDestroyFunction · 0.70
scaleVectorFunction · 0.70

Tested by

no test coverage detected