Example #1
0
 def reset_ofdm_params_high(self, options):
     self.lock()
     #self.stop()
     #self.wait()
     #time.sleep(1)
     self.disconnect(self, self.ofdm_rx)
     self.ofdm_rx.__del__()
     self.ofdm_rx = flex_ofdm_code.ofdm_demod(options, callback=self._rx_callback)
     self.connect(self, self.ofdm_rx)
     #time.sleep(1)
     #self.start()
     self.unlock()
Example #2
0
    def __init__(self, rx_callback, options):
        gr.hier_block2.__init__(self, "receive_path",
                        gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
                        gr.io_signature(0, 0, 0))                    # Output signature

        options = copy.copy(options)    # make a copy so we can destructively modify

        self._verbose = options.verbose
        self._log = options.log
        self._rx_callback = rx_callback      # this callback is fired when there's a packet available

        self.ofdm_rx = flex_ofdm_code.ofdm_demod(options, callback=self._rx_callback)

        self.connect(self, self.ofdm_rx)

        if self._verbose:
            self._print_verbage()