From b0ad2ec29f3a1bd5f2980ed1f905dac50f87c21a Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Tue, 6 Oct 2015 12:47:14 -0700 Subject: adf435x: Refactored ADF435X control code - Removed adf435x_common and replaced with a real encapsulated interface - Looks similar to the MAX287X code - Updated all DB classes to use the new common code --- host/lib/usrp/dboard/db_wbx_common.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/usrp/dboard/db_wbx_common.cpp') diff --git a/host/lib/usrp/dboard/db_wbx_common.cpp b/host/lib/usrp/dboard/db_wbx_common.cpp index 0a7e1afa2..6539e798a 100644 --- a/host/lib/usrp/dboard/db_wbx_common.cpp +++ b/host/lib/usrp/dboard/db_wbx_common.cpp @@ -156,3 +156,9 @@ sensor_value_t wbx_base::get_locked(dboard_iface::unit_t unit){ const bool locked = (this->get_iface()->read_gpio(unit) & LOCKDET_MASK) != 0; return sensor_value_t("LO", locked, "locked", "unlocked"); } + +void wbx_base::wbx_versionx::write_lo_regs(dboard_iface::unit_t unit, const std::vector ®s) { + BOOST_FOREACH(boost::uint32_t reg, regs) { + self_base->get_iface()->write_spi(unit, spi_config_t::EDGE_RISE, reg, 32); + } +} -- cgit v1.2.3