From 600640ddf122fa6489b9d10aa4ec5835d06524e4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 12 Sep 2019 17:02:53 -0700 Subject: lib: adf535x: Add trace logs for synth configuration --- host/lib/include/uhdlib/usrp/common/adf535x.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'host/lib/include/uhdlib/usrp') 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::_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::_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; -- cgit v1.2.3