diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:30:29 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 476dccd6c383e4c0eccf0f42242137f863cda136 (patch) | |
tree | b2de8a55e3e63374fc05f94dbe82cc9fcb4691aa /mpm/lib/mykonos | |
parent | 876d4150aa3da531ddd687b48afada6e43f79146 (diff) | |
download | uhd-476dccd6c383e4c0eccf0f42242137f863cda136.tar.gz uhd-476dccd6c383e4c0eccf0f42242137f863cda136.tar.bz2 uhd-476dccd6c383e4c0eccf0f42242137f863cda136.zip |
mpm: Apply clang-format against all .cpp and .hpp files
Diffstat (limited to 'mpm/lib/mykonos')
-rw-r--r-- | mpm/lib/mykonos/ad937x_device.cpp | 5 | ||||
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_gain_ctrl_config.hpp | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/mpm/lib/mykonos/ad937x_device.cpp b/mpm/lib/mykonos/ad937x_device.cpp index 5d089601e..b476922f2 100644 --- a/mpm/lib/mykonos/ad937x_device.cpp +++ b/mpm/lib/mykonos/ad937x_device.cpp @@ -47,7 +47,7 @@ static const uint32_t PLL_LOCK_TIMEOUT_MS = 200; // Fewer discontinuities at lower signal frequencies // Minimum value is 0.8 ms, enforced by ADI's API static constexpr double RX_DC_OFFSET_AVERAGING_WINDOW_MS = 1.0; -static_assert(RX_DC_OFFSET_AVERAGING_WINDOW_MS >= 0.8, +static_assert(RX_DC_OFFSET_AVERAGING_WINDOW_MS >= 0.8, "RX DC offset averaging window must be greater than 0.8 ms"); /****************************************************** @@ -305,7 +305,8 @@ void ad937x_device::setup_cal(const uint32_t init_cals_mask, uint16_t window = std::ceil((RX_DC_OFFSET_AVERAGING_WINDOW_MS * (mykonos_config.device->rx->rxProfile->iqRate_kHz)) / 1024); - CALL_API(MYKONOS_setRfDcOffsetCnt(mykonos_config.device, MYK_DC_OFFSET_RX_CHN, window)); + CALL_API( + MYKONOS_setRfDcOffsetCnt(mykonos_config.device, MYK_DC_OFFSET_RX_CHN, window)); CALL_API(MYKONOS_enableTrackingCals(mykonos_config.device, tracking_cals_mask)); // ready for radioOn diff --git a/mpm/lib/mykonos/config/ad937x_gain_ctrl_config.hpp b/mpm/lib/mykonos/config/ad937x_gain_ctrl_config.hpp index 12851af92..79c24abd5 100644 --- a/mpm/lib/mykonos/config/ad937x_gain_ctrl_config.hpp +++ b/mpm/lib/mykonos/config/ad937x_gain_ctrl_config.hpp @@ -15,7 +15,8 @@ // C++14 requires std::hash includes a specialization for enums, but gcc doesn't do that // yet Remove this when that happens namespace std { -template <> struct hash<uhd::direction_t> +template <> +struct hash<uhd::direction_t> { size_t operator()(const uhd::direction_t& x) const { @@ -23,7 +24,8 @@ template <> struct hash<uhd::direction_t> } }; -template <> struct hash<mpm::ad937x::device::chain_t> +template <> +struct hash<mpm::ad937x::device::chain_t> { size_t operator()(const mpm::ad937x::device::chain_t& x) const { |