aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/l1_if.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-14 07:56:05 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:27 +0200
commit84b9a445351937703334629f3fec02689153f986 (patch)
treef66ca064ed111eed011491332213be3bb3d20293 /src/osmo-bts-trx/l1_if.h
parent7ff22823ca8e2dd1e990578a2dbf6942b1911eed (diff)
TRX: Code cleanup, prepare for other codecs than GSM full rate
Diffstat (limited to 'src/osmo-bts-trx/l1_if.h')
-rw-r--r--src/osmo-bts-trx/l1_if.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/l1_if.h b/src/osmo-bts-trx/l1_if.h
index eea49639..459496f6 100644
--- a/src/osmo-bts-trx/l1_if.h
+++ b/src/osmo-bts-trx/l1_if.h
@@ -48,20 +48,28 @@ enum trx_chan_type {
/* States each channel on a multiframe */
struct trx_chan_state {
- uint8_t dl_active; /* Channel is active for TX */
- uint8_t ul_active; /* Channel is active for RX */
+ /* scheduler */
+ uint8_t active; /* Channel is active */
ubit_t *dl_bursts; /* burst buffer for TX */
sbit_t *ul_bursts; /* burst buffer for RX */
uint32_t ul_first_fn; /* fn of first burst */
uint8_t ul_mask; /* mask of received bursts */
+
+ /* loss detection */
uint8_t lost; /* (SACCH) loss detection */
+
+ /* mode */
uint8_t rsl_cmode, tch_mode; /* mode for TCH channels */
+
+ /* encryption */
int ul_encr_algo; /* A5/x encry algo downlink */
int dl_encr_algo; /* A5/x encry algo uplink */
int ul_encr_key_len;
int dl_encr_key_len;
uint8_t ul_encr_key[8];
uint8_t dl_encr_key[8];
+
+ /* measurements */
struct {
uint8_t clock; /* cyclic clock counter */
int8_t rssi[32]; /* last RSSI values */