blob: 31be0320f7d36014ecc14254a0b0df141ebca6db [file] [log] [blame]
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +02001/* decoding
2 *
3 * Copyright (C) 2012 Ivan Klyuchnikov
4 * Copyright (C) 2012 Andreas Eversberg <jolly@eversberg.eu>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20#pragma once
21
Holger Hans Peter Freytherfcbc7022013-10-26 17:38:37 +020022#include <gsm_rlcmac.h>
23
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020024#include <stdint.h>
25
26class Decoding {
27public:
28 static int tlli_from_ul_data(const uint8_t *data, uint8_t len,
29 uint32_t *tlli);
Holger Hans Peter Freytherfcbc7022013-10-26 17:38:37 +020030 static uint8_t get_ms_class_by_capability(MS_Radio_Access_capability_t *cap);
Holger Hans Peter Freytherdf6b4f52013-11-24 17:05:48 +010031
32 static void extract_rbb(const uint8_t *rbb, char *extracted_rbb);
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020033};