diff options
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_impl.cpp')
-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 + ; + }) + ; } } |