3 ###################################################
5 ###################################################
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 ''#)
13 self.$(id).set_format(width=$format.width, shift=$format.shift)
15 self.$(id).set_decim_rate($decimation)
16 self.$(id).set_frequency($frequency, verbose=True)
17 self.$(id).set_gain($gain)
18 #if $auto_tr.eval and $rx_ant.flex
19 self.$(id).set_auto_tr($auto_tr)
21 <callback>set_decim_rate($decimation)</callback>
22 <callback>set_frequency($frequency)</callback>
23 <callback>set_gain($gain)</callback>
25 <name>Output Type</name>
44 <hide>#if $format.eval then '' else 'part'#</hide>
46 <name>16 Bits (Default)</name>
52 <name>8 Bits, Shift 8</name>
59 <name>Unit Number</name>
65 <name>Decimation</name>
70 <name>Frequency</name>
94 <name>RX Antenna</name>
120 <name>Auto T/R</name>
124 <hide>#if $rx_ant.flex then 'none' else 'all'#</hide>
139 <name>Halfband Filters</name>
140 <key>hb_filters</key>
143 <hide>#if $hb_filters.eval then 'none' else 'part'#</hide>
158 The USRP source outputs 64 Megasamples per second / decimation.
160 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
161 Flex RF boards use the "TX/RX" and "RX2" settings. \
162 Basic RX and LFRX use the "RXA" and "RXB" settings. \
163 All other boards use the "RXA" setting.
165 Flex RF boards only: If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \
166 By default, "Auto TR" is disabled.
168 With the format set to 8 bits and the halfband filters disabled, the USRP can acheive a decimation rate of 4. \
169 Disabling the halfband filters requires a special USRP firmware without halfband filters or TX paths. \
170 For this reason, the USRP cannot transmit with the halfband filters disabled.