def __init__( self, name="PacketOFDMTx", modulation="qam64", input_signature=gr.io_signature(0, 0, 0), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex), occupied_tones=200, fft_length=512, cp_length=128, ): """ CTOR @param name Instance name. @param modulation @param input_signature Input signature. @param output_signature Output signature. """ self.fft_length = fft_length self.cp_length = cp_length self.modulation = modulation self.occupied_tones = occupied_tones # sanity check if modulation not in PacketOFDMTx._map: raise AttributeError("Cannot use %s modulation in OFDM" % modulation) UHDTxPktArch.__init__(self, name=name, input_signature=input_signature, output_signature=output_signature) self._mod_data = PacketOFDMTx._map[modulation]
def __init__(self): """ CTOR """ UHDTxPktArch.__init__(self, name='simple_tx', input_signature=gr.io_signature(1, 1, gr.sizeof_float), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex) )
def __init__(self, name="PacketGMSKTx", input_signature=gr.io_signature(0, 0, 0), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex) ): """ CTOR @param name Instance name. @param input_signature A gr.io_signature instance. @param output_signature A gr.io_signature instance. """ UHDTxPktArch.__init__(self, name=name, input_signature=gr.io_signature(0, 0, 0), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex) )
def __init__(self, name="PacketGMSKTx", input_signature=gr.io_signature(0, 0, 0), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex), modulator=digital.gmsk_mod(samples_per_symbol=2, bt=0.35)): """ CTOR @param name Instance name. @param input_signature A gr.io_signature instance. @param output_signature A gr.io_signature instance. """ self.modulator = modulator UHDTxPktArch.__init__(self, name=name, input_signature=gr.io_signature(0, 0, 0), output_signature=gr.io_signature(1, 1, gr.sizeof_gr_complex) )