new and improved simple/dual usrp blocks and wrapper classes
[debian/gnuradio] / grc / data / platforms / python / blocks / usrp2_source_xxxx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP2 Source
5 ###################################################
6  -->
7 <block>
8         <name>USRP2 Source</name>
9         <key>usrp2_source_xxxx</key>
10         <import>from gnuradio import usrp2</import>
11         <make>#if not $interface.eval and not $mac_addr.eval
12 usrp2.source_$(type.fcn)()
13 #elif not $mac_addr.eval
14 usrp2.source_$(type.fcn)($interface)
15 #else
16 usrp2.source_$(type.fcn)($interface, $mac_addr)
17 #end if
18 self.$(id).set_decim($decimation)
19 self.$(id).set_center_freq($frequency)
20 self.$(id).set_gain($gain)</make>
21         <callback>set_decim($decimation)</callback>
22         <callback>set_center_freq($frequency)</callback>
23         <callback>set_gain($gain)</callback>
24         <param>
25                 <name>Output Type</name>
26                 <key>type</key>
27                 <type>enum</type>
28                 <option>
29                         <name>Complex</name>
30                         <key>complex</key>
31                         <opt>fcn:32fc</opt>
32                 </option>
33                 <option>
34                         <name>Short</name>
35                         <key>short</key>
36                         <opt>fcn:16sc</opt>
37                 </option>
38         </param>
39         <param>
40                 <name>Interface</name>
41                 <key>interface</key>
42                 <value></value>
43                 <type>string</type>
44         </param>
45         <param>
46                 <name>MAC Addr</name>
47                 <key>mac_addr</key>
48                 <value></value>
49                 <type>string</type>
50         </param>
51         <param>
52                 <name>Frequency</name>
53                 <key>frequency</key>
54                 <type>real</type>
55         </param>
56         <param>
57                 <name>Decimation</name>
58                 <key>decimation</key>
59                 <type>int</type>
60         </param>
61         <param>
62                 <name>Gain</name>
63                 <key>gain</key>
64                 <type>real</type>
65         </param>
66         <source>
67                 <name>out</name>
68                 <type>$type</type>
69         </source>
70         <doc>
71 The USRP2 source outputs 100 Megasamples per second / decimation.
72
73 To use the default ethernet device, leave interface blank. \
74 For systems with only 1 USRP2, you may leave the mac address blank. \
75 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
76         </doc>
77 </block>