diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-06-21 10:46:25 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-22 09:12:22 -0700 |
commit | 068c9cf64541338a62bab06a57b62f5a917fae84 (patch) | |
tree | e117fe9e0e71b68e2250234bce6c9ba8ac2d677e /host | |
parent | 5c5c7ed760fc5eb498f526258d7c474e80379463 (diff) | |
download | uhd-068c9cf64541338a62bab06a57b62f5a917fae84.tar.gz uhd-068c9cf64541338a62bab06a57b62f5a917fae84.tar.bz2 uhd-068c9cf64541338a62bab06a57b62f5a917fae84.zip |
UHD: Expose device3 APIs in multi_usrp
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/usrp/multi_usrp.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp index c70448c3f..0fff6246b 100644 --- a/host/include/uhd/usrp/multi_usrp.hpp +++ b/host/include/uhd/usrp/multi_usrp.hpp @@ -25,6 +25,7 @@ #include <uhd/config.hpp> #include <uhd/device.hpp> +#include <uhd/device3.hpp> #include <uhd/deprecated.hpp> #include <uhd/types/ranges.hpp> #include <uhd/types/stream_cmd.hpp> @@ -122,6 +123,20 @@ public: */ virtual device::sptr get_device(void) = 0; + /*! Returns true if this is a generation-3 device. + */ + virtual bool is_device3(void) = 0; + + /*! + * Get the underlying device3 object. Only works for generation-3 (or later) devices. + * + * This is needed to get access to the streaming API and properties. + * + * \return The uhd::device3 object for this USRP. + * \throws uhd::type_error if this device is not actually a generation-3 device. + */ + virtual device3::sptr get_device3(void) = 0; + //! Convenience method to get a RX streamer. See also uhd::device::get_rx_stream(). virtual rx_streamer::sptr get_rx_stream(const stream_args_t &args) = 0; |