diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-09-12 17:02:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:12 -0800 |
commit | 600640ddf122fa6489b9d10aa4ec5835d06524e4 (patch) | |
tree | 85ee37cc1f32c63ea86c5b25932ccc746bcb25bc | |
parent | f7cb6ee0d67afaed499cec9e8e8d0d481a65dd29 (diff) | |
download | uhd-600640ddf122fa6489b9d10aa4ec5835d06524e4.tar.gz uhd-600640ddf122fa6489b9d10aa4ec5835d06524e4.tar.bz2 uhd-600640ddf122fa6489b9d10aa4ec5835d06524e4.zip |
lib: adf535x: Add trace logs for synth configuration
-rw-r--r-- | host/lib/include/uhdlib/usrp/common/adf535x.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/adf535x.hpp b/host/lib/include/uhdlib/usrp/common/adf535x.hpp index 46ec9db42..bc3c445bb 100644 --- a/host/lib/include/uhdlib/usrp/common/adf535x.hpp +++ b/host/lib/include/uhdlib/usrp/common/adf535x.hpp @@ -428,6 +428,15 @@ inline double adf535x_impl<adf5355_regs_t>::_set_frequency( const double coerced_out_freq = coerced_vco_freq / rf_divider; + UHD_LOG_TRACE("ADF5355", + boost::format("ADF5355 Frequencies (MHz): Requested=%f " + "Actual=%f TargetVCO=%f ActualVCO=%f") + % (target_freq / 1e6) % (coerced_out_freq / 1e6) % (target_vco_freq / 1e6) + % (coerced_vco_freq / 1e6)); + UHD_LOG_TRACE("ADF5355", + boost::format("ADF5355 Settings: N=%f INT=%d FRAC1=%u MOD2=%d FRAC2=%u") % N % INT + % FRAC1 % MOD2 % FRAC2); + /* Update registers */ _regs.int_16_bit = INT; _regs.frac1_24_bit = FRAC1; @@ -550,6 +559,15 @@ inline double adf535x_impl<adf5356_regs_t>::_set_frequency( const double coerced_out_freq = coerced_vco_freq / rf_divider; + UHD_LOG_TRACE("ADF5356", + boost::format("ADF5356 Frequencies (MHz): Requested=%f " + "Actual=%f TargetVCO=%f ActualVCO=%f") + % (target_freq / 1e6) % (coerced_out_freq / 1e6) % (target_vco_freq / 1e6) + % (coerced_vco_freq / 1e6)); + UHD_LOG_TRACE("ADF5356", + boost::format("ADF5356 Settings: N=%f INT=%d FRAC1=%u MOD2=%d FRAC2=%u") % N % INT + % FRAC1 % MOD2 % FRAC2); + /* Update registers */ _regs.int_16_bit = INT; _regs.frac1_24_bit = FRAC1; |