diff options
Diffstat (limited to 'mpm/lib/mykonos/config/ad937x_fir.h')
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_fir.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mpm/lib/mykonos/config/ad937x_fir.h b/mpm/lib/mykonos/config/ad937x_fir.h new file mode 100644 index 000000000..ff277ef26 --- /dev/null +++ b/mpm/lib/mykonos/config/ad937x_fir.h @@ -0,0 +1,22 @@ +#pragma once + +#include <vector> +#include "../adi/t_mykonos.h" + +// wraps FIR allocation +class ad937x_fir +{ + // these should be const, but can't be because of C API + // + mykonosFir_t _fir; + std::vector<int16_t> fir_coefficients; + + void ad937x_fir::_set_gain(int8_t gain); +public: + ad937x_fir(int8_t gain, const std::vector<int16_t>& coefficients); + ad937x_fir(int8_t gain, std::vector<int16_t>&& coefficients); + + mykonosFir_t* getFir(); +}; + + |