From 919043f305efdd29fbdf586e9cde95d9507150e8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Aug 2021 10:39:23 +0200 Subject: rfnoc: ddc: Improve unit tests and documentation The previous commit fixed a bug in the DUC, where get_frequency_range() reported incorrect values. The DDC did not have this bug, but we port the updates to the unit tests and the documentation from the DUC to the DDC for consistency's sake. --- host/include/uhd/rfnoc/ddc_block_control.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/ddc_block_control.hpp b/host/include/uhd/rfnoc/ddc_block_control.hpp index 834fa0aa3..053b78c4c 100644 --- a/host/include/uhd/rfnoc/ddc_block_control.hpp +++ b/host/include/uhd/rfnoc/ddc_block_control.hpp @@ -78,6 +78,13 @@ public: virtual double get_freq(const size_t chan) const = 0; /*! Return the range of frequencies that \p chan can be set to. + * + * The frequency shifter is the first component in the DDC, and thus can + * shift frequencies (digitally) between -get_input_rate()/2 + * and +get_input_rate()/2. + * + * The returned values are in Hz (not normalized frequencies) and are valid + * inputs for set_freq(). * * \return The range of frequencies that the DDC can shift the input by */ -- cgit v1.2.3