aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-04-07 13:26:59 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-04-07 13:26:59 +0200
commitd1cd527541a27ed2771996b512b4d0876dd530f1 (patch)
tree230ac1b50b8d40e5f7844aa5ccaa19f94c17cfec
parent63ebc368affaac2b8bd30716e3df48e00c2e126b (diff)
gsm0503_tables: Document USF encoding tablespespin/egprs
-rw-r--r--src/coding/gsm0503_tables.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coding/gsm0503_tables.c b/src/coding/gsm0503_tables.c
index 5fe634bf..df0abeed 100644
--- a/src/coding/gsm0503_tables.c
+++ b/src/coding/gsm0503_tables.c
@@ -63,6 +63,9 @@ const sbit_t gsm0503_pdtch_edge_hl_hn_sbit[3][8] = {
{ -127,-127, -127, 127, 127,-127, -127,-127 },
};
+/*
+ * 3GPP TS 05.03 sec 5.1.2.2 "Block code". Rows re-ordered to be indxed by USF in host bit order.
+ */
const ubit_t gsm0503_usf2six[8][6] = {
{ 0,0,0, 0,0,0 },
{ 1,0,0, 1,0,1 },
@@ -74,6 +77,9 @@ const ubit_t gsm0503_usf2six[8][6] = {
{ 1,1,1, 0,0,0 },
};
+/*
+ * 3GPP TS 05.03 sec 5.1.4.2 "Block code". Rows re-ordered to be indxed by USF in host bit order.
+ */
const ubit_t gsm0503_usf2twelve_ubit[8][12] = {
{ 0,0,0, 0,0,0, 0,0,0, 0,0,0 },
{ 1,1,0, 1,0,0, 0,0,1, 0,1,1 },