From 182d18994b05d8ca886eed5bb876791a63c3833e Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Mon, 22 Jun 2009 20:45:58 +0200 Subject: little changes for TCH/F listening --- src/lib/decoder/AUTHORS | 1 + src/lib/gsm_receiver_cf.cc | 4 ++-- src/lib/gsm_receiver_config.h | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/lib/decoder/AUTHORS (limited to 'src/lib') 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 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; -- cgit v1.2.3