diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-10-17 09:24:55 +0700 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@users.noreply.github.com> | 2017-11-05 17:33:26 +0100 |
commit | 962e2d83bb0eb62e6d1222339977c2f5f23d0dbd (patch) | |
tree | b4d63645da09a45e857e3be0ec8d383ef8c062c1 /python/trx/radio_if.py | |
parent | 8e9b3075d72f0b6cb09179e68530102e2d4eb28d (diff) |
misc_utils/trx_burst_if: get rid of built-in timeslot filter
Since the API of 'Timeslot Filter' block was exposed, we can
get rid of built-in timeslot filter and use the proper methods.
Diffstat (limited to 'python/trx/radio_if.py')
-rw-r--r-- | python/trx/radio_if.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 661025a..5791f42 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py @@ -98,6 +98,9 @@ class radio_if(gr.top_block): self.gsm_clck_ctrl = grgsm.clock_offset_control( shift_fc, self.samp_rate, osr = 4) + self.gsm_ts_filter = grgsm.burst_timeslot_filter(0) + self.gsm_ts_filter.set_policy(grgsm.FILTER_POLICY_DROP_ALL) + self.gsm_trx_burst_if = grgsm.trx_burst_if( self.trx_remote_addr, str(self.trx_base_port)) @@ -115,6 +118,9 @@ class radio_if(gr.top_block): (self.gsm_input, 'ctrl_in')) self.msg_connect((self.gsm_receiver, 'C0'), + (self.gsm_ts_filter, 'in')) + + self.msg_connect((self.gsm_ts_filter, 'out'), (self.gsm_trx_burst_if, 'bursts')) def check_available(self): |