diff options
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/factory.hpp')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/factory.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/factory.hpp b/host/lib/include/uhdlib/rfnoc/factory.hpp index 8d1fb27a0..be42a57e5 100644 --- a/host/lib/include/uhdlib/rfnoc/factory.hpp +++ b/host/lib/include/uhdlib/rfnoc/factory.hpp @@ -12,6 +12,14 @@ namespace uhd { namespace rfnoc { +struct block_factory_info_t +{ + std::string block_name; + std::string timebase_clk; + std::string ctrlport_clk; + registry::factory_t factory_fn; +}; + /*! Container for factory functionality */ class factory @@ -19,11 +27,10 @@ class factory public: /*! Return a factory function for an RFNoC block based on the Noc-ID * - * \returns a pair: factory function, and block name + * \returns a block_factory_info_t object * \throws uhd::lookup_error if no block is found */ - static std::pair<registry::factory_t, std::string> - get_block_factory(noc_block_base::noc_id_t noc_id); + static block_factory_info_t get_block_factory(noc_block_base::noc_id_t noc_id); /*! Check if this block has requested access to the motherboard controller */ |