Big change of the universal control channels demapper:
-simplification of the universal demapper,
-addition of hierarhical blocks for each of the demappers - so they also look well and readable in python,
-addition of helper script for compilation of the demappers.
diff --git a/grc/demapping/gsm_bcch_ccch_sdcch4_demapper.xml b/grc/demapping/gsm_bcch_ccch_sdcch4_demapper.xml
index 90b33ce..94a433e 100644
--- a/grc/demapping/gsm_bcch_ccch_sdcch4_demapper.xml
+++ b/grc/demapping/gsm_bcch_ccch_sdcch4_demapper.xml
@@ -1,62 +1,30 @@
-<?xml version="1.0"?>
<block>
<name>BCCH + CCCH + SDCCH/4 demapper</name>
<key>gsm_bcch_ccch_sdcch4_demapper</key>
+ <category></category>
<import>import grgsm</import>
- <make>grgsm.universal_ctrl_chans_demapper($timeslot_nr, $downlink_starts_fn_mod51, $downlink_channel_types, $uplink_starts_fn_mod51, $uplink_channel_types)</make>
-
+ <make>grgsm.gsm_bcch_ccch_sdcch4_demapper(
+ timeslot_nr=$timeslot_nr,
+)</make>
+ <callback>set_timeslot_nr($timeslot_nr)</callback>
<param>
- <name>Timeslot</name>
+ <name>timeslot_nr</name>
<key>timeslot_nr</key>
<value>0</value>
- <type>int</type>
- <hide>none</hide>
+ <type>raw</type>
</param>
-
- <param>
- <name>downlink_starts_fn_mod51</name>
- <key>downlink_starts_fn_mod51</key>
- <value>[2,6,12,16,22,26,32,36,42,46]</value>
- <type>int_vector</type>
- <hide>all</hide>
- </param>
-
- <param>
- <name>downlink_channel_types</name>
- <key>downlink_channel_types</key>
- <value>[1,2,2,2,7,7,7,7,135,135]</value>
- <type>int_vector</type>
- <hide>all</hide>
- </param>
-
- <param>
- <name>uplink_starts_fn_mod51</name>
- <key>uplink_starts_fn_mod51</key>
- <value>[0,6,10,37,41,47]</value>
- <type>int_vector</type>
- <hide>all</hide>
- </param>
-
- <param>
- <name>uplink_channel_types</name>
- <key>uplink_channel_types</key>
- <value>[7,135,135,7,7,7]</value>
- <type>int_vector</type>
- <hide>all</hide>
- </param>
-
<sink>
<name>bursts</name>
<type>message</type>
+ <optional>1</optional>
</sink>
<source>
<name>bursts</name>
<type>message</type>
+ <optional>1</optional>
</source>
-
- <doc>
- Demapper for BCCH + CCCH + SDCCH/4 + SACCH/C4 control channels.
- This corresponds to channel combination v specified in GSM 05.02, section 6.4
- </doc>
-</block>
-
+ <doc>Piotr Krysik
+Demapper for BCCH + CCCH + SDCCH/4 + SACCH/C4 control channels. This corresponds to channel combination v specified in GSM 05.02, section 6.4
+</doc>
+ <grc_source>gr-gsm/hier_blocks/demapping/gsm_bcch_ccch_sdcch4_demapper.grc</grc_source>
+</block>