aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/l1_if.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-26 09:05:14 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:27 +0200
commita7f5e077121f857e373b6e68c5fdf803933a12dc (patch)
tree57c91123c5757ef1a84e3f9bc7aeaa4ea9f3e18b /src/osmo-bts-trx/l1_if.h
parent5e2341411f25f4faa66ff9b4506e77d897b97daf (diff)
TRX: Support for AMR full speech
Diffstat (limited to 'src/osmo-bts-trx/l1_if.h')
-rw-r--r--src/osmo-bts-trx/l1_if.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/l1_if.h b/src/osmo-bts-trx/l1_if.h
index ff5c3913..9cc8ee3b 100644
--- a/src/osmo-bts-trx/l1_if.h
+++ b/src/osmo-bts-trx/l1_if.h
@@ -65,6 +65,17 @@ struct trx_chan_state {
/* mode */
uint8_t rsl_cmode, tch_mode; /* mode for TCH channels */
+ /* AMR */
+ uint8_t codec[4]; /* 4 possible codecs for amr */
+ int codecs; /* number of possible codecs */
+ float ber_sum; /* sum of bit error rates */
+ int ber_num; /* number of bit error rates */
+ uint8_t ul_ft; /* current uplink FT index */
+ uint8_t dl_ft; /* current downlink FT index */
+ uint8_t ul_cmr; /* current uplink CMR index */
+ uint8_t dl_cmr; /* current downlink CMR index */
+ uint8_t amr_loop; /* if AMR loop is enabled */
+
/* encryption */
int ul_encr_algo; /* A5/x encry algo downlink */
int dl_encr_algo; /* A5/x encry algo uplink */