uhd/mpm/python/usrp_mpm/__init__.py.in
Samuel O'Brien 6394a7c6ea sim: Lay Groundwork for Simulator
At this point, only about half of the mpm methods work on the simulator
    over the mpm shell, and it hasn't been tested with uhd at all.
    If you want to give it a try, first install all of the python
    dependencies of mpm (The simulator doesn't require libusrp or any of
    the C++ deps). In addition, running mpm on a desktop machine requires
    the python lib netifaces. Next, make an /mpm/build directory and open
    it. Run `cmake .. -DMPM_DEVICE=sim`, then `make`. Finally, run
    `python3 python/usrp_hwd.py`. You should be able to open another
    terminal and run `mpm/tools/mpm_shell.py localhost` to connect to the
    mpm server.

Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
2020-10-07 15:29:19 -05:00

30 lines
725 B
Python

#
# Copyright 2017 Ettus Research, a National Instruments Company
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
"""
MPM Module
"""
__simulated__ = ("${MPM_DEVICE}" == "sim")
from .discovery import spawn_discovery_process
from .rpc_server import spawn_rpc_process
from . import mpmtypes
from . import gpsd_iface
from .mpmlog import get_main_logger
if not __simulated__:
from . import libpyusrp_periphs as lib
from . import periph_manager
from . import dboard_manager
from . import xports
from . import cores
from . import chips
else:
from . import periph_manager
__version__ = periph_manager.__version__
__githash__ = periph_manager.__githash__
__mpm_device__ = periph_manager.__mpm_device__