diff options
Diffstat (limited to 'host/lib/include/uhdlib/usrp/common/adf435x.hpp')
-rw-r--r-- | host/lib/include/uhdlib/usrp/common/adf435x.hpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/adf435x.hpp b/host/lib/include/uhdlib/usrp/common/adf435x.hpp index de93bfd69..8c47c94fd 100644 --- a/host/lib/include/uhdlib/usrp/common/adf435x.hpp +++ b/host/lib/include/uhdlib/usrp/common/adf435x.hpp @@ -139,19 +139,19 @@ public: { } - virtual ~adf435x_impl(){}; + ~adf435x_impl() override{}; - void set_reference_freq(double fref) + void set_reference_freq(double fref) override { _reference_freq = fref; } - void set_feedback_select(feedback_sel_t fb_sel) + void set_feedback_select(feedback_sel_t fb_sel) override { _fb_after_divider = (fb_sel == FB_SEL_DIVIDED); } - void set_prescaler(prescaler_t prescaler) + void set_prescaler(prescaler_t prescaler) override { if (prescaler == PRESCALER_8_9) { _regs.prescaler = adf435x_regs_t::PRESCALER_8_9; @@ -162,7 +162,7 @@ public: } } - void set_output_power(output_t output, output_power_t power) + void set_output_power(output_t output, output_power_t power) override { switch (output) { case RF_OUTPUT_A: @@ -206,7 +206,7 @@ public: } } - void set_output_enable(output_t output, bool enable) + void set_output_enable(output_t output, bool enable) override { switch (output) { case RF_OUTPUT_A: @@ -222,7 +222,7 @@ public: } } - void set_muxout_mode(muxout_t mode) + void set_muxout_mode(muxout_t mode) override { switch (mode) { case MUXOUT_3STATE: @@ -251,7 +251,7 @@ public: } } - void set_tuning_mode(tuning_mode_t mode) + void set_tuning_mode(tuning_mode_t mode) override { // New mode applies to subsequent tunes i.e. do not re-tune now _tuning_mode = mode; @@ -262,7 +262,7 @@ public: _regs.phase_12_bit = (_tuning_mode == TUNING_MODE_HIGH_RESOLUTION) ? 0 : 1; } - void set_charge_pump_current(charge_pump_current_t cp_current) + void set_charge_pump_current(charge_pump_current_t cp_current) override { switch (cp_current) { case CHARGE_PUMP_CURRENT_0_31MA: @@ -318,7 +318,7 @@ public: } } - double set_charge_pump_current(const double current, const bool flush) + double set_charge_pump_current(const double current, const bool flush) override { const auto cp_range = get_charge_pump_current_range(); @@ -344,19 +344,19 @@ public: return coerced_current; } - uhd::meta_range_t get_charge_pump_current_range() + uhd::meta_range_t get_charge_pump_current_range() override { return uhd::meta_range_t(.3125e-6, 5e-6, .3125e-6); } - uhd::range_t get_int_range() + uhd::range_t get_int_range() override { if (_N_min < 0) throw uhd::runtime_error("set_prescaler must be called before get_int_range"); return uhd::range_t(_N_min, 4095); } - double set_frequency(double target_freq, bool int_n_mode, bool flush = false) + double set_frequency(double target_freq, bool int_n_mode, bool flush = false) override { static const double REF_DOUBLER_THRESH_FREQ = 12.5e6; static const double PFD_FREQ_MAX = 25.0e6; @@ -531,7 +531,7 @@ public: return actual_freq; } - void commit() + void commit() override { // reset counters _regs.counter_reset = adf435x_regs_t::COUNTER_RESET_ENABLED; |