14586cc365109c6f1910d47ab370d3c5255d7587
[debian/gnuradio] / grc / blocks / usrp2_sink_xxxx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP2 Sink
5 ##  Note: the center freq must be set after the lo offset
6 ###################################################
7  -->
8 <block>
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)()
14 #elif not $mac_addr()
15 usrp2.sink_$(type.fcn)($interface)
16 #else
17 usrp2.sink_$(type.fcn)($interface, $mac_addr)
18 #end if
19 self.$(id).set_interp($interpolation)
20 #if $lo_offset() != float('inf')
21 self.$(id).set_lo_offset($lo_offset)
22 #end if
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)
28 #end if
29 self.$(id).set_center_freq($frequency)</callback>
30         <callback>set_gain($gain)</callback>
31         <param>
32                 <name>Output Type</name>
33                 <key>type</key>
34                 <type>enum</type>
35                 <option>
36                         <name>Complex</name>
37                         <key>complex</key>
38                         <opt>fcn:32fc</opt>
39                         <opt>vlen:1</opt>
40                 </option>
41                 <option>
42                         <name>Short</name>
43                         <key>short</key>
44                         <opt>fcn:16sc</opt>
45                         <opt>vlen:2</opt>
46                 </option>
47         </param>
48         <param>
49                 <name>Interface</name>
50                 <key>interface</key>
51                 <value></value>
52                 <type>string</type>
53         </param>
54         <param>
55                 <name>MAC Addr</name>
56                 <key>mac_addr</key>
57                 <value></value>
58                 <type>string</type>
59         </param>
60         <param>
61                 <name>Interpolation</name>
62                 <key>interpolation</key>
63                 <type>int</type>
64         </param>
65         <param>
66                 <name>Frequency (Hz)</name>
67                 <key>frequency</key>
68                 <type>real</type>
69         </param>
70         <param>
71                 <name>LO Offset (Hz)</name>
72                 <key>lo_offset</key>
73                 <value>float('inf')</value>
74                 <type>real</type>
75                 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
76                 <option>
77                         <name>Default</name>
78                         <key>float('inf')</key>
79                 </option>
80         </param>
81         <param>
82                 <name>Gain (dB)</name>
83                 <key>gain</key>
84                 <value>0</value>
85                 <type>real</type>
86         </param>
87         <sink>
88                 <name>in</name>
89                 <type>$type</type>
90                 <vlen>$type.vlen</vlen>
91         </sink>
92         <doc>
93 The USRP2 sink inputs 100 Megasamples per second / interpolation.
94
95 Input amplitude should be between 0.0 and 1.0.
96
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.
100         </doc>
101 </block>