From 86a1c47ee1a1d1d2aa9b7904ecf5486bb3bf3eac Mon Sep 17 00:00:00 2001 From: Grant Meyerhoff Date: Mon, 14 Jun 2021 11:25:58 -0500 Subject: uhd: Add callback for setting sync_sources --- host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp') diff --git a/host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp b/host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp index a40398991..e7498b9f5 100644 --- a/host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp +++ b/host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp @@ -101,6 +101,8 @@ public: std::vector get_gpio_src(const std::string& bank) override; void set_gpio_src( const std::string& bank, const std::vector& src) override; + void register_sync_source_updater( + mb_controller::sync_source_updater_t callback_f) override; private: /************************************************************************** @@ -118,6 +120,8 @@ private: std::vector _gpio_banks; std::unordered_map> _gpio_srcs; + std::vector _sync_source_updaters; + public: /*! When the FPGA is reloaded, pass the notification to every Radio block * Public to allow other classes to register for notifications. -- cgit v1.2.3