From 068c9cf64541338a62bab06a57b62f5a917fae84 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 21 Jun 2018 10:46:25 +0100 Subject: UHD: Expose device3 APIs in multi_usrp --- host/include/uhd/usrp/multi_usrp.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'host') 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 #include +#include #include #include #include @@ -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; -- cgit v1.2.3