diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-08 10:46:45 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:33 -0800 |
commit | ec488d49c04aab347ebdfa0da3e516fc34610b0b (patch) | |
tree | b9cc3a3f04e95f2467d8843f179f0a5a57627789 | |
parent | 74b0352c4a2b5e54f7f7d5a46bf1c957a946a0f4 (diff) | |
download | uhd-ec488d49c04aab347ebdfa0da3e516fc34610b0b.tar.gz uhd-ec488d49c04aab347ebdfa0da3e516fc34610b0b.tar.bz2 uhd-ec488d49c04aab347ebdfa0da3e516fc34610b0b.zip |
mpm/mpmd: Remove token requirement for device info
This removes the token requirement for get_proto_ver() and
get_chdr_width().
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mb_iface.cpp | 4 | ||||
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mb_iface.cpp b/host/lib/usrp/mpmd/mpmd_mb_iface.cpp index b113ad596..cb779f635 100644 --- a/host/lib/usrp/mpmd/mpmd_mb_iface.cpp +++ b/host/lib/usrp/mpmd/mpmd_mb_iface.cpp @@ -84,12 +84,12 @@ void mpmd_mboard_impl::mpmd_mb_iface::init() *****************************************************************************/ uint16_t mpmd_mboard_impl::mpmd_mb_iface::get_proto_ver() { - return _rpc->request_with_token<uint16_t>("get_proto_ver"); + return _rpc->request<uint16_t>("get_proto_ver"); } uhd::rfnoc::chdr_w_t mpmd_mboard_impl::mpmd_mb_iface::get_chdr_w() { - const auto chdr_w_bits = _rpc->request_with_token<size_t>("get_chdr_width"); + const auto chdr_w_bits = _rpc->request<size_t>("get_chdr_width"); switch (chdr_w_bits) { case 512: return CHDR_W_512; diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 5e5d3889e..3cfab6c79 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -534,6 +534,7 @@ class PeriphManagerBase(object): """ return self.mboard_regs_control.get_device_id() + @no_claim def get_proto_ver(self): """ Return RFNoC protocol version @@ -542,6 +543,7 @@ class PeriphManagerBase(object): self.log.debug("RFNoC protocol version supported by this device is {}".format(proto_ver)) return proto_ver + @no_claim def get_chdr_width(self): """ Return RFNoC CHDR width @@ -550,7 +552,6 @@ class PeriphManagerBase(object): self.log.debug("CHDR width supported by the device is {}".format(chdr_width)) return chdr_width - ########################################################################### # Misc device status controls and indicators ########################################################################### |