diff options
Diffstat (limited to 'host/lib/rfnoc/ddc_block_control.cpp')
-rw-r--r-- | host/lib/rfnoc/ddc_block_control.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp index 0522991ba..abf8d1f7b 100644 --- a/host/lib/rfnoc/ddc_block_control.cpp +++ b/host/lib/rfnoc/ddc_block_control.cpp @@ -136,6 +136,11 @@ public: 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) + { + set_property<double>("samp_rate", rate, {res_source_info::INPUT_EDGE, chan}); + } + double get_output_rate(const size_t chan) const { return _samp_rate_out.at(chan).is_valid() ? _samp_rate_out.at(chan).get() : 1.0; |