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() 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 $lo_offset() != float('inf')
19 self.$(id).set_lo_offset($lo_offset)
21 <callback>set_lo_offset($lo_offset)</callback>
22 <callback>set_decim_rate($decimation)</callback>
23 <callback>set_frequency($frequency)</callback>
24 <callback>set_gain($gain)</callback>
26 <name>Output Type</name>
45 <hide>#if $format() then '' else 'part'#</hide>
47 <name>16 Bits (Default)</name>
53 <name>8 Bits, Shift 8</name>
60 <name>Unit Number</name>
66 <name>Decimation</name>
71 <name>Frequency (Hz)</name>
76 <name>LO Offset (Hz)</name>
78 <value>float('inf')</value>
80 <hide>#if $lo_offset() == float('inf') then 'part' else 'none'#</hide>
83 <key>float('inf')</key>
87 <name>Gain (dB)</name>
107 <name>RX Antenna</name>
133 <name>Halfband Filters</name>
134 <key>hb_filters</key>
137 <hide>#if $hb_filters() then 'none' else 'part'#</hide>
152 The USRP source outputs 64 Megasamples per second / decimation.
154 The "Receive Antenna Setting" selects one of the SMA connectors as the data source. \
155 Flex RF boards use the "TX/RX" and "RX2" settings. \
156 Basic RX and LFRX use the "RXA", "RXB", and "RXAB" settings. \
157 All other boards use the "RXA" setting.
159 With the format set to 8 bits and the halfband filters disabled, the USRP can acheive a decimation rate of 4. \
160 Disabling the halfband filters requires a special USRP firmware without halfband filters or TX paths. \
161 For this reason, the USRP cannot transmit with the halfband filters disabled.