aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-02 19:12:54 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit039de2841b3e96421fe0b868b7c97825b2023a66 (patch)
tree308f92891d4d9238b4fca1c029923057498f9097 /host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
parent365c57b356c5814ac647233efb4a099b05a8c8e9 (diff)
downloaduhd-039de2841b3e96421fe0b868b7c97825b2023a66.tar.gz
uhd-039de2841b3e96421fe0b868b7c97825b2023a66.tar.bz2
uhd-039de2841b3e96421fe0b868b7c97825b2023a66.zip
mpm/mpmd: Allow SID increment; more fixes for multi-usrp operation
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_mboard_impl.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
index afb7570bf..82967ecad 100644
--- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
@@ -33,12 +33,14 @@ using namespace uhd;
* Structors
****************************************************************************/
mpmd_mboard_impl::mpmd_mboard_impl(
- const device_addr_t &mb_args,
- const std::string& ip_addr
-) : rpc(uhd::rpc_client::make(ip_addr, MPM_RPC_PORT))
+ const device_addr_t &mb_args_,
+ const std::string& rpc_server_addr
+) : mb_args(mb_args_)
+ , rpc(uhd::rpc_client::make(rpc_server_addr, MPM_RPC_PORT))
{
UHD_LOGGER_TRACE("MPMD")
- << "Initializing mboard, connecting to IP address: " << ip_addr
+ << "Initializing mboard, connecting to RPC server address: "
+ << rpc_server_addr
<< " mboard args: " << mb_args.to_string()
;
auto device_info_dict = rpc->request<dev_info>("get_device_info");
@@ -102,14 +104,16 @@ mpmd_mboard_impl::~mpmd_mboard_impl()
/*****************************************************************************
* API
****************************************************************************/
-uhd::sid_t mpmd_mboard_impl::allocate_sid(const uint16_t port,
- const uhd::sid_t address,
- const uint32_t xbar_src_addr,
- const uint32_t xbar_src_port)
-{
+uhd::sid_t mpmd_mboard_impl::allocate_sid(
+ const uint16_t port,
+ const uhd::sid_t address,
+ const uint32_t xbar_src_addr,
+ const uint32_t xbar_src_port,
+ const uint32_t dst_addr
+) {
const auto sid = rpc->request_with_token<uint32_t>(
"allocate_sid",
- port, address.get(), xbar_src_addr, xbar_src_port
+ port, address.get(), xbar_src_addr, xbar_src_port, dst_addr
);
return uhd::sid_t(sid);
}