# # Copyright 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # GNU Radio is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Radio; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, # Boston, MA 02110-1301, USA. # from gnuradio import gr from gnuradio import usrp2 class usrp_receive_path(gr.hier_block2): def __init__(self): ''' See below for what options should hold ''' gr.hier_block2.__init__(self, "usrp_receive_path", gr.io_signature(0, 0, 0), # Input signature gr.io_signature(0, 0, 0)) # Output signature self.sink = gr.null_sink(gr.sizeof_gr_complex) self.idle = gr.null_sink(gr.sizeof_gr_complex) self.u = usrp2.source_32fc("eth2","") self.u.set_decim(128) self.u.set_center_freq(2450e6) self.connect(self.u, self.sink)