diff options
author | mattprost <matt.prost@ni.com> | 2020-03-20 10:31:10 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-02 12:12:26 -0500 |
commit | c65166562f1278f6633b183b7188789158210544 (patch) | |
tree | dd61b3cff3241af2cb5aa8c9a7da1b5727652d55 /host/lib/include | |
parent | 6aed4b5a45cf0057bc175e19a86888259bf17cec (diff) | |
download | uhd-c65166562f1278f6633b183b7188789158210544.tar.gz uhd-c65166562f1278f6633b183b7188789158210544.tar.bz2 uhd-c65166562f1278f6633b183b7188789158210544.zip |
rfnoc: Use multichannel register interface for RFNoC blocks
Allows RFNoC blocks to perform register peeks and pokes on blocks with
multiple channels without having to worry about handling register address
translation every time.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib/include')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index 1a78d7cab..69577b9e4 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -5,6 +5,7 @@ // #include <uhd/rfnoc/defaults.hpp> +#include <uhd/rfnoc/multichan_register_iface.hpp> #include <uhd/rfnoc/radio_control.hpp> #include <unordered_map> #include <mutex> @@ -296,6 +297,9 @@ protected: //! Properties for samp_rate (one per port) std::vector<property_t<double>> _samp_rate_out; + //! Block-specific register interface + multichan_register_iface _radio_reg_iface; + private: //! Validator for the async messages // |