Add USRP2 clock source parameter to GRC blocks.
[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)
25 self.$(id).config_mimo($usrp2_clock_src)</make>
26         <callback>set_interp($interpolation)</callback>
27         <callback>#if $lo_offset() != float('inf')
28 self.$(id).set_lo_offset($lo_offset)
29 #end if
30 self.$(id).set_center_freq($frequency)</callback>
31         <callback>set_gain($gain)</callback>
32         <param>
33                 <name>Output Type</name>
34                 <key>type</key>
35                 <type>enum</type>
36                 <option>
37                         <name>Complex</name>
38                         <key>complex</key>
39                         <opt>fcn:32fc</opt>
40                         <opt>vlen:1</opt>
41                 </option>
42                 <option>
43                         <name>Short</name>
44                         <key>short</key>
45                         <opt>fcn:16sc</opt>
46                         <opt>vlen:2</opt>
47                 </option>
48         </param>
49         <param>
50                 <name>Interface</name>
51                 <key>interface</key>
52                 <value></value>
53                 <type>string</type>
54         </param>
55         <param>
56                 <name>MAC Addr</name>
57                 <key>mac_addr</key>
58                 <value></value>
59                 <type>string</type>
60         </param>
61         <param>
62                 <name>Interpolation</name>
63                 <key>interpolation</key>
64                 <type>int</type>
65         </param>
66         <param>
67                 <name>Frequency (Hz)</name>
68                 <key>frequency</key>
69                 <type>real</type>
70         </param>
71         <param>
72                 <name>LO Offset (Hz)</name>
73                 <key>lo_offset</key>
74                 <value>float('inf')</value>
75                 <type>real</type>
76                 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
77                 <option>
78                         <name>Default</name>
79                         <key>float('inf')</key>
80                 </option>
81         </param>
82         <param>
83                 <name>Gain (dB)</name>
84                 <key>gain</key>
85                 <value>0</value>
86                 <type>real</type>
87         </param>
88         <param>
89                 <name>Clock Source</name>
90                 <key>usrp2_clock_src</key>
91                 <value>usrp2.MC_WE_DONT_LOCK</value>
92                 <type>enum</type>
93                 <option>
94                         <name>Internal</name>
95                         <key>usrp2.MC_WE_DONT_LOCK</key>
96                 </option>
97                 <option>
98                         <name>External SMA</name>
99                         <key>usrp2.MC_WE_LOCK_TO_SMA</key>
100                 </option>
101                 <option>
102                         <name>External MIMO</name>
103                         <key>usrp2.MC_WE_LOCK_TO_MIMO</key>
104                 </option>
105         </param>
106         <sink>
107                 <name>in</name>
108                 <type>$type</type>
109                 <vlen>$type.vlen</vlen>
110         </sink>
111         <doc>
112 The USRP2 sink inputs 100 Megasamples per second / interpolation.
113
114 Input amplitude should be between 0.0 and 1.0.
115
116 To use the default ethernet device, leave interface blank. \
117 For systems with only 1 USRP2, you may leave the mac address blank. \
118 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
119         </doc>
120 </block>