From 5d20a5a40155e888484f7d57a277bdcebed44207 Mon Sep 17 00:00:00 2001 From: Jonathon Pendlum Date: Sat, 12 Feb 2022 21:20:21 -0500 Subject: rfnoc: fir filter: Add support for multiple channels to block controller --- host/include/uhd/rfnoc/fir_filter_block_control.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/fir_filter_block_control.hpp b/host/include/uhd/rfnoc/fir_filter_block_control.hpp index 99526e5ee..8f660c14e 100644 --- a/host/include/uhd/rfnoc/fir_filter_block_control.hpp +++ b/host/include/uhd/rfnoc/fir_filter_block_control.hpp @@ -28,6 +28,7 @@ public: RFNOC_DECLARE_BLOCK(fir_filter_block_control) // Block registers + static const uint32_t REG_FIR_BLOCK_SIZE; static const uint32_t REG_FIR_MAX_NUM_COEFFS_ADDR; static const uint32_t REG_FIR_LOAD_COEFF_ADDR; static const uint32_t REG_FIR_LOAD_COEFF_LAST_ADDR; @@ -39,7 +40,7 @@ public: * * \returns The maximum number of filter coefficients supported by this block */ - virtual size_t get_max_num_coefficients() const = 0; + virtual size_t get_max_num_coefficients(const size_t chan = 0) const = 0; /*! Set the filter coefficients * @@ -54,7 +55,7 @@ public: * * \param coeffs A vector of integer coefficients for the FIR filter */ - virtual void set_coefficients(const std::vector& coeffs) = 0; + virtual void set_coefficients(const std::vector& coeffs, const size_t chan = 0) = 0; /*! Get the filter coefficients * @@ -62,7 +63,7 @@ public: * * \returns The vector of current filter coefficients */ - virtual std::vector get_coefficients() const = 0; + virtual std::vector get_coefficients(const size_t chan = 0) const = 0; }; }} // namespace uhd::rfnoc -- cgit v1.2.3