aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-06 14:48:54 -0800
committerAaron Rossetto <aaron.rossetto@ni.com>2020-03-12 07:35:15 -0500
commit910d95af2f7df9f52bcfed3fc08c5db6b3b39fd0 (patch)
tree247cf1de51ba3c419b91dd675278f8cd2bd0a0a9 /host/utils
parent3b2f712ff9ceb6875f9e875d8e3424cd858d0a10 (diff)
downloaduhd-910d95af2f7df9f52bcfed3fc08c5db6b3b39fd0.tar.gz
uhd-910d95af2f7df9f52bcfed3fc08c5db6b3b39fd0.tar.bz2
uhd-910d95af2f7df9f52bcfed3fc08c5db6b3b39fd0.zip
multi_usrp: Provide valid return value for multi_usrp::get_device()
For RFNoC devices, multi_usrp::get_device() no longer returns a device pointer, rather, it returns a nullptr. This is intentional because access to the underlying device is no longer allowed. However, legacy code can segfault (e.g. portions ofr gr-uhd). This patch returns a faux uhd::device class, which almost mimicks the original behaviour perfectly, by redirecting its class methods back to multi_usrp_rfnoc. The only exception is recv_async_msg(), which requires a TX streamer. This function will always return false now.
Diffstat (limited to 'host/utils')
0 files changed, 0 insertions, 0 deletions