summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/decoder/AUTHORS1
-rw-r--r--src/lib/gsm_receiver_cf.cc4
-rw-r--r--src/lib/gsm_receiver_config.h4
3 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/decoder/AUTHORS b/src/lib/decoder/AUTHORS
new file mode 100644
index 0000000..dcc5998
--- /dev/null
+++ b/src/lib/decoder/AUTHORS
@@ -0,0 +1 @@
+Harald Welte <laforge@gnumonks.org>
diff --git a/src/lib/gsm_receiver_cf.cc b/src/lib/gsm_receiver_cf.cc
index 2081e07..f94e303 100644
--- a/src/lib/gsm_receiver_cf.cc
+++ b/src/lib/gsm_receiver_cf.cc
@@ -59,8 +59,8 @@ void gsm_receiver_cf::configure_receiver()
d_channel_conf.set_burst_types(TSC0, TEST_CCH_FRAMES, sizeof(TEST_CCH_FRAMES) / sizeof(unsigned), normal_burst);
d_channel_conf.set_burst_types(TSC0, FCCH_FRAMES, sizeof(FCCH_FRAMES) / sizeof(unsigned), fcch_burst);
-// d_channel_conf.set_multiframe_type(TIMESLOT7, multiframe_26);
-// d_channel_conf.set_burst_types(TIMESLOT7, TRAFFIC_CHANNEL_F, sizeof(TRAFFIC_CHANNEL_F) / sizeof(unsigned), dummy_or_normal);
+ d_channel_conf.set_multiframe_type(TIMESLOT7, multiframe_26);
+ d_channel_conf.set_burst_types(TIMESLOT7, TRAFFIC_CHANNEL_F, sizeof(TRAFFIC_CHANNEL_F) / sizeof(unsigned), dummy_or_normal);
}
diff --git a/src/lib/gsm_receiver_config.h b/src/lib/gsm_receiver_config.h
index 25a3efc..b7ba43a 100644
--- a/src/lib/gsm_receiver_config.h
+++ b/src/lib/gsm_receiver_config.h
@@ -122,6 +122,10 @@ class burst_counter
uint32_t get_frame_nr() {
return (51 * 26 * d_t1) + (51 * (((d_t3 + 26) - d_t2) % 26)) + d_t3;
}
+
+ uint32_t get_frame_nr_mod() {
+ return (d_t1 << 11) + (d_t3 << 5) + d_t2;
+ }
unsigned get_offset() {
return (unsigned)d_offset_integer;
personal git repositories of Harald Welte. Your mileage may vary