summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPiotr Krysik <perper@o2.pl>2009-06-22 20:45:58 +0200
committerPiotr Krysik <perper@o2.pl>2009-06-22 20:45:58 +0200
commit182d18994b05d8ca886eed5bb876791a63c3833e (patch)
tree19d6fdb83368b4fb390a12c6b28067edf463e7d5 /src/lib
parent59d16fcfe6b32c36fdbe64c594234fa96473dc70 (diff)
little changes for TCH/F listening
Diffstat (limited to 'src/lib')
-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