diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-26 17:32:04 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:11 +0100 |
commit | d11290b90bb5f32a7d57affbe11bdadb24e42db0 (patch) | |
tree | aad9260528d069fab731ec88b59c49b96e15913d /src/rlc.h | |
parent | 6f9f434463d6ba0d195f0b36cd67b57e24b1c7e9 (diff) |
pdch/tbf: Move gprs_rlcmac_rcv_data_block_acknowledged into the pdch
Move the method into the PDCH. Extract the finding of TLLI into a
new class called Decoding. Move the assemble and forward LLC frames
into the TBF as it is poking in the internals of the TBF.
Diffstat (limited to 'src/rlc.h')
-rw-r--r-- | src/rlc.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/rlc.h b/src/rlc.h new file mode 100644 index 00000000..df10ec37 --- /dev/null +++ b/src/rlc.h @@ -0,0 +1,56 @@ +/* rlc header descriptions + * + * Copyright (C) 2012 Ivan Klyuchnikov + * Copyright (C) 2012 Andreas Eversberg <jolly@eversberg.eu> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +#pragma once + +#include <stdint.h> + +extern "C" { +/* TS 04.60 10.2.2 */ +struct rlc_ul_header { + uint8_t r:1, + si:1, + cv:4, + pt:2; + uint8_t ti:1, + tfi:5, + pi:1, + spare:1; + uint8_t e:1, + bsn:7; +} __attribute__ ((packed)); + +struct rlc_dl_header { + uint8_t usf:3, + s_p:1, + rrbp:2, + pt:2; + uint8_t fbi:1, + tfi:5, + pr:2; + uint8_t e:1, + bsn:7; +} __attribute__ ((packed)); + +struct rlc_li_field { + uint8_t e:1, + m:1, + li:6; +} __attribute__ ((packed)); +} |