summaryrefslogtreecommitdiff
path: root/gr-uhd/grc
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-05 17:35:16 -0700
committerJosh Blum <josh@joshknows.com>2010-08-05 17:35:16 -0700
commit068cac15d2d4ef787dee7bcbb1158c03805b2656 (patch)
treec48c7ef823bae0ee44ce6126bba086d9e9c3d92a /gr-uhd/grc
parentc3c4303b9fa4987369e9641ab4206724da74f3b2 (diff)
uhd: added subdev spec setting to gr-uhd blocks, and simple uhd grc wrappers (mimo coming)
Diffstat (limited to 'gr-uhd/grc')
-rw-r--r--gr-uhd/grc/uhd_simple_sink.xml8
-rw-r--r--gr-uhd/grc/uhd_simple_source.xml8
2 files changed, 16 insertions, 0 deletions
diff --git a/gr-uhd/grc/uhd_simple_sink.xml b/gr-uhd/grc/uhd_simple_sink.xml
index 2992f650e3..782b984aeb 100644
--- a/gr-uhd/grc/uhd_simple_sink.xml
+++ b/gr-uhd/grc/uhd_simple_sink.xml
@@ -10,6 +10,7 @@
<category>UHD</category>
<import>from gnuradio import uhd</import>
<make>uhd.simple_sink($args, uhd.io_type_t.$type.type)
+self.$(id).set_subdev_spec($sd_spec)
self.$(id).set_samp_rate($samp_rate)
self.$(id).set_center_freq($center_freq)
self.$(id).set_gain($gain)
@@ -44,6 +45,13 @@ self.$(id).set_antenna($ant)
<type>string</type>
</param>
<param>
+ <name>Subdev Spec</name>
+ <key>sd_spec</key>
+ <value></value>
+ <type>string</type>
+ <hide>#if $sd_spec() then 'none' else 'part'#</hide>
+ </param>
+ <param>
<name>Samp Rate (Sps)</name>
<key>samp_rate</key>
<value>samp_rate</value>
diff --git a/gr-uhd/grc/uhd_simple_source.xml b/gr-uhd/grc/uhd_simple_source.xml
index ecd9639285..ae7518803e 100644
--- a/gr-uhd/grc/uhd_simple_source.xml
+++ b/gr-uhd/grc/uhd_simple_source.xml
@@ -10,6 +10,7 @@
<category>UHD</category>
<import>from gnuradio import uhd</import>
<make>uhd.simple_source($args, uhd.io_type_t.$type.type)
+self.$(id).set_subdev_spec($sd_spec)
self.$(id).set_samp_rate($samp_rate)
self.$(id).set_center_freq($center_freq)
self.$(id).set_gain($gain)
@@ -44,6 +45,13 @@ self.$(id).set_antenna($ant)
<type>string</type>
</param>
<param>
+ <name>Subdev Spec</name>
+ <key>sd_spec</key>
+ <value></value>
+ <type>string</type>
+ <hide>#if $sd_spec() then 'none' else 'part'#</hide>
+ </param>
+ <param>
<name>Samp Rate (Sps)</name>
<key>samp_rate</key>
<value>samp_rate</value>