]> git.gag.com Git - debian/gnuradio/blob - grc/data/platforms/python/blocks/usrp_simple_source_x.xml
Removed format from usrp dual/simple sink. USRP sink does not have a
[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)(which=$which, side='$side', rx_ant='$rx_ant'#if $hb_filters.eval then ', no_hb=True' else ''#)
12 #if $format.eval
13 self.$(id).set_format(width=$format.width, shift=$format.shift)
14 #end if
15 self.$(id).set_decim_rate($decimation)
16 self.$(id).set_frequency($frequency, verbose=True)
17 self.$(id).set_gain($gain)</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>Format</name>
38                 <key>format</key>
39                 <value></value>
40                 <type>enum</type>
41                 <hide>#if $format.eval then '' else 'part'#</hide>
42                 <option>
43                         <name>16 Bits (Default)</name>
44                         <key></key>
45                         <opt>width:16</opt>
46                         <opt>shift:0</opt>
47                 </option>
48                 <option>
49                         <name>8 Bits, Shift 8</name>
50                         <key>w8_s8</key>
51                         <opt>width:8</opt>
52                         <opt>shift:8</opt>
53                 </option>
54         </param>
55         <param>
56                 <name>Unit Number</name>
57                 <key>which</key>
58                 <value>0</value>
59                 <type>int</type>
60         </param>
61         <param>
62                 <name>Decimation</name>
63                 <key>decimation</key>
64                 <type>int</type>
65         </param>
66         <param>
67                 <name>Frequency</name>
68                 <key>frequency</key>
69                 <type>real</type>
70         </param>
71         <param>
72                 <name>Gain</name>
73                 <key>gain</key>
74                 <type>real</type>
75         </param>
76         <param>
77                 <name>Side</name>
78                 <key>side</key>
79                 <value>A</value>
80                 <type>enum</type>
81                 <option>
82                         <name>Side A</name>
83                         <key>A</key>
84                 </option>
85                 <option>
86                         <name>Side B</name>
87                         <key>B</key>
88                 </option>
89         </param>
90         <param>
91                 <name>RX Antenna</name>
92                 <key>rx_ant</key>
93                 <value>RXA</value>
94                 <type>enum</type>
95                 <option>
96                         <name>RXA</name>
97                         <key>RXA</key>
98                 </option>
99                 <option>
100                         <name>RXB</name>
101                         <key>RXB</key>
102                 </option>
103                 <option>
104                         <name>RXAB</name>
105                         <key>RXAB</key>
106                 </option>
107                 <option>
108                         <name>TX/RX</name>
109                         <key>TX/RX</key>
110                 </option>
111                 <option>
112                         <name>RX2</name>
113                         <key>RX2</key>
114                 </option>
115         </param>
116         <param>
117                 <name>Halfband Filters</name>
118                 <key>hb_filters</key>
119                 <value></value>
120                 <type>enum</type>
121                 <hide>#if $hb_filters.eval then 'none' else 'part'#</hide>
122                 <option>
123                         <name>Enable</name>
124                         <key></key>
125                 </option>
126                 <option>
127                         <name>Disable</name>
128                         <key>1</key>
129                 </option>
130         </param>
131         <source>
132                 <name>out</name>
133                 <type>$type</type>
134         </source>
135         <doc>
136 The USRP source outputs 64 Megasamples per second / decimation.
137
138 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
139 Flex RF boards use the "TX/RX" and "RX2" settings. \
140 Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
141 All other boards use the "RXA" setting.
142
143 With the format set to 8 bits and the halfband filters disabled, the USRP can acheive a decimation rate of 4. \
144 Disabling the halfband filters requires a special USRP firmware without halfband filters or TX paths. \
145 For this reason, the USRP cannot transmit with the halfband filters disabled.
146         </doc>
147 </block>