| 353 | |
| 354 | |
| 355 | L2Control::FrameType L2Frame::SFrameType() const |
| 356 | { |
| 357 | // Determine S-frame command type. |
| 358 | // GSM 04.06 Table 4. |
| 359 | char sBits = peekField(8+4,2); |
| 360 | static const L2Control::FrameType type[] = { |
| 361 | L2Control::RRFrame, L2Control::RNRFrame, |
| 362 | L2Control::REJFrame, L2Control::BogusFrame }; |
| 363 | return type[(int)sBits]; |
| 364 | } |
| 365 | |
| 366 | |
| 367 |