summaryrefslogtreecommitdiff
path: root/gr-usrp/grc/usrp_simple_sink_x.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-usrp/grc/usrp_simple_sink_x.xml')
-rw-r--r--gr-usrp/grc/usrp_simple_sink_x.xml133
1 files changed, 133 insertions, 0 deletions
diff --git a/gr-usrp/grc/usrp_simple_sink_x.xml b/gr-usrp/grc/usrp_simple_sink_x.xml
new file mode 100644
index 000000000..e52b5f047
--- /dev/null
+++ b/gr-usrp/grc/usrp_simple_sink_x.xml
@@ -0,0 +1,133 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##USRP Simple Sink
+###################################################
+ -->
+<block>
+ <name>USRP1 Sink</name>
+ <key>usrp_simple_sink_x</key>
+ <category>USRP</category>
+ <import>from grc_gnuradio import usrp as grc_usrp</import>
+ <make>grc_usrp.simple_sink_$(type.fcn)(which=$which, side=$side)
+self.$(id).set_interp_rate($interpolation)
+self.$(id).set_frequency($frequency, verbose=True#slurp
+#if $lo_offset() != float('inf')
+, lo_offset=$lo_offset#slurp
+#end if
+)
+self.$(id).set_gain($gain)
+#if $transmit.tx_enb
+self.$(id).set_enable(True)
+#end if
+#if $transmit.auto_tr
+self.$(id).set_auto_tr(True)
+#end if</make>
+ <callback>set_interp_rate($interpolation)</callback>
+ <callback>set_frequency($frequency#slurp
+#if $lo_offset() != float('inf')
+, lo_offset=$lo_offset#slurp
+#end if
+)</callback>
+ <callback>set_gain($gain)</callback>
+ <param>
+ <name>Input Type</name>
+ <key>type</key>
+ <type>enum</type>
+ <option>
+ <name>Complex</name>
+ <key>complex</key>
+ <opt>fcn:c</opt>
+ </option>
+ <option>
+ <name>Short</name>
+ <key>short</key>
+ <opt>fcn:s</opt>
+ </option>
+ </param>
+ <param>
+ <name>Unit Number</name>
+ <key>which</key>
+ <value>0</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Interpolation</name>
+ <key>interpolation</key>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Frequency (Hz)</name>
+ <key>frequency</key>
+ <type>real</type>
+ </param>
+ <param>
+ <name>LO Offset (Hz)</name>
+ <key>lo_offset</key>
+ <value>float('inf')</value>
+ <type>real</type>
+ <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
+ <option>
+ <name>Default</name>
+ <key>float('inf')</key>
+ </option>
+ </param>
+ <param>
+ <name>Gain (dB)</name>
+ <key>gain</key>
+ <value>0</value>
+ <type>real</type>
+ </param>
+ <param>
+ <name>Side</name>
+ <key>side</key>
+ <value>A</value>
+ <type>string</type>
+ <option>
+ <name>A</name>
+ <key>A</key>
+ </option>
+ <option>
+ <name>B</name>
+ <key>B</key>
+ </option>
+ </param>
+ <param>
+ <name>Transmit</name>
+ <key>transmit</key>
+ <value></value>
+ <type>enum</type>
+ <hide>#if $transmit.tx_enb then 'none' else 'part'#</hide>
+ <option>
+ <name>Unconfigured</name>
+ <key></key>
+ <opt>tx_enb:</opt>
+ <opt>auto_tr:</opt>
+ </option>
+ <option>
+ <name>Enable</name>
+ <key>tx_enb</key>
+ <opt>tx_enb:1</opt>
+ <opt>auto_tr:</opt>
+ </option>
+ <option>
+ <name>Auto T/R</name>
+ <key>auto_tr</key>
+ <opt>tx_enb:1</opt>
+ <opt>auto_tr:1</opt>
+ </option>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>$type</type>
+ </sink>
+ <doc>
+The USRP sink inputs 128 Megasamples per second / interpolation.
+
+Input amplitude should be between 0 and 32767.
+
+Flex RF boards only: The "Transmit Setting" must be configured. \
+When set to "Enable" the transmitter is always on. \
+When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.
+ </doc>
+</block>