diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-10 16:37:12 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-10 16:37:12 -0700 |
commit | 7c7b0d0a0dc8dd0cb4f0229fbc55978d6f2e253c (patch) | |
tree | a5b27c2808a544c04c2963a1891896277c735e4a /host/lib/usrp/usrp2/codec_ctrl.cpp | |
parent | bf7ef6aeb502839797894cac4d7518029a0d04c4 (diff) | |
download | uhd-7c7b0d0a0dc8dd0cb4f0229fbc55978d6f2e253c.tar.gz uhd-7c7b0d0a0dc8dd0cb4f0229fbc55978d6f2e253c.tar.bz2 uhd-7c7b0d0a0dc8dd0cb4f0229fbc55978d6f2e253c.zip |
Added a place for serdes control on the host.
Fix bug in codec control.
Comment out some clock control in fw code.
Diffstat (limited to 'host/lib/usrp/usrp2/codec_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/codec_ctrl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/codec_ctrl.cpp b/host/lib/usrp/usrp2/codec_ctrl.cpp index 452aa39b1..d1e16881b 100644 --- a/host/lib/usrp/usrp2/codec_ctrl.cpp +++ b/host/lib/usrp/usrp2/codec_ctrl.cpp @@ -53,7 +53,7 @@ public: _ad9777_regs.qdac_offset_adjust_msb = 0; //write all regs for(boost::uint8_t addr = 0; addr <= 0xC; addr++){ - send_ad9777_reg(addr); + this->send_ad9777_reg(addr); } //power-up adc @@ -63,7 +63,7 @@ public: ~codec_ctrl_impl(void){ //power-down dac _ad9777_regs.power_down_mode = 1; - send_ad9777_reg(0); + this->send_ad9777_reg(0); //power-down adc _iface->poke32(FR_MISC_CTRL_ADC, FRF_MISC_CTRL_ADC_OFF); @@ -78,7 +78,7 @@ private: if (codec_ctrl_debug) std::cout << "send_ad9777_reg: " << std::hex << reg << std::endl; _iface->transact_spi( SPI_SS_AD9777, spi_config_t::EDGE_RISE, - reg, 6, false /*no rb*/ + reg, 16, false /*no rb*/ ); } }; |