From 3f8dcf16213d5e06a49a0dd3746de1cb290a1f48 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Wed, 27 Sep 2017 17:42:06 -0500 Subject: ad937x: update ad937x_fir add comment label get_fir as const --- mpm/lib/mykonos/config/ad937x_fir.cpp | 2 +- mpm/lib/mykonos/config/ad937x_fir.hpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'mpm/lib/mykonos') 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& coefficients) _fir.numFirCoefs = static_cast(_fir_coefficients.size()); } -std::vector ad937x_fir::get_fir(int8_t &gain) +std::vector 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 -// 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 _fir_coefficients; @@ -31,5 +32,5 @@ public: ad937x_fir(int8_t gain, const std::vector& coefficients); void set_fir(int8_t gain, const std::vector& coefficients); - std::vector get_fir(int8_t &gain); + std::vector get_fir(int8_t &gain) const; }; -- cgit v1.2.3