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