blob: df10ec37059e382e0cc73dfdd0a7beb1336bed41 [file] [log] [blame]
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +02001/* rlc header descriptions
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
22#include <stdint.h>
23
24extern "C" {
25/* TS 04.60 10.2.2 */
26struct rlc_ul_header {
27 uint8_t r:1,
28 si:1,
29 cv:4,
30 pt:2;
31 uint8_t ti:1,
32 tfi:5,
33 pi:1,
34 spare:1;
35 uint8_t e:1,
36 bsn:7;
37} __attribute__ ((packed));
38
39struct rlc_dl_header {
40 uint8_t usf:3,
41 s_p:1,
42 rrbp:2,
43 pt:2;
44 uint8_t fbi:1,
45 tfi:5,
46 pr:2;
47 uint8_t e:1,
48 bsn:7;
49} __attribute__ ((packed));
50
51struct rlc_li_field {
52 uint8_t e:1,
53 m:1,
54 li:6;
55} __attribute__ ((packed));
56}