diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/node.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/host/include/uhd/rfnoc/node.hpp b/host/include/uhd/rfnoc/node.hpp index 59836fbf6..33831a4d7 100644 --- a/host/include/uhd/rfnoc/node.hpp +++ b/host/include/uhd/rfnoc/node.hpp @@ -10,9 +10,10 @@ #include <uhd/rfnoc/actions.hpp> #include <uhd/rfnoc/dirtifier.hpp> #include <uhd/rfnoc/property.hpp> +#include <uhd/types/device_addr.hpp> +#include <uhd/types/time_spec.hpp> #include <uhd/utils/log.hpp> #include <uhd/utils/scope_exit.hpp> -#include <uhd/types/time_spec.hpp> #include <unordered_map> #include <unordered_set> #include <boost/graph/adjacency_list.hpp> @@ -123,6 +124,19 @@ public: void set_property( const std::string& id, const prop_data_t& val, const size_t instance = 0); + /*! Set multiple properties coming from a dictionary + * + * This is equivalent to calling set_property() individually for every + * key/value pair of props. However, the type of the property will be + * automatically derived using RTTI. Only certain types are supported. + * + * Property resolution happens after all properties have been updated. + * + * If a key in \p props is not a valid property of this block, a warning is + * logged, but no error is raised. + */ + void set_properties(const uhd::device_addr_t& props, const size_t instance = 0); + /*! Get the value of a specific block argument. \p The type of an argument * must be known at compile time. * |