diff options
author | sugandhagupta <sugandha.gupta@ettus.com> | 2017-06-06 16:03:49 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | c4c3b8d6b7ceabb66386c7db8d170e9a5504746b (patch) | |
tree | f2da633347f8cf832d8fcbaea4f2412e3f50fab5 /host/lib/usrp/mpmd | |
parent | 5f9d617073e12f191df90a0510702e2a1ee52bc9 (diff) | |
download | uhd-c4c3b8d6b7ceabb66386c7db8d170e9a5504746b.tar.gz uhd-c4c3b8d6b7ceabb66386c7db8d170e9a5504746b.tar.bz2 uhd-c4c3b8d6b7ceabb66386c7db8d170e9a5504746b.zip |
mpmd: property tree fixes for multi_usrp, set_freq fixes
Diffstat (limited to 'host/lib/usrp/mpmd')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp index 8ae7d79d7..23a90976c 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_impl.cpp @@ -25,6 +25,7 @@ #include <uhd/transport/udp_zero_copy.hpp> #include <uhd/utils/static.hpp> #include <uhd/utils/tasks.hpp> +#include <uhd/types/sensors.hpp> #include <boost/algorithm/string.hpp> #include <boost/asio.hpp> #include <boost/make_shared.hpp> @@ -93,6 +94,21 @@ namespace { ); }) ; + tree->create<sensor_value_t>( + mb_path / "sensors/ref_locked") + .set_publisher([](){ + return sensor_value_t ( + "Ref", true, "locked", "unlocked" // FIXME: Remove hardcoded "true" + ); + }) + ; + tree->create<int>( + mb_path / "rx_codecs" / "A" / "gains") + .set_publisher([](){ + return 1 // FIXME: Remove hardcoding + ; + }) + ; } } |