aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-01-03 15:05:48 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-04 14:17:09 -0800
commit83dd47dc882421f96830fa55bd86405d1d80907f (patch)
treed4dd5f75c027f25351ba0bcb652e6a5a547706f7 /host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
parentf25b37900561a50b816d545605b898207d4ca5b5 (diff)
downloaduhd-83dd47dc882421f96830fa55bd86405d1d80907f.tar.gz
uhd-83dd47dc882421f96830fa55bd86405d1d80907f.tar.bz2
uhd-83dd47dc882421f96830fa55bd86405d1d80907f.zip
mpmd: Allow user-overrides for MPM ports
Adds two device args: discovery_port and rpc_port. Both are integers which override the respective constants. Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_mboard_impl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
index 087cb1373..3702c15a1 100644
--- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
@@ -96,6 +96,7 @@ namespace {
using namespace uhd;
using namespace uhd::mpmd;
+
/*****************************************************************************
* Structors
****************************************************************************/
@@ -105,7 +106,10 @@ mpmd_mboard_impl::mpmd_mboard_impl(
) : mb_args(mb_args_)
, rpc(uhd::rpc_client::make(
rpc_server_addr,
- mpmd_impl::MPM_RPC_PORT,
+ mb_args_.cast<size_t>(
+ mpmd_impl::MPM_RPC_PORT_KEY,
+ mpmd_impl::MPM_RPC_PORT
+ ),
mpmd_impl::MPM_RPC_GET_LAST_ERROR_CMD))
, _xport_mgr(xport::mpmd_xport_mgr::make(mb_args))
{