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

Method mtChannelCoding

GPRS/TBF.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142ChannelCodingType TBF::mtChannelCoding() const
143{ // Return 0 - 3 for CS-1 or CS-4 for data transfer.
144 assert(mtChannelCodingMax >= ChannelCodingCS1 && mtChannelCodingMax <= ChannelCodingCS4);
145 ChannelCodingType result;
146 if (mtChannelCodingMax == ChannelCodingCS1) {
147 result = ChannelCodingCS1; // Locked to lowest speed. No need to query the MS RSSI.
148 } else {
149 ChannelCodingType dynamicCS = mtMS->msGetChannelCoding(mtDir);
150 result = min(mtChannelCodingMax,dynamicCS);
151 }
152 mtMS->msChannelCoding.addPoint((int)result);
153 return result;
154}
155
156
157TBF::TBF(MSInfo *wms, RLCDirType wdir)

Calls 1

msGetChannelCodingMethod · 0.80

Tested by

no test coverage detected