aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_ctrl.hpp
diff options
context:
space:
mode:
authorJonathon Pendlum <jonathon.pendlum@ettus.com>2016-08-01 14:26:30 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-09 10:21:53 -0700
commit8607cf96932120bab3d4775ff297801add6403a0 (patch)
tree798a2404900f708dc33a08247b420aa752c50d83 /host/lib/usrp/common/ad9361_ctrl.hpp
parent1356f89fbf3cc8deb770f6532f9d887567dc3668 (diff)
downloaduhd-8607cf96932120bab3d4775ff297801add6403a0.tar.gz
uhd-8607cf96932120bab3d4775ff297801add6403a0.tar.bz2
uhd-8607cf96932120bab3d4775ff297801add6403a0.zip
ad9361: Added option for safe SPI
- Also added check for reading chip ID
Diffstat (limited to 'host/lib/usrp/common/ad9361_ctrl.hpp')
-rw-r--r--host/lib/usrp/common/ad9361_ctrl.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.hpp b/host/lib/usrp/common/ad9361_ctrl.hpp
index 8cd75d539..5770c3ec4 100644
--- a/host/lib/usrp/common/ad9361_ctrl.hpp
+++ b/host/lib/usrp/common/ad9361_ctrl.hpp
@@ -56,7 +56,13 @@ public:
//! make a new codec control object
static sptr make_spi(
- ad9361_params::sptr client_settings, uhd::spi_iface::sptr spi_iface, boost::uint32_t slave_num);
+ ad9361_params::sptr client_settings,
+ uhd::spi_iface::sptr spi_iface,
+ boost::uint32_t slave_num
+ );
+
+ virtual void set_timed_spi(uhd::spi_iface::sptr spi_iface, boost::uint32_t slave_num) = 0;
+ virtual void set_safe_spi(uhd::spi_iface::sptr spi_iface, boost::uint32_t slave_num) = 0;
//! Get a list of gain names for RX or TX
static std::vector<std::string> get_gain_names(const std::string &/*which*/)