From 414e67480abc8fed5c8ec056af3ccfda33d079fd Mon Sep 17 00:00:00 2001 From: David Raeman Date: Sun, 12 Jun 2022 16:57:36 +0000 Subject: cal: add method to get the current power cal tracking mode --- host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp | 4 ++++ host/lib/usrp/common/pwr_cal_mgr.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp index c24e7718c..09289fb1d 100644 --- a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp +++ b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp @@ -134,6 +134,10 @@ public: */ virtual void set_tracking_mode(const tracking_mode) = 0; + /*! Get the current power tracking mode + */ + virtual tracking_mode get_tracking_mode() = 0; + //! Return the currently active calibration data key virtual std::string get_key() = 0; diff --git a/host/lib/usrp/common/pwr_cal_mgr.cpp b/host/lib/usrp/common/pwr_cal_mgr.cpp index 7fb569e83..2f5f2e87a 100644 --- a/host/lib/usrp/common/pwr_cal_mgr.cpp +++ b/host/lib/usrp/common/pwr_cal_mgr.cpp @@ -185,6 +185,11 @@ public: _mode = mode; } + tracking_mode get_tracking_mode() override + { + return _mode; + } + void set_serial(const std::string& serial) override { if (serial == _serial || serial.empty()) { -- cgit v1.2.3