12#include <boost/optional.hpp>
15namespace uhd {
namespace usrp {
namespace cal {
47 using sptr = std::shared_ptr<pwr_cal>;
65 const double min_power,
66 const double max_power,
68 const boost::optional<int> temperature = boost::none) = 0;
106 const boost::optional<int> temperature = boost::none)
const = 0;
121 const boost::optional<int> temperature = boost::none)
const = 0;
140 const boost::optional<int> temperature = boost::none)
const = 0;
144 const std::string& name,
const std::string& serial,
const uint64_t timestamp);
Definition: container.hpp:23
Definition: pwr_cal.hpp:45
static sptr make(const std::string &name, const std::string &serial, const uint64_t timestamp)
Factory for new cal data sets.
static sptr make()
Default factory.
virtual void set_ref_gain(const double gain)=0
virtual void set_temperature(const int temperature)=0
virtual double get_gain(const double power_dbm, const double freq, const boost::optional< int > temperature=boost::none) const =0
virtual int get_temperature() const =0
Return the current default temperature.
virtual double get_ref_gain() const =0
virtual uhd::meta_range_t get_power_limits(const double freq, const boost::optional< int > temperature=boost::none) const =0
virtual double get_power(const double gain, const double freq, const boost::optional< int > temperature=boost::none) const =0
std::shared_ptr< pwr_cal > sptr
Definition: pwr_cal.hpp:47
virtual void add_power_table(const std::map< double, double > &gain_power_map, const double min_power, const double max_power, const double freq, const boost::optional< int > temperature=boost::none)=0
#define UHD_API
Definition: config.h:87
Definition: build_info.hpp:12