From 7b95cbd7fd2cb0a1aac1ccaea06d417480bf86a0 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Wed, 23 Oct 2019 17:12:03 -0500 Subject: rfnoc: Merge I/O service device args with stream args This makes it possible for users to put I/O service-related args in either the device args or stream args. --- host/lib/include/uhdlib/usrp/common/io_service_args.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'host/lib/include/uhdlib/usrp/common/io_service_args.hpp') diff --git a/host/lib/include/uhdlib/usrp/common/io_service_args.hpp b/host/lib/include/uhdlib/usrp/common/io_service_args.hpp index a783cc825..a8e46d8c3 100644 --- a/host/lib/include/uhdlib/usrp/common/io_service_args.hpp +++ b/host/lib/include/uhdlib/usrp/common/io_service_args.hpp @@ -88,6 +88,19 @@ struct io_service_args_t io_service_args_t read_io_service_args( const device_addr_t& args, const io_service_args_t& defaults); +/*! Merges device_args with stream_args + * + * Copies args related to I/O services from device args to stream args, and + * returns the merged result. If the same arg is specified in device_args and + * stream args, the value in stream_args is returned. + * + * \param args The device args provided when the graph is created + * \param args The stream args provided when a streamer is created + * \return The merged device args + */ +device_addr_t merge_io_service_dev_args( + const device_addr_t& dev_args, const device_addr_t& stream_args); + }} // namespace uhd::usrp #endif /* INCLUDED_LIBUHD_IO_SERVICE_ARGS_HPP */ -- cgit v1.2.3