diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-01-16 15:16:05 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-17 18:03:42 -0800 |
commit | 6bd47c969222ee9e5e89cd00ebea9141c215e55c (patch) | |
tree | 3cbddae51f99bef056446ae936fd409aee0add66 /host/lib/rfnoc/fir_block_ctrl_impl.cpp | |
parent | 18cfd25129d06c456eade78d4e74dc4dceae6501 (diff) | |
download | uhd-6bd47c969222ee9e5e89cd00ebea9141c215e55c.tar.gz uhd-6bd47c969222ee9e5e89cd00ebea9141c215e55c.tar.bz2 uhd-6bd47c969222ee9e5e89cd00ebea9141c215e55c.zip |
lib: rfnoc: apply clang-format
This is a continuation of 967be2a4.
$ clang-format -i -style=file host/lib/rfnoc/*.cpp
Diffstat (limited to 'host/lib/rfnoc/fir_block_ctrl_impl.cpp')
-rw-r--r-- | host/lib/rfnoc/fir_block_ctrl_impl.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/host/lib/rfnoc/fir_block_ctrl_impl.cpp b/host/lib/rfnoc/fir_block_ctrl_impl.cpp index 4267e0b22..a4106111e 100644 --- a/host/lib/rfnoc/fir_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/fir_block_ctrl_impl.cpp @@ -4,8 +4,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include <uhd/rfnoc/fir_block_ctrl.hpp> #include <uhd/convert.hpp> +#include <uhd/rfnoc/fir_block_ctrl.hpp> #include <uhd/utils/log.hpp> using namespace uhd::rfnoc; @@ -31,20 +31,21 @@ public: set_taps(default_taps); } - void set_taps(const std::vector<int> &taps_) + void set_taps(const std::vector<int>& taps_) { UHD_LOGGER_TRACE(unique_id()) << "fir_block::set_taps()" << std::endl; if (taps_.size() > _n_taps) { - throw uhd::value_error(str( - boost::format("FIR block: Too many filter coefficients! Provided %d, FIR allows %d.\n") - % taps_.size() % _n_taps - )); + throw uhd::value_error( + str(boost::format("FIR block: Too many filter coefficients! Provided %d, " + "FIR allows %d.\n") + % taps_.size() % _n_taps)); } for (size_t i = 0; i < taps_.size(); i++) { if (taps_[i] > 32767 || taps_[i] < -32768) { - throw uhd::value_error(str( - boost::format("FIR block: Coefficient %d out of range! Value %d, Allowed range [-32768,32767].\n") - % i % taps_[i])); + throw uhd::value_error( + str(boost::format("FIR block: Coefficient %d out of range! Value %d, " + "Allowed range [-32768,32767].\n") + % i % taps_[i])); } } std::vector<int> taps = taps_; @@ -58,8 +59,8 @@ public: } // Assert tlast when sending the spinal tap (haha, it's actually the final tap). sr_write(SR_RELOAD_TLAST, uint32_t(taps.back())); - // Send the configuration word to replace the existing coefficients with the new ones. - // Note: This configuration bus does not require tlast + // Send the configuration word to replace the existing coefficients with the new + // ones. Note: This configuration bus does not require tlast sr_write(SR_CONFIG, 0); } |