aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/codec_ctrl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-03-09 10:38:42 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-17 15:44:05 -0500
commit668a04befdc4ec43b2a6e86992c672ef5f8408e0 (patch)
tree67734ba32968831a5b4ea8dd59b7b2ab52e68d01 /host/lib/usrp/usrp2/codec_ctrl.cpp
parent19f3c1203a42d9da3d7cb16c881fe2bbdc5ec0ce (diff)
downloaduhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.gz
uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.bz2
uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.zip
host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json Note: This is the same procedure as 107a49c0, but applied to all the new code since then.
Diffstat (limited to 'host/lib/usrp/usrp2/codec_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp2/codec_ctrl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/codec_ctrl.cpp b/host/lib/usrp/usrp2/codec_ctrl.cpp
index 6fe91da9e..bf31daf18 100644
--- a/host/lib/usrp/usrp2/codec_ctrl.cpp
+++ b/host/lib/usrp/usrp2/codec_ctrl.cpp
@@ -96,7 +96,7 @@ public:
}
}
- ~usrp2_codec_ctrl_impl(void)
+ ~usrp2_codec_ctrl_impl(void) override
{
UHD_SAFE_CALL(
// power-down dac
@@ -124,7 +124,7 @@ public:
})
}
- void set_tx_mod_mode(int mod_mode)
+ void set_tx_mod_mode(int mod_mode) override
{
// set the sign of the frequency shift
_ad9777_regs.modulation_form = (mod_mode > 0)
@@ -153,7 +153,7 @@ public:
this->send_ad9777_reg(0x01); // set the register
}
- void set_rx_digital_gain(double gain)
+ void set_rx_digital_gain(double gain) override
{ // fine digital gain
switch (_iface->get_rev()) {
case usrp2_iface::USRP_N200:
@@ -169,7 +169,7 @@ public:
}
}
- void set_rx_digital_fine_gain(double gain)
+ void set_rx_digital_fine_gain(double gain) override
{ // gain correction
switch (_iface->get_rev()) {
case usrp2_iface::USRP_N200:
@@ -185,7 +185,7 @@ public:
}
}
- void set_rx_analog_gain(bool /*gain*/)
+ void set_rx_analog_gain(bool /*gain*/) override
{ // turns on/off analog 3.5dB preamp
switch (_iface->get_rev()) {
case usrp2_iface::USRP_N200:
@@ -203,7 +203,7 @@ public:
}
}
- size_t get_tx_interpolation() const
+ size_t get_tx_interpolation() const override
{
return 4;
}