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>
49 <name>Interface</name>
61 <name>Interpolation</name>
62 <key>interpolation</key>
66 <name>Frequency (Hz)</name>
71 <name>LO Offset (Hz)</name>
73 <value>float('inf')</value>
75 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
78 <key>float('inf')</key>
82 <name>Gain (dB)</name>
90 <vlen>$type.vlen</vlen>
93 The USRP2 sink inputs 100 Megasamples per second / interpolation.
95 Input amplitude should be between 0.0 and 1.0.
97 To use the default ethernet device, leave interface blank. \
98 For systems with only 1 USRP2, you may leave the mac address blank. \
99 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.