This is a local function to map the GSM::ChannelType enum to one of the codes from GMS 04.08 10.5.2.8. */
| 194 | to one of the codes from GMS 04.08 10.5.2.8. |
| 195 | */ |
| 196 | unsigned channelNeededCode(ChannelType wType) |
| 197 | { |
| 198 | switch (wType) { |
| 199 | case AnyDCCHType: return 0; |
| 200 | case SDCCHType: return 1; |
| 201 | case TCHFType: return 2; |
| 202 | case AnyTCHType: return 3; |
| 203 | default: assert(0); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | |
| 208 |