def _get_configured_nbddc(self, nbddc_index, nbddc_param_list): self._set_nbddc_param_list(nbddc_index, nbddc_param_list, atinit=True) if nbddc_param_list[DDC_PARAM_IFACE] in self.tengig_iface_info: return CyberRadio.vita_iq_source( vita_type=nbddc_param_list[DDC_PARAM_VITA], payload_size=self.vita_payload_size, vita_header_size=self.vita_header_size, vita_tail_size=self.vita_tail_size, byte_swapped=self.byte_swapped, iq_swapped=self.iq_swapped, iq_scale_factor=2**-15, host=self.tengig_iface_info[nbddc_param_list[DDC_PARAM_IFACE]]["destIP"], port=nbddc_param_list[DDC_PARAM_STREAM], ddc_coherent=False, num_outputs=1, tagged=self.tagged, debug=self.debug, ) else: self.logger.error("NBDDC %d: Interface \"%s\" not found in interface list. DDC not configured." % (nbddc_index, str(nbddc_param_list[DDC_PARAM_IFACE]))) return blocks.null_source(gr.sizeof_gr_complex * 1)