aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/gsm0503_parity.c
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2016-07-06 13:29:25 -0700
committerTom Tsou <tom@tsou.cc>2016-07-25 18:36:29 +0000
commit73cb583e5147a267a370c576e8ac77507de6d0d7 (patch)
tree01586359a10410862423aad9d819fe015a444f23 /src/osmo-bts-trx/gsm0503_parity.c
parentc9582ac2d7366233ab64f2868f17071c2ddadf32 (diff)
trx: Add EGPRS tables, sequences, and mappings
Includes EGPRS specific convolutional codes, interleaving tables and functions, burst mappings, training sequences, and parity checks from 3GPP TS 44.060 needed to handle MCS codings 1-9. Change-Id: Ie270398dd7a72f282ba53e646853d8de1eabee93 Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'src/osmo-bts-trx/gsm0503_parity.c')
-rw-r--r--src/osmo-bts-trx/gsm0503_parity.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/gsm0503_parity.c b/src/osmo-bts-trx/gsm0503_parity.c
index ba2e144a..65d35621 100644
--- a/src/osmo-bts-trx/gsm0503_parity.c
+++ b/src/osmo-bts-trx/gsm0503_parity.c
@@ -33,6 +33,29 @@ const struct osmo_crc16gen_code gsm0503_cs234_crc16 = {
.remainder = 0xffff,
};
+/*
+ * EDGE MCS header parity
+ *
+ */
+
+const struct osmo_crc8gen_code gsm0503_mcs_crc8_hdr = {
+ .bits = 8,
+ .poly = 0x49,
+ .init = 0x00,
+ .remainder = 0xff,
+};
+
+/*
+ * EDGE MCS data parity
+ *
+ */
+
+const struct osmo_crc16gen_code gsm0503_mcs_crc12 = {
+ .bits = 12,
+ .poly = 0x0d31,
+ .init = 0x0000,
+ .remainder = 0x0fff,
+};
/*
* GSM RACH parity