7#ifndef INCLUDED_LIBUHD_CAL_GAIN_HPP
8#define INCLUDED_LIBUHD_CAL_GAIN_HPP
12#include <boost/optional.hpp>
16namespace uhd {
namespace usrp {
namespace cal {
23 static constexpr uint32_t NUM_AMP = 1;
24 static constexpr uint32_t NUM_DSA = 2 + NUM_AMP;
25 static constexpr uint32_t NUM_GAIN_STAGES = 61;
27 using sptr = std::shared_ptr<zbx_tx_dsa_cal>;
38 const std::string& name,
39 std::array<step_settings, NUM_GAIN_STAGES> dsa_steps) = 0;
50 const double freq,
const size_t gain_index)
const = 0;
69 const std::string& name,
const std::string& serial,
const uint64_t timestamp);
80 static constexpr uint32_t NUM_DSA = 4;
81 static constexpr uint32_t NUM_GAIN_STAGES = 61;
83 using sptr = std::shared_ptr<zbx_rx_dsa_cal>;
94 const std::string& name,
95 std::array<step_settings, NUM_GAIN_STAGES> dsa_steps) = 0;
107 const double freq,
const size_t gain_index)
const = 0;
122 const std::string& name,
const std::string& serial,
const uint64_t timestamp);
Definition: container.hpp:23
Definition: dsa_cal.hpp:78
static sptr make(const std::string &name, const std::string &serial, const uint64_t timestamp)
Factory for new cal data sets.
virtual const step_settings get_dsa_setting(const double freq, const size_t gain_index) const =0
static sptr make()
Default factory.
virtual void add_frequency_band(const double max_freq, const std::string &name, std::array< step_settings, NUM_GAIN_STAGES > dsa_steps)=0
virtual std::vector< uint32_t > get_band_settings(double freq, uint8_t dsa) const =0
virtual bool is_same_band(double freq1, double freq2) const =0
std::array< uint32_t, NUM_DSA > step_settings
Definition: dsa_cal.hpp:84
std::shared_ptr< zbx_rx_dsa_cal > sptr
Definition: dsa_cal.hpp:83
Definition: dsa_cal.hpp:21
static sptr make(const std::string &name, const std::string &serial, const uint64_t timestamp)
Factory for new cal data sets.
std::array< uint32_t, NUM_DSA > step_settings
Definition: dsa_cal.hpp:28
virtual void add_frequency_band(const double max_freq, const std::string &name, std::array< step_settings, NUM_GAIN_STAGES > dsa_steps)=0
virtual bool is_same_band(double freq1, double freq2) const =0
virtual std::vector< uint32_t > get_band_settings(double freq, uint8_t dsa) const =0
virtual const step_settings get_dsa_setting(const double freq, const size_t gain_index) const =0
std::shared_ptr< zbx_tx_dsa_cal > sptr
Definition: dsa_cal.hpp:27
static sptr make()
Default factory.
#define UHD_API
Definition: config.h:70
Definition: build_info.hpp:12