diff options
Diffstat (limited to 'gr-uhd/grc/gen_uhd_usrp_blocks.py')
-rw-r--r-- | gr-uhd/grc/gen_uhd_usrp_blocks.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py index ee8d692dd..831d69fc4 100644 --- a/gr-uhd/grc/gen_uhd_usrp_blocks.py +++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py @@ -30,11 +30,14 @@ MAIN_TMPL = """\ num_channels=\$nchan, ) \#if \$ref_clk() -self.\$(id).set_clock_config(uhd.clock_config.external(), uhd.ALL_MBOARDS); +self.\$(id).set_clock_config(uhd.clock_config.external(), uhd.ALL_MBOARDS) \#end if \#if \$sync() self.\$(id).set_time_unknown_pps(uhd.time_spec()) \#end if +\#if \$clock_rate() +self.\$(id).set_clock_rate(\$clock_rate, uhd.ALL_MBOARDS) +\#end if #for $m in range($max_mboards) \#if \$num_mboards() > $m and \$sd_spec$(m)() self.\$(id).set_subdev_spec(\$sd_spec$(m), $m) @@ -109,7 +112,7 @@ self.\$(id).set_bandwidth(\$bw$(n), $n) <param> <name>Sync</name> <key>sync</key> - <value>sync</value> + <value></value> <type>enum</type> <hide>\#if \$sync() then 'none' else 'part'#</hide> <option> @@ -122,6 +125,17 @@ self.\$(id).set_bandwidth(\$bw$(n), $n) </option> </param> <param> + <name>Clock Rate (Hz)</name> + <key>clock_rate</key> + <value>0.0</value> + <type>real</type> + <hide>\#if \$clock_rate() then 'none' else 'part'#</hide> + <option> + <name>Default</name> + <key>0.0</key> + </option> + </param> + <param> <name>Num Mboards</name> <key>num_mboards</key> <value>1</value> |