Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / usrp2_sink_xxxx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP2 Sink
5 ###################################################
6  -->
7 <block>
8         <name>USRP2 Sink</name>
9         <key>usrp2_sink_xxxx</key>
10         <import>from gnuradio import usrp2</import>
11         <make>#if not $interface() and not $mac_addr()
12 usrp2.sink_$(type.fcn)()
13 #elif not $mac_addr()
14 usrp2.sink_$(type.fcn)($interface)
15 #else
16 usrp2.sink_$(type.fcn)($interface, $mac_addr)
17 #end if
18 self.$(id).set_interp($interpolation)
19 self.$(id).set_center_freq($frequency)
20 self.$(id).set_gain($gain)
21 #if $lo_offset() != float('inf')
22 self.$(id).set_lo_offset($lo_offset)
23 #end if</make>
24         <callback>set_lo_offset($lo_offset)</callback>
25         <callback>set_interp($interpolation)</callback>
26         <callback>set_center_freq($frequency)</callback>
27         <callback>set_gain($gain)</callback>
28         <param>
29                 <name>Output Type</name>
30                 <key>type</key>
31                 <type>enum</type>
32                 <option>
33                         <name>Complex</name>
34                         <key>complex</key>
35                         <opt>fcn:32fc</opt>
36                 </option>
37                 <option>
38                         <name>Short</name>
39                         <key>short</key>
40                         <opt>fcn:16sc</opt>
41                 </option>
42         </param>
43         <param>
44                 <name>Interface</name>
45                 <key>interface</key>
46                 <value></value>
47                 <type>string</type>
48         </param>
49         <param>
50                 <name>MAC Addr</name>
51                 <key>mac_addr</key>
52                 <value></value>
53                 <type>string</type>
54         </param>
55         <param>
56                 <name>Interpolation</name>
57                 <key>interpolation</key>
58                 <type>int</type>
59         </param>
60         <param>
61                 <name>Frequency (Hz)</name>
62                 <key>frequency</key>
63                 <type>real</type>
64         </param>
65         <param>
66                 <name>LO Offset (Hz)</name>
67                 <key>lo_offset</key>
68                 <value>float('inf')</value>
69                 <type>real</type>
70                 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
71                 <option>
72                         <name>Default</name>
73                         <key>float('inf')</key>
74                 </option>
75         </param>
76         <param>
77                 <name>Gain (dB)</name>
78                 <key>gain</key>
79                 <value>0</value>
80                 <type>real</type>
81         </param>
82         <sink>
83                 <name>in</name>
84                 <type>$type</type>
85         </sink>
86         <doc>
87 The USRP2 sink inputs 100 Megasamples per second / interpolation.
88
89 Input amplitude should be between 0.0 and 1.0.
90
91 To use the default ethernet device, leave interface blank. \
92 For systems with only 1 USRP2, you may leave the mac address blank. \
93 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
94         </doc>
95 </block>