def __init__(self, uri="", jesd_monitor=False, jesd=None): context_manager.__init__(self, uri, self._device_name) self._ctrl = self._ctx.find_device("adrv9009-phy") self._rxadc = self._ctx.find_device("axi-adrv9009-rx-hpc") self._rxobs = self._ctx.find_device("axi-adrv9009-rx-obs-hpc") self._txdac = self._ctx.find_device("axi-adrv9009-tx-hpc") self._ctx.set_timeout(30000) # Needed for loading profiles self._jesd = jesd or jesdadi(uri) if jesd_monitor else None rx_tx.__init__(self)
def __init__(self, uri="", jesd_monitor=False, jesd=None): context_manager.__init__(self, uri, self._device_name) self._ctrl = self._ctx.find_device("adrv9009-phy") self._rxadc = self._ctx.find_device("axi-adrv9009-rx-hpc") self._rxobs = self._ctx.find_device("axi-adrv9009-rx-obs-hpc") self._txdac = self._ctx.find_device("axi-adrv9009-tx-hpc") self._ctx.set_timeout(30000) # Needed for loading profiles if jesdadi and jesd_monitor: self._jesd = jesd if jesd else jesdadi(uri=uri) rx_tx.__init__(self) self.obs = obs(self._ctx, self._rxobs, self._obs_channel_names)
def _import_jesd(uri): try: from adi.jesd import jesd as jesdadi except ImportError: raise Exception("JESD interfaces require fs package") return jesdadi(uri)