diff options
author | David Raeman <david@synopticengineering.com> | 2022-06-12 16:57:36 +0000 |
---|---|---|
committer | skooNI <60897865+skooNI@users.noreply.github.com> | 2022-07-20 15:57:20 -0500 |
commit | 414e67480abc8fed5c8ec056af3ccfda33d079fd (patch) | |
tree | 8050625ffe0c9daef8bfecab616a3d580feb015f /host/lib | |
parent | 35352b4b9eeae6ad8d1d764c2c241eef60cc7d0f (diff) | |
download | uhd-414e67480abc8fed5c8ec056af3ccfda33d079fd.tar.gz uhd-414e67480abc8fed5c8ec056af3ccfda33d079fd.tar.bz2 uhd-414e67480abc8fed5c8ec056af3ccfda33d079fd.zip |
cal: add method to get the current power cal tracking mode
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/common/pwr_cal_mgr.cpp | 5 |
2 files changed, 9 insertions, 0 deletions
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()) { |