diff options
Diffstat (limited to 'mpm/lib/mykonos/config')
-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; }; |