aboutsummaryrefslogtreecommitdiffstats
path: root/grc/misc_utils/gsm_clock_offset_corrector.xml
diff options
context:
space:
mode:
Diffstat (limited to 'grc/misc_utils/gsm_clock_offset_corrector.xml')
-rw-r--r--grc/misc_utils/gsm_clock_offset_corrector.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/grc/misc_utils/gsm_clock_offset_corrector.xml b/grc/misc_utils/gsm_clock_offset_corrector.xml
new file mode 100644
index 0000000..7fe4a4d
--- /dev/null
+++ b/grc/misc_utils/gsm_clock_offset_corrector.xml
@@ -0,0 +1,58 @@
+<?xml version='1.0' encoding='ASCII'?>
+<block>
+ <name>Clock offset corrector</name>
+ <key>clock_offset_corrector</key>
+ <category>GSM</category>
+ <import>import gsm</import>
+ <make>gsm.clock_offset_corrector(
+ fc=$fc,
+ ppm=$ppm,
+ samp_rate_in=$samp_rate_in,
+ samp_rate_out=$samp_rate_out,
+)</make>
+ <callback>set_fc($fc)</callback>
+ <callback>set_ppm($ppm)</callback>
+ <callback>set_samp_rate_in($samp_rate_in)</callback>
+ <callback>set_samp_rate_out($samp_rate_out)</callback>
+ <param>
+ <name>fc</name>
+ <key>fc</key>
+ <value>936.6e6</value>
+ <type>raw</type>
+ </param>
+ <param>
+ <name>ppm</name>
+ <key>ppm</key>
+ <value>0</value>
+ <type>raw</type>
+ </param>
+ <param>
+ <name>samp_rate_in</name>
+ <key>samp_rate_in</key>
+ <value>1625000.0/6.0*4.0</value>
+ <type>raw</type>
+ </param>
+ <param>
+ <name>samp_rate_out</name>
+ <key>samp_rate_out</key>
+ <value>1625000.0/6.0*4.0</value>
+ <type>raw</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ <vlen>1</vlen>
+ </sink>
+ <sink>
+ <name>ppm_in</name>
+ <type>message</type>
+ <optional>True</optional>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ <vlen>1</vlen>
+ </source>
+ <doc>Piotr Krysik</doc>
+<!-- <grc_source></grc_source> -->
+</block>