diff options
author | Mark Meserve <mark.meserve@ni.com> | 2017-09-27 17:42:06 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:01 -0800 |
commit | 3f8dcf16213d5e06a49a0dd3746de1cb290a1f48 (patch) | |
tree | 078516a1f9ed888d7c828065047617d1b96cd6ab /mpm/lib/mykonos | |
parent | f58a4f20c54dea2cc12e2912c43a8cda597b345c (diff) | |
download | uhd-3f8dcf16213d5e06a49a0dd3746de1cb290a1f48.tar.gz uhd-3f8dcf16213d5e06a49a0dd3746de1cb290a1f48.tar.bz2 uhd-3f8dcf16213d5e06a49a0dd3746de1cb290a1f48.zip |
ad937x: update ad937x_fir
add comment
label get_fir as const
Diffstat (limited to 'mpm/lib/mykonos')
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_fir.cpp | 2 | ||||
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_fir.hpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/mpm/lib/mykonos/config/ad937x_fir.cpp b/mpm/lib/mykonos/config/ad937x_fir.cpp index 8acec3b8b..0ec3812ba 100644 --- a/mpm/lib/mykonos/config/ad937x_fir.cpp +++ b/mpm/lib/mykonos/config/ad937x_fir.cpp @@ -44,7 +44,7 @@ void ad937x_fir::set_fir(int8_t gain, const std::vector<int16_t>& coefficients) _fir.numFirCoefs = static_cast<uint8_t>(_fir_coefficients.size()); } -std::vector<int16_t> ad937x_fir::get_fir(int8_t &gain) +std::vector<int16_t> ad937x_fir::get_fir(int8_t &gain) const { gain = _fir.gain_dB; return _fir_coefficients; diff --git a/mpm/lib/mykonos/config/ad937x_fir.hpp b/mpm/lib/mykonos/config/ad937x_fir.hpp index f243f0f47..12fb3c5ef 100644 --- a/mpm/lib/mykonos/config/ad937x_fir.hpp +++ b/mpm/lib/mykonos/config/ad937x_fir.hpp @@ -20,7 +20,8 @@ #include "../adi/t_mykonos.h" #include <vector> -// wraps FIR allocation and provides a fixed mykonosFir_t pointer +// wraps FIR allocation +// provides a fixed mykonosFir_t pointer for API consumption class ad937x_fir { std::vector<int16_t> _fir_coefficients; @@ -31,5 +32,5 @@ public: ad937x_fir(int8_t gain, const std::vector<int16_t>& coefficients); void set_fir(int8_t gain, const std::vector<int16_t>& coefficients); - std::vector<int16_t> get_fir(int8_t &gain); + std::vector<int16_t> get_fir(int8_t &gain) const; }; |