Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 1 | <block> |
| 2 | <name>Clock Offset Corrector Tagged</name> |
| 3 | <key>gsm_clock_offset_corrector_tagged</key> |
Piotr Krysik | d1ca389 | 2016-07-17 11:33:50 +0200 | [diff] [blame] | 4 | <import>import grgsm</import> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 5 | <make>grgsm.clock_offset_corrector_tagged( |
| 6 | fc=$fc, |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 7 | samp_rate_in=$samp_rate_in, |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 8 | ppm=$ppm, |
| 9 | osr=$osr |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 10 | )</make> |
| 11 | <callback>set_fc($fc)</callback> |
| 12 | <callback>set_ppm($ppm)</callback> |
| 13 | <callback>set_samp_rate_in($samp_rate_in)</callback> |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 14 | <callback>set_osr($osr)</callback> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 15 | <param> |
| 16 | <name>fc</name> |
| 17 | <key>fc</key> |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 18 | <value>936.6e6</value> |
| 19 | <type>raw</type> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 20 | </param> |
| 21 | <param> |
| 22 | <name>ppm</name> |
| 23 | <key>ppm</key> |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 24 | <value>0</value> |
| 25 | <type>raw</type> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 26 | </param> |
| 27 | <param> |
| 28 | <name>samp_rate_in</name> |
| 29 | <key>samp_rate_in</key> |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 30 | <value>1625000.0/6.0*4.0</value> |
| 31 | <type>raw</type> |
| 32 | </param> |
| 33 | <param> |
| 34 | <name>OSR</name> |
| 35 | <key>osr</key> |
| 36 | <value>osr</value> |
| 37 | <type>raw</type> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 38 | </param> |
| 39 | <sink> |
| 40 | <name>ctrl</name> |
| 41 | <type>message</type> |
| 42 | <optional>1</optional> |
| 43 | </sink> |
| 44 | <sink> |
| 45 | <name>in</name> |
| 46 | <type>complex</type> |
| 47 | <vlen>1</vlen> |
| 48 | </sink> |
| 49 | <source> |
| 50 | <name>out</name> |
| 51 | <type>complex</type> |
| 52 | <vlen>1</vlen> |
| 53 | </source> |
| 54 | <doc>Piotr Krysik |
| 55 | Clock offset corrector with blocks that use tags to switch offsets |
Piotr Krysik | 83afe73 | 2016-07-17 22:48:35 +0200 | [diff] [blame] | 56 | </doc> |
Piotr Krysik | 0982673 | 2016-07-15 13:14:24 +0200 | [diff] [blame] | 57 | </block> |