diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-03-03 10:50:45 -0800 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-03-03 10:50:45 -0800 |
commit | 1b63cd2560886d851f3e2ba98bfddf772c44df34 (patch) | |
tree | 126e1bedf44c3e9159c8ab7b2dd1ad52452ea6a0 /host/lib/usrp/multi_usrp.cpp | |
parent | 77319389b09c663170284ed64961ab27cf77488e (diff) | |
download | uhd-1b63cd2560886d851f3e2ba98bfddf772c44df34.tar.gz uhd-1b63cd2560886d851f3e2ba98bfddf772c44df34.tar.bz2 uhd-1b63cd2560886d851f3e2ba98bfddf772c44df34.zip |
Generalized mboard_iface and added a SPI convenience class a la I2C
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 0acc53397..565d35d1c 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -18,6 +18,7 @@ #include "wrapper_utils.hpp" #include <uhd/usrp/multi_usrp.hpp> #include <uhd/usrp/tune_helper.hpp> +#include <uhd/usrp/mboard_iface.hpp> #include <uhd/exception.hpp> #include <uhd/utils/warning.hpp> #include <uhd/utils/gain_group.hpp> @@ -218,6 +219,10 @@ public: std::vector<std::string> get_mboard_sensor_names(size_t mboard){ return _mboard(mboard)[MBOARD_PROP_SENSOR_NAMES].as<prop_names_t>(); } + + mboard_iface::sptr get_mboard_iface(size_t mboard){ + return _mboard(mboard)[MBOARD_PROP_IFACE].as<mboard_iface::sptr>(); + } /******************************************************************* * RX methods |