aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/ddc_block_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/ddc_block_control.cpp')
-rw-r--r--host/lib/rfnoc/ddc_block_control.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp
index 99a00dd1d..91c53a5e9 100644
--- a/host/lib/rfnoc/ddc_block_control.cpp
+++ b/host/lib/rfnoc/ddc_block_control.cpp
@@ -106,7 +106,7 @@ public:
double set_freq(const double freq,
const size_t chan,
- const boost::optional<uhd::time_spec_t> time)
+ const boost::optional<uhd::time_spec_t> time) override
{
// Store the current command time so we can restore it later
auto prev_cmd_time = get_command_time(chan);
@@ -119,12 +119,12 @@ public:
return get_freq(chan);
}
- double get_freq(const size_t chan) const
+ double get_freq(const size_t chan) const override
{
return _freq.at(chan).get();
}
- uhd::freq_range_t get_frequency_range(const size_t chan) const
+ uhd::freq_range_t get_frequency_range(const size_t chan) const override
{
const double input_rate =
_samp_rate_in.at(chan).is_valid() ? _samp_rate_in.at(chan).get() : 1.0;
@@ -132,22 +132,22 @@ public:
return uhd::freq_range_t(-input_rate / 2, input_rate / 2);
}
- double get_input_rate(const size_t chan) const
+ double get_input_rate(const size_t chan) const override
{
return _samp_rate_in.at(chan).is_valid() ? _samp_rate_in.at(chan).get() : 1.0;
}
- void set_input_rate(const double rate, const size_t chan)
+ void set_input_rate(const double rate, const size_t chan) override
{
set_property<double>("samp_rate", rate, {res_source_info::INPUT_EDGE, chan});
}
- double get_output_rate(const size_t chan) const
+ double get_output_rate(const size_t chan) const override
{
return _samp_rate_out.at(chan).is_valid() ? _samp_rate_out.at(chan).get() : 1.0;
}
- uhd::meta_range_t get_output_rates(const size_t chan) const
+ uhd::meta_range_t get_output_rates(const size_t chan) const override
{
uhd::meta_range_t result;
if (!_samp_rate_in.at(chan).is_valid()) {
@@ -163,7 +163,7 @@ public:
return result;
}
- double set_output_rate(const double rate, const size_t chan)
+ double set_output_rate(const double rate, const size_t chan) override
{
if (_samp_rate_in.at(chan).is_valid()) {
const int coerced_decim = coerce_decim(get_input_rate(chan) / rate);
@@ -184,7 +184,7 @@ public:
// handler goes both ways.
// This way, calling issue_stream_cmd() is the same as posting a message to
// our output port.
- void issue_stream_cmd(const uhd::stream_cmd_t& stream_cmd, const size_t port)
+ void issue_stream_cmd(const uhd::stream_cmd_t& stream_cmd, const size_t port) override
{
RFNOC_LOG_TRACE("issue_stream_cmd(stream_mode=" << char(stream_cmd.stream_mode)
<< ", port=" << port);