USRP2 Sourceusrp2_source_xxxxfrom gnuradio import usrp2#if not $interface.eval and not $mac_addr.eval
usrp2.source_$(type.fcn)()
#elif not $mac_addr.eval
usrp2.source_$(type.fcn)($interface)
#else
usrp2.source_$(type.fcn)($interface, $mac_addr)
#end if
self.$(id).set_decim($decimation)
self.$(id).set_center_freq($frequency)
self.$(id).set_gain($gain)
#if $auto_tr.eval
self.$(id).set_auto_tr($auto_tr)
#end if
#if $rx_ant.eval
self.$(id).select_rx_antenna($rx_ant)
#end if
set_decim($decimation)set_center_freq($frequency)set_gain($gain)Output TypetypeenumInterfaceinterfacestringMAC Addrmac_addrstringFrequencyfrequencyrealDecimationdecimationintGaingainrealAuto T/Rauto_trenum$auto_tr.hideRX Antennarx_antenum$rx_ant.hide
The USRP2 source outputs 100 Megasamples per second / decimation.
To use the default ethernet device, leave interface blank. \
For systems with only 1 USRP2, you may leave the mac address blank. \
For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
--- Flex RF specific ---
The "Auto TR" and "RX Antenna" 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 "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
By default, 'TX/RX' is selected.