diff options
author | Alex Williams <alex.williams@ni.com> | 2019-06-04 15:30:46 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-06-07 10:35:00 -0700 |
commit | b4c3ddac75ea99d45c16988edf15d2291c4109bd (patch) | |
tree | ff5364a152d7b6feb2238aec32bccf5d25f470af | |
parent | 99afbd3855bdda10ded4b7a11ca7fd2b1e721ba7 (diff) | |
download | uhd-b4c3ddac75ea99d45c16988edf15d2291c4109bd.tar.gz uhd-b4c3ddac75ea99d45c16988edf15d2291c4109bd.tar.bz2 uhd-b4c3ddac75ea99d45c16988edf15d2291c4109bd.zip |
rfnoc: Consolidate double-documented param in block_ctrl_base
-rw-r--r-- | host/include/uhd/rfnoc/block_ctrl_base.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/include/uhd/rfnoc/block_ctrl_base.hpp b/host/include/uhd/rfnoc/block_ctrl_base.hpp index 0bf701810..7ad2dc67e 100644 --- a/host/include/uhd/rfnoc/block_ctrl_base.hpp +++ b/host/include/uhd/rfnoc/block_ctrl_base.hpp @@ -242,10 +242,9 @@ public: * defined in the block definition file. * * \param reg The user register name. - * \param port Destination port. + * \param port Destination port from which to read. * \returns the readback value. * \throws uhd::key_error if \p reg is not a valid register name - * \param port Port from which to read */ uint32_t user_reg_read32(const std::string& reg, const size_t port = 0); @@ -327,7 +326,8 @@ public: std::string get_arg(const std::string& key, const size_t port = 0) const; //! Direct access to get a block argument. - template <typename T> T get_arg(const std::string& key, const size_t port = 0) const + template <typename T> + T get_arg(const std::string& key, const size_t port = 0) const { return _tree->access<T>(get_arg_path(key, port) / "value").get(); } |