diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-01-07 14:30:13 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-07 08:05:43 -0600 |
commit | 5160c3778e92ee9324fe4e1f81edb86383608d14 (patch) | |
tree | 3259945dc045e2f6b21b9c3c070360b05f4af55d /host/lib/rfnoc | |
parent | c186cf51726423a410dc14a394c7b7af710d3f67 (diff) | |
download | uhd-5160c3778e92ee9324fe4e1f81edb86383608d14.tar.gz uhd-5160c3778e92ee9324fe4e1f81edb86383608d14.tar.bz2 uhd-5160c3778e92ee9324fe4e1f81edb86383608d14.zip |
rfnoc: ddc/duc: Improve variable name for _set_freq()
As Github user johnwstanford points out, the DUC calls the argument
'input_rate', which is wrong (and was copy/pasted from the DDC code). By
calling it dds_rate in both cases, we avoid such confusion.
This commit only renames a variable. No changes whatsoever.
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/ddc_block_control.cpp | 4 | ||||
-rw-r--r-- | host/lib/rfnoc/duc_block_control.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp index dbcb1b763..df606f11b 100644 --- a/host/lib/rfnoc/ddc_block_control.cpp +++ b/host/lib/rfnoc/ddc_block_control.cpp @@ -539,12 +539,12 @@ private: //! Set the DDS frequency shift the signal to \p requested_freq double _set_freq( - const double requested_freq, const double input_rate, const size_t chan) + const double requested_freq, const double dds_rate, const size_t chan) { double actual_freq; int32_t freq_word; std::tie(actual_freq, freq_word) = - get_freq_and_freq_word(requested_freq, input_rate); + get_freq_and_freq_word(requested_freq, dds_rate); _ddc_reg_iface.poke32( SR_FREQ_ADDR, uint32_t(freq_word), chan, get_command_time(chan)); return actual_freq; diff --git a/host/lib/rfnoc/duc_block_control.cpp b/host/lib/rfnoc/duc_block_control.cpp index 674e9d309..ac9629ec4 100644 --- a/host/lib/rfnoc/duc_block_control.cpp +++ b/host/lib/rfnoc/duc_block_control.cpp @@ -523,12 +523,12 @@ private: //! Set the DDS frequency shift the signal to \p requested_freq double _set_freq( - const double requested_freq, const double input_rate, const size_t chan) + const double requested_freq, const double dds_rate, const size_t chan) { double actual_freq; int32_t freq_word; std::tie(actual_freq, freq_word) = - get_freq_and_freq_word(requested_freq, input_rate); + get_freq_and_freq_word(requested_freq, dds_rate); _duc_reg_iface.poke32( SR_FREQ_ADDR, uint32_t(freq_word), chan, get_command_time(chan)); return actual_freq; |