diff options
Diffstat (limited to 'grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml')
-rw-r--r-- | grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml new file mode 100644 index 000000000..93405873b --- /dev/null +++ b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml @@ -0,0 +1,127 @@ +<?xml version="1.0"?> +<!-- +################################################### +##USRP2 Sink +################################################### + --> +<block> + <name>USRP2 Sink</name> + <key>usrp2_sink_xxxx</key> + <import>from gnuradio import usrp2</import> + <make>usrp2.sink_$(type.fcn)($interface, $mac_addr) +self.$(id).set_interp_rate($interpolation) +self.$(id).set_frequency($frequency) +self.$(id).set_gain($gain) +#if $auto_tr.eval +self.$(id).set_auto_tr($auto_tr) +#end if +#if $tx_enb.eval +self.$(id).set_enable($tx_enb) +#end if +</make> + <callback>set_interp_rate($interpolation)</callback> + <callback>set_frequency($frequency)</callback> + <callback>set_gain($gain)</callback> + <param> + <name>Output Type</name> + <key>type</key> + <type>enum</type> + <option> + <name>Complex</name> + <key>complex</key> + <opt>fcn:32fc</opt> + </option> + <option> + <name>Short</name> + <key>short</key> + <opt>fcn:16sc</opt> + </option> + </param> + <param> + <name>Interface</name> + <key>interface</key> + <value>eth0</value> + <type>string</type> + </param> + <param> + <name>MAC Addr</name> + <key>mac_addr</key> + <value>00:50:C2:85:3x:xx</value> + <type>string</type> + </param> + <param> + <name>Frequency</name> + <key>frequency</key> + <type>real</type> + </param> + <param> + <name>Interpolation</name> + <key>interpolation</key> + <type>int</type> + </param> + <param> + <name>Gain</name> + <key>gain</key> + <type>real</type> + </param> + <param> + <name>Auto T/R</name> + <key>auto_tr</key> + <value></value> + <type>enum</type> + <hide>$auto_tr.hide</hide> + <option> + <name>Ignore</name> + <key></key> + <opt>hide:part</opt> + </option> + <option> + <name>Enable</name> + <key>True</key> + <opt>hide:none</opt> + </option> + <option> + <name>Disable</name> + <key>False</key> + <opt>hide:none</opt> + </option> + </param> + <param> + <name>TX Enable</name> + <key>tx_enb</key> + <value></value> + <type>enum</type> + <hide>$tx_enb.hide</hide> + <option> + <name>Ignore</name> + <key></key> + <opt>hide:part</opt> + </option> + <option> + <name>Enable</name> + <key>True</key> + <opt>hide:none</opt> + </option> + <option> + <name>Disable</name> + <key>False</key> + <opt>hide:none</opt> + </option> + </param> + <sink> + <name>in</name> + <type>$type</type> + </sink> + <doc> +The USRP2 sink inputs 100 Megasamples per second / interpolation. + +--- Flex RF specific --- +The "Auto TR" and "TX Enable" settings are flex rf specific and should be left at "Ignore" unless this is a flex rf board. + +If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \ +By default, "Auto TR" is disabled. + +The "Transmit Enable" configures the transmitter to be on or off. \ +Do not leave this unconfigured. + </doc> +</block> |