Merge remote branch 'ets/grc-usrp2-clock-source'
[debian/gnuradio] / grc / 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)(which=$which, side=$side)
12 self.$(id).set_interp_rate($interpolation)
13 self.$(id).set_frequency($frequency, verbose=True#slurp
14 #if $lo_offset() != float('inf')
15 , lo_offset=$lo_offset#slurp
16 #end if
17 )
18 self.$(id).set_gain($gain)
19 #if $transmit.tx_enb
20 self.$(id).set_enable(True)
21 #end if
22 #if $transmit.auto_tr
23 self.$(id).set_auto_tr(True)
24 #end if</make>
25         <callback>set_interp_rate($interpolation)</callback>
26         <callback>set_frequency($frequency#slurp
27 #if $lo_offset() != float('inf')
28 , lo_offset=$lo_offset#slurp
29 #end if
30 )</callback>
31         <callback>set_gain($gain)</callback>
32         <param>
33                 <name>Input Type</name>
34                 <key>type</key>
35                 <type>enum</type>
36                 <option>
37                         <name>Complex</name>
38                         <key>complex</key>
39                         <opt>fcn:c</opt>
40                 </option>
41                 <option>
42                         <name>Short</name>
43                         <key>short</key>
44                         <opt>fcn:s</opt>
45                 </option>
46         </param>
47         <param>
48                 <name>Unit Number</name>
49                 <key>which</key>
50                 <value>0</value>
51                 <type>int</type>
52         </param>
53         <param>
54                 <name>Interpolation</name>
55                 <key>interpolation</key>
56                 <type>int</type>
57         </param>
58         <param>
59                 <name>Frequency (Hz)</name>
60                 <key>frequency</key>
61                 <type>real</type>
62         </param>
63         <param>
64                 <name>LO Offset (Hz)</name>
65                 <key>lo_offset</key>
66                 <value>float('inf')</value>
67                 <type>real</type>
68                 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
69                 <option>
70                         <name>Default</name>
71                         <key>float('inf')</key>
72                 </option>
73         </param>
74         <param>
75                 <name>Gain (dB)</name>
76                 <key>gain</key>
77                 <value>0</value>
78                 <type>real</type>
79         </param>
80         <param>
81                 <name>Side</name>
82                 <key>side</key>
83                 <value>A</value>
84                 <type>string</type>
85                 <option>
86                         <name>A</name>
87                         <key>A</key>
88                 </option>
89                 <option>
90                         <name>B</name>
91                         <key>B</key>
92                 </option>
93         </param>
94         <param>
95                 <name>Transmit</name>
96                 <key>transmit</key>
97                 <value></value>
98                 <type>enum</type>
99                 <hide>#if $transmit.tx_enb then 'none' else 'part'#</hide>
100                 <option>
101                         <name>Unconfigured</name>
102                         <key></key>
103                         <opt>tx_enb:</opt>
104                         <opt>auto_tr:</opt>
105                 </option>
106                 <option>
107                         <name>Enable</name>
108                         <key>tx_enb</key>
109                         <opt>tx_enb:1</opt>
110                         <opt>auto_tr:</opt>
111                 </option>
112                 <option>
113                         <name>Auto T/R</name>
114                         <key>auto_tr</key>
115                         <opt>tx_enb:1</opt>
116                         <opt>auto_tr:1</opt>
117                 </option>
118         </param>
119         <sink>
120                 <name>in</name>
121                 <type>$type</type>
122         </sink>
123         <doc>
124 The USRP sink inputs 128 Megasamples per second / interpolation.
125
126 Input amplitude should be between 0 and 32767.
127
128 Flex RF boards only: The "Transmit Setting" must be configured. \
129 When set to "Enable" the transmitter is always on. \
130 When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.
131         </doc>
132 </block>