new and improved simple/dual usrp blocks and wrapper classes
[debian/gnuradio] / grc / data / platforms / python / blocks / usrp_simple_source_x.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP Simple Source
5 ###################################################
6  -->
7 <block>
8         <name>USRP Source</name>
9         <key>usrp_simple_source_x</key>
10         <import>from grc_gnuradio import usrp as grc_usrp</import>
11         <make>grc_usrp.simple_source_$(type.fcn)(number=$number, side='$side', rx_ant='$rx_ant')
12 self.$(id).set_decim_rate($decimation)
13 self.$(id).set_frequency($frequency, verbose=True)
14 self.$(id).set_gain($gain)
15 #if $auto_tr.eval and $rx_ant.flex
16 self.$(id).set_auto_tr($auto_tr)
17 #end if</make>
18         <callback>set_decim_rate($decimation)</callback>
19         <callback>set_frequency($frequency)</callback>
20         <callback>set_gain($gain)</callback>
21         <param>
22                 <name>Output Type</name>
23                 <key>type</key>
24                 <type>enum</type>
25                 <option>
26                         <name>Complex</name>
27                         <key>complex</key>
28                         <opt>fcn:c</opt>
29                 </option>
30                 <option>
31                         <name>Short</name>
32                         <key>short</key>
33                         <opt>fcn:s</opt>
34                 </option>
35         </param>
36         <param>
37                 <name>Unit Number</name>
38                 <key>number</key>
39                 <value>0</value>
40                 <type>int</type>
41         </param>
42         <param>
43                 <name>Decimation</name>
44                 <key>decimation</key>
45                 <type>int</type>
46         </param>
47         <param>
48                 <name>Frequency</name>
49                 <key>frequency</key>
50                 <type>real</type>
51         </param>
52         <param>
53                 <name>Gain</name>
54                 <key>gain</key>
55                 <type>real</type>
56         </param>
57         <param>
58                 <name>Side</name>
59                 <key>side</key>
60                 <value>A</value>
61                 <type>enum</type>
62                 <option>
63                         <name>Side A</name>
64                         <key>A</key>
65                 </option>
66                 <option>
67                         <name>Side B</name>
68                         <key>B</key>
69                 </option>
70         </param>
71         <param>
72                 <name>RX Antenna</name>
73                 <key>rx_ant</key>
74                 <value>RXA</value>
75                 <type>enum</type>
76                 <option>
77                         <name>RXA</name>
78                         <key>RXA</key>
79                         <opt>flex:</opt>
80                 </option>
81                 <option>
82                         <name>RXB</name>
83                         <key>RXB</key>
84                         <opt>flex:</opt>
85                 </option>
86                 <option>
87                         <name>TX/RX</name>
88                         <key>TX/RX</key>
89                         <opt>flex:1</opt>
90                 </option>
91                 <option>
92                         <name>RX2</name>
93                         <key>RX2</key>
94                         <opt>flex:1</opt>
95                 </option>
96         </param>
97         <param>
98                 <name>Auto T/R</name>
99                 <key>auto_tr</key>
100                 <value></value>
101                 <type>enum</type>
102                 <hide>#if $rx_ant.flex then 'none' else 'all'#</hide>
103                 <option>
104                         <name>Auto</name>
105                         <key></key>
106                 </option>
107                 <option>
108                         <name>Enable</name>
109                         <key>True</key>
110                 </option>
111                 <option>
112                         <name>Disable</name>
113                         <key>False</key>
114                 </option>
115         </param>
116         <source>
117                 <name>out</name>
118                 <type>$type</type>
119         </source>
120         <doc>
121 The USRP source outputs 64 Megasamples per second / decimation.
122
123 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
124 Flex RF boards use the "TX/RX" and "RX2" settings. \
125 Basic RX and LFRX use the "RXA" and "RXB" settings. \
126 All other boards use the "RXA" setting.
127
128 Flex RF boards only: If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \
129 By default, "Auto TR" is disabled.
130         </doc>
131 </block>