| 140 | } |
| 141 | |
| 142 | ChannelCodingType 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 | |
| 157 | TBF::TBF(MSInfo *wms, RLCDirType wdir) |
no test coverage detected