aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-08 19:05:37 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-08 19:05:45 +0300
commitdd7bed3415a452ee80a082750b7acd41659ab9a9 (patch)
treedf67b20c40d10d43da51226a5186eb07676697e5
parent94806cee7bc21c13cbe0fb5d0b8a8c890c8ae1d3 (diff)
osmo-bts-trx: rx_tchf_fn(): clarify indexes in the AMR CMI lookup table
-rw-r--r--src/osmo-bts-trx/sched_lchan_tchf.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c
index 9e88ce9e..f886e594 100644
--- a/src/osmo-bts-trx/sched_lchan_tchf.c
+++ b/src/osmo-bts-trx/sched_lchan_tchf.c
@@ -45,11 +45,18 @@
#include <sched_utils.h>
#include <loops.h>
-/* 3GPP TS 45.009, table 3.2.1.3-{1,3}: AMR on Uplink TCH/F */
+/* 3GPP TS 45.009, table 3.2.1.3-{1,3}: AMR on Uplink TCH/F.
+ *
+ * +---+---+---+---+---+---+---+---+
+ * | a | b | c | d | e | f | g | h | Burst 'a' received first
+ * +---+---+---+---+---+---+---+---+
+ * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Speech/FACCH frame (bursts 'a' .. 'h')
+ *
+ * TDMA frame number of burst 'h' is always used as the table index. */
static const uint8_t sched_tchf_ul_amr_cmi_map[26] = {
- [7] = 1, /* TCH/F: first=0 / last=7 */
- [16] = 1, /* TCH/F: first=8 / last=16 */
- [24] = 1, /* TCH/F: first=17 / last=24 */
+ [7] = 1, /* TCH/F: a=0 / h=7 */
+ [16] = 1, /* TCH/F: a=8 / h=16 */
+ [24] = 1, /* TCH/F: a=17 / h=24 */
};
/*! \brief a single TCH/F burst was received by the PHY, process it */