aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorGrant Meyerhoff <grant.meyerhoff@ni.com>2021-06-14 11:25:58 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-17 12:35:32 -0500
commit86a1c47ee1a1d1d2aa9b7904ecf5486bb3bf3eac (patch)
treeeba0358aec899fdaf3c85bb78ebb3c94c053fd7f /host/lib/include
parentc0a44be527e65aa83f1a00ab59785906a5411612 (diff)
downloaduhd-86a1c47ee1a1d1d2aa9b7904ecf5486bb3bf3eac.tar.gz
uhd-86a1c47ee1a1d1d2aa9b7904ecf5486bb3bf3eac.tar.bz2
uhd-86a1c47ee1a1d1d2aa9b7904ecf5486bb3bf3eac.zip
uhd: Add callback for setting sync_sources
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/usrp/common/mpmd_mb_controller.hpp4
1 files changed, 4 insertions, 0 deletions
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<std::string> get_gpio_src(const std::string& bank) override;
void set_gpio_src(
const std::string& bank, const std::vector<std::string>& src) override;
+ void register_sync_source_updater(
+ mb_controller::sync_source_updater_t callback_f) override;
private:
/**************************************************************************
@@ -118,6 +120,8 @@ private:
std::vector<std::string> _gpio_banks;
std::unordered_map<std::string, std::vector<std::string>> _gpio_srcs;
+ std::vector<mb_controller::sync_source_updater_t> _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.