diff options
| author | Jonathon Pendlum <jonathon.pendlum@ettus.com> | 2022-02-12 21:20:21 -0500 | 
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-23 16:21:24 -0500 | 
| commit | 5d20a5a40155e888484f7d57a277bdcebed44207 (patch) | |
| tree | 3171010abd7a74ed2abda35938904bf87e87b2fe /host/include | |
| parent | e57d22d525d93a72f9bc99fa1359aad0c51c921e (diff) | |
| download | uhd-5d20a5a40155e888484f7d57a277bdcebed44207.tar.gz uhd-5d20a5a40155e888484f7d57a277bdcebed44207.tar.bz2 uhd-5d20a5a40155e888484f7d57a277bdcebed44207.zip  | |
rfnoc: fir filter: Add support for multiple channels to block controller
Diffstat (limited to 'host/include')
| -rw-r--r-- | host/include/uhd/rfnoc/fir_filter_block_control.hpp | 7 | 
1 files changed, 4 insertions, 3 deletions
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<int16_t>& coeffs) = 0; +    virtual void set_coefficients(const std::vector<int16_t>& 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<int16_t> get_coefficients() const = 0; +    virtual std::vector<int16_t> get_coefficients(const size_t chan = 0) const = 0;  };  }} // namespace uhd::rfnoc  | 
