Merge remote branch 'ets/grc-usrp2-clock-source'
[debian/gnuradio] / grc / blocks / usrp_dual_sink_x.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP Dual Sink
5 ###################################################
6  -->
7 <block>
8         <name>USRP Dual Sink</name>
9         <key>usrp_dual_sink_x</key>
10         <import>from grc_gnuradio import usrp as grc_usrp</import>
11         <make>grc_usrp.dual_sink_$(type.fcn)(which=$which)
12 self.$(id).set_interp_rate($interpolation)
13 self.$(id).set_frequency_a($frequency_a, verbose=True#slurp
14 #if $lo_offset_a() != float('inf')
15 , lo_offset=$lo_offset_a#slurp
16 #end if
17 )
18 self.$(id).set_frequency_b($frequency_b, verbose=True#slurp
19 #if $lo_offset_b() != float('inf')
20 , lo_offset=$lo_offset_b#slurp
21 #end if
22 )
23 self.$(id).set_gain_a($gain_a)
24 self.$(id).set_gain_b($gain_b)
25 ##################################################
26 ## Flex RF A
27 ##################################################
28 #if $transmit_a.tx_enb
29 self.$(id).set_enable_a(True)
30 #end if
31 #if $transmit_a.auto_tr
32 self.$(id).set_auto_tr_a(True)
33 #end if
34 ##################################################
35 ## Flex RF B
36 ##################################################
37 #if $transmit_b.tx_enb
38 self.$(id).set_enable_b(True)
39 #end if
40 #if $transmit_b.auto_tr
41 self.$(id).set_auto_tr_b(True)
42 #end if</make>
43         <callback>set_interp_rate($interpolation)</callback>
44         <callback>set_frequency_a($frequency_a#slurp
45 #if $lo_offset_a() != float('inf')
46 , lo_offset=$lo_offset_a#slurp
47 #end if
48 )</callback>
49         <callback>set_frequency_b($frequency_b#slurp
50 #if $lo_offset_b() != float('inf')
51 , lo_offset=$lo_offset_b#slurp
52 #end if
53 )</callback>
54         <callback>set_gain_a($gain_a)</callback>
55         <callback>set_gain_b($gain_b)</callback>
56         <param>
57                 <name>Input Type</name>
58                 <key>type</key>
59                 <type>enum</type>
60                 <option>
61                         <name>Complex</name>
62                         <key>complex</key>
63                         <opt>fcn:c</opt>
64                 </option>
65                 <option>
66                         <name>Short</name>
67                         <key>short</key>
68                         <opt>fcn:s</opt>
69                 </option>
70         </param>
71         <param>
72                 <name>Unit Number</name>
73                 <key>which</key>
74                 <value>0</value>
75                 <type>int</type>
76         </param>
77         <param>
78                 <name>Interpolation</name>
79                 <key>interpolation</key>
80                 <type>int</type>
81         </param>
82         <param>
83                 <name>Frequency A (Hz)</name>
84                 <key>frequency_a</key>
85                 <type>real</type>
86         </param>
87         <param>
88                 <name>Frequency B (Hz)</name>
89                 <key>frequency_b</key>
90                 <type>real</type>
91         </param>
92         <param>
93                 <name>LO Offset A (Hz)</name>
94                 <key>lo_offset_a</key>
95                 <value>float('inf')</value>
96                 <type>real</type>
97                 <hide>#if $lo_offset_a() == float('inf') then 'part' else 'none'#</hide>
98                 <option>
99                         <name>Default</name>
100                         <key>float('inf')</key>
101                 </option>
102         </param>
103         <param>
104                 <name>LO Offset B (Hz)</name>
105                 <key>lo_offset_b</key>
106                 <value>float('inf')</value>
107                 <type>real</type>
108                 <hide>#if $lo_offset_b() == float('inf') then 'part' else 'none'#</hide>
109                 <option>
110                         <name>Default</name>
111                         <key>float('inf')</key>
112                 </option>
113         </param>
114         <param>
115                 <name>Gain A (dB)</name>
116                 <key>gain_a</key>
117                 <value>0</value>
118                 <type>real</type>
119         </param>
120         <param>
121                 <name>Gain B (dB)</name>
122                 <key>gain_b</key>
123                 <value>0</value>
124                 <type>real</type>
125         </param>
126 <!--
127 ###################################################
128 ## Flex RF A
129 ###################################################
130  -->
131         <param>
132                 <name>Transmit A</name>
133                 <key>transmit_a</key>
134                 <value></value>
135                 <type>enum</type>
136                 <hide>#if $transmit_a.tx_enb then 'none' else 'part'#</hide>
137                 <option>
138                         <name>Unconfigured</name>
139                         <key></key>
140                         <opt>tx_enb:</opt>
141                         <opt>auto_tr:</opt>
142                 </option>
143                 <option>
144                         <name>Enable</name>
145                         <key>tx_enb</key>
146                         <opt>tx_enb:1</opt>
147                         <opt>auto_tr:</opt>
148                 </option>
149                 <option>
150                         <name>Auto T/R</name>
151                         <key>auto_tr</key>
152                         <opt>tx_enb:1</opt>
153                         <opt>auto_tr:1</opt>
154                 </option>
155         </param>
156 <!--
157 ###################################################
158 ## Flex RF B
159 ###################################################
160  -->
161         <param>
162                 <name>Transmit B</name>
163                 <key>transmit_b</key>
164                 <value></value>
165                 <type>enum</type>
166                 <hide>#if $transmit_b.tx_enb then 'none' else 'part'#</hide>
167                 <option>
168                         <name>Unconfigured</name>
169                         <key></key>
170                         <opt>tx_enb:</opt>
171                         <opt>auto_tr:</opt>
172                 </option>
173                 <option>
174                         <name>Enable</name>
175                         <key>tx_enb</key>
176                         <opt>tx_enb:1</opt>
177                         <opt>auto_tr:</opt>
178                 </option>
179                 <option>
180                         <name>Auto T/R</name>
181                         <key>auto_tr</key>
182                         <opt>tx_enb:1</opt>
183                         <opt>auto_tr:1</opt>
184                 </option>
185         </param>
186         <sink>
187                 <name>Ain</name>
188                 <type>$type</type>
189         </sink>
190         <sink>
191                 <name>Bin</name>
192                 <type>$type</type>
193         </sink>
194         <doc>
195 The USRP sink inputs 128 Megasamples per second / interpolation.
196
197 Input amplitude should be between 0 and 32767.
198
199 Flex RF boards only: The "Transmit Setting" must be configured. \
200 When set to "Enable" the transmitter is always on. \
201 When set to "Auto Transmit/Receive", the transmitter is disabled while receiving.
202         </doc>
203 </block>