mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-14 20:58:09 +00:00
This is a class that allows handling compat numbers as a type: >>> cn = CompatNumber(4, 3) >>> print(cn.major) 4 >>> cn < CompatNumber(4, 5) True >>> cn == CompatNumber(4.3) True
31 lines
750 B
Python
31 lines
750 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 compat_num
|
|
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__
|