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/usrp2/codec_ctrl.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/usrp2/codec_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/codec_ctrl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/codec_ctrl.cpp b/host/lib/usrp/usrp2/codec_ctrl.cpp index be5c2c899..0fdcedf62 100644 --- a/host/lib/usrp/usrp2/codec_ctrl.cpp +++ b/host/lib/usrp/usrp2/codec_ctrl.cpp @@ -168,17 +168,17 @@ private: void send_ad9777_reg(boost::uint8_t addr){ boost::uint16_t reg = _ad9777_regs.get_write_reg(addr); if (codec_ctrl_debug) std::cout << "send_ad9777_reg: " << std::hex << reg << std::endl; - _iface->transact_spi( + _iface->write_spi( SPI_SS_AD9777, spi_config_t::EDGE_RISE, - reg, 16, false /*no rb*/ + reg, 16 ); } void send_ads62p44_reg(boost::uint8_t addr) { boost::uint16_t reg = _ads62p44_regs.get_write_reg(addr); - _iface->transact_spi( + _iface->write_spi( SPI_SS_ADS62P44, spi_config_t::EDGE_FALL, - reg, 16, false /*no rb*/ + reg, 16 ); } }; |