3 ###################################################
5 ## Note: the center freq must be set after the lo offset
6 ###################################################
9 <name>USRP2 Sink</name>
10 <key>usrp2_sink_xxxx</key>
11 <import>from gnuradio import usrp2</import>
12 <make>#if not $interface() and not $mac_addr()
13 usrp2.sink_$(type.fcn)()
15 usrp2.sink_$(type.fcn)($interface)
17 usrp2.sink_$(type.fcn)($interface, $mac_addr)
19 self.$(id).set_interp($interpolation)
20 #if $lo_offset() != float('inf')
21 self.$(id).set_lo_offset($lo_offset)
23 self.$(id).set_center_freq($frequency)
24 self.$(id).set_gain($gain)</make>
25 <callback>set_interp($interpolation)</callback>
26 <callback>#if $lo_offset() != float('inf')
27 self.$(id).set_lo_offset($lo_offset)
29 self.$(id).set_center_freq($frequency)</callback>
30 <callback>set_gain($gain)</callback>
32 <name>Output Type</name>
47 <name>Interface</name>
59 <name>Interpolation</name>
60 <key>interpolation</key>
64 <name>Frequency (Hz)</name>
69 <name>LO Offset (Hz)</name>
71 <value>float('inf')</value>
73 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
76 <key>float('inf')</key>
80 <name>Gain (dB)</name>
90 The USRP2 sink inputs 100 Megasamples per second / interpolation.
92 Input amplitude should be between 0.0 and 1.0.
94 To use the default ethernet device, leave interface blank. \
95 For systems with only 1 USRP2, you may leave the mac address blank. \
96 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.