usrp2 block xmls
[debian/gnuradio] / grc / data / platforms / python / blocks / usrp2_sink_xxxx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##USRP2 Sink
5 ###################################################
6  -->
7 <block>
8         <name>USRP2 Sink</name>
9         <key>usrp2_sink_xxxx</key>
10         <import>from gnuradio import usrp2</import>
11         <make>usrp2.sink_$(type.fcn)($interface, $mac_addr)
12 self.$(id).set_interp_rate($interpolation)
13 self.$(id).set_frequency($frequency)
14 self.$(id).set_gain($gain)
15 #if $auto_tr.eval
16 self.$(id).set_auto_tr($auto_tr)
17 #end if
18 #if $tx_enb.eval
19 self.$(id).set_enable($tx_enb)
20 #end if
21 </make>
22         <callback>set_interp_rate($interpolation)</callback>
23         <callback>set_frequency($frequency)</callback>
24         <callback>set_gain($gain)</callback>
25         <param>
26                 <name>Output Type</name>
27                 <key>type</key>
28                 <type>enum</type>
29                 <option>
30                         <name>Complex</name>
31                         <key>complex</key>
32                         <opt>fcn:32fc</opt>
33                 </option>
34                 <option>
35                         <name>Short</name>
36                         <key>short</key>
37                         <opt>fcn:16sc</opt>
38                 </option>
39         </param>
40         <param>
41                 <name>Interface</name>
42                 <key>interface</key>
43                 <value></value>
44                 <type>string</type>
45         </param>
46         <param>
47                 <name>MAC Addr</name>
48                 <key>mac_addr</key>
49                 <value></value>
50                 <type>string</type>
51         </param>
52         <param>
53                 <name>Frequency</name>
54                 <key>frequency</key>
55                 <type>real</type>
56         </param>
57         <param>
58                 <name>Interpolation</name>
59                 <key>interpolation</key>
60                 <type>int</type>
61         </param>
62         <param>
63                 <name>Gain</name>
64                 <key>gain</key>
65                 <type>real</type>
66         </param>
67         <param>
68                 <name>Auto T/R</name>
69                 <key>auto_tr</key>
70                 <value></value>
71                 <type>enum</type>
72                 <hide>$auto_tr.hide</hide>
73                 <option>
74                         <name>Ignore</name>
75                         <key></key>
76                         <opt>hide:part</opt>
77                 </option>
78                 <option>
79                         <name>Enable</name>
80                         <key>True</key>
81                         <opt>hide:none</opt>
82                 </option>
83                 <option>
84                         <name>Disable</name>
85                         <key>False</key>
86                         <opt>hide:none</opt>
87                 </option>
88         </param>
89         <param>
90                 <name>TX Enable</name>
91                 <key>tx_enb</key>
92                 <value></value>
93                 <type>enum</type>
94                 <hide>$tx_enb.hide</hide>
95                 <option>
96                         <name>Ignore</name>
97                         <key></key>
98                         <opt>hide:part</opt>
99                 </option>
100                 <option>
101                         <name>Enable</name>
102                         <key>True</key>
103                         <opt>hide:none</opt>
104                 </option>
105                 <option>
106                         <name>Disable</name>
107                         <key>False</key>
108                         <opt>hide:none</opt>
109                 </option>
110         </param>
111         <sink>
112                 <name>in</name>
113                 <type>$type</type>
114         </sink>
115         <doc>
116 The USRP2 sink inputs 100 Megasamples per second / interpolation.
117
118 To use the default ethernet device, leave interface blank. \
119 For systems with only 1 USRP2, you may leave the mac address blank. \
120 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.
121
122 --- Flex RF specific ---
123 The "Auto TR" and "TX Enable" settings are flex rf specific and should be left at "Ignore" unless this is a flex rf board.
124
125 If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \
126 By default, "Auto TR" is disabled.
127
128 The "Transmit Enable" configures the transmitter to be on or off. \
129 Do not leave this unconfigured.
130         </doc>
131 </block>