aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-26 18:20:29 -0700
committerMartin Braun <martin.braun@ettus.com>2018-05-11 08:44:20 -0700
commitfa7f7d8baa87808b92a6a13fe73aba6ac7138d21 (patch)
tree9a69a9c1fefb7a83cf3a77cd0c16fa28522b9ce3 /host/include
parent74d4fdeaba372fe13b544524abfafd9c6f081f20 (diff)
downloaduhd-fa7f7d8baa87808b92a6a13fe73aba6ac7138d21.tar.gz
uhd-fa7f7d8baa87808b92a6a13fe73aba6ac7138d21.tar.bz2
uhd-fa7f7d8baa87808b92a6a13fe73aba6ac7138d21.zip
docs: Clarify meaning of DSP frequencies
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/tune_request.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/include/uhd/types/tune_request.hpp b/host/include/uhd/types/tune_request.hpp
index d07b5d7fc..ec7e70619 100644
--- a/host/include/uhd/types/tune_request.hpp
+++ b/host/include/uhd/types/tune_request.hpp
@@ -19,6 +19,8 @@ namespace uhd{
* fined control over the daughterboard IF and DSP tuning.
* Not all combinations of policies are applicable.
* Convenience constructors are supplied for most use cases.
+ *
+ * See also \ref general_tuning
*/
struct UHD_API tune_request_t{
/*!
@@ -76,6 +78,15 @@ namespace uhd{
/*!
* The DSP frequency in Hz.
* Set when the policy is set to manual.
+ *
+ * Note that the meaning of the DSP frequency's sign differs between
+ * TX and RX operations. The target frequency is the result of
+ * `target_freq = rf_freq + sign * dsp_freq`. For TX, `sign` is
+ * negative, and for RX, `sign` is positive.
+ * Example: If both RF and DSP tuning policies are set to manual, and
+ * `rf_freq` is set to 1 GHz, and `dsp_freq` is set to 10 MHz, the
+ * actual target frequency is 990 MHz for a TX tune request, and
+ * 1010 MHz for an RX tune request.
*/
double dsp_freq;