Loading...
Searching...
No Matches
tune_result.h
Go to the documentation of this file.
//
// Copyright 2015 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.h>
#include <stdlib.h>
typedef struct
{
double clipped_rf_freq;
double target_rf_freq;
double actual_rf_freq;
double target_dsp_freq;
double actual_dsp_freq;
} uhd_tune_result_t;
#ifdef __cplusplus
extern "C" {
#endif
UHD_API void uhd_tune_result_to_pp_string(
uhd_tune_result_t* tune_result, char* pp_string_out, size_t strbuffer_len);
#ifdef __cplusplus
}
# include <uhd/types/tune_result.hpp>
UHD_API uhd::tune_result_t uhd_tune_result_c_to_cpp(uhd_tune_result_t* tune_result_c);
UHD_API void uhd_tune_result_cpp_to_c(
const uhd::tune_result_t& tune_result_cpp, uhd_tune_result_t* tune_result_c);
#endif
config.h
UHD_API
#define UHD_API
Definition config.h:87
uhd::tune_result_t
Definition tune_result.hpp:19
uhd_tune_result_t
Stores RF and DSP tuned frequencies.
Definition tune_result.h:19
uhd_tune_result_t::actual_rf_freq
double actual_rf_freq
Frequency to which RF LO is actually tuned.
Definition tune_result.h:25
uhd_tune_result_t::clipped_rf_freq
double clipped_rf_freq
Target RF frequency, clipped to be within system range.
Definition tune_result.h:21
uhd_tune_result_t::target_dsp_freq
double target_dsp_freq
Frequency the CORDIC must adjust the RF.
Definition tune_result.h:27
uhd_tune_result_t::actual_dsp_freq
double actual_dsp_freq
Frequency to which the CORDIC in the DSP actually tuned.
Definition tune_result.h:29
uhd_tune_result_t::target_rf_freq
double target_rf_freq
Target RF frequency, including RF FE offset.
Definition tune_result.h:23
uhd_tune_result_to_pp_string
UHD_API void uhd_tune_result_to_pp_string(uhd_tune_result_t *tune_result, char *pp_string_out, size_t strbuffer_len)
Create a pretty print representation of this tune result.
tune_result.hpp