Loading...
Searching...
No Matches
tune_request.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 enum {
UHD_TUNE_REQUEST_POLICY_NONE = 78,
UHD_TUNE_REQUEST_POLICY_AUTO = 65,
UHD_TUNE_REQUEST_POLICY_MANUAL = 77
} uhd_tune_request_policy_t;
typedef struct
{
double target_freq;
uhd_tune_request_policy_t rf_freq_policy;
double rf_freq;
uhd_tune_request_policy_t dsp_freq_policy;
double dsp_freq;
char* args;
} uhd_tune_request_t;
#ifdef __cplusplus
# include <uhd/types/tune_request.hpp>
UHD_API uhd::tune_request_t uhd_tune_request_c_to_cpp(uhd_tune_request_t* tune_request_c);
#endif
config.h
UHD_API
#define UHD_API
Definition config.h:87
uhd::tune_request_t
Definition tune_request.hpp:25
uhd_tune_request_t
Instructs implementation how to tune the RF chain.
Definition tune_request.h:29
uhd_tune_request_t::dsp_freq_policy
uhd_tune_request_policy_t dsp_freq_policy
DSP frequency policy.
Definition tune_request.h:37
uhd_tune_request_t::rf_freq
double rf_freq
RF frequency in Hz.
Definition tune_request.h:35
uhd_tune_request_t::dsp_freq
double dsp_freq
DSP frequency in Hz.
Definition tune_request.h:39
uhd_tune_request_t::args
char * args
Key-value pairs delimited by commas.
Definition tune_request.h:41
uhd_tune_request_t::target_freq
double target_freq
Target frequency for RF chain in Hz.
Definition tune_request.h:31
uhd_tune_request_t::rf_freq_policy
uhd_tune_request_policy_t rf_freq_policy
RF frequency policy.
Definition tune_request.h:33
uhd_tune_request_policy_t
uhd_tune_request_policy_t
Policy options for tunable elements in the RF chain.
Definition tune_request.h:15
UHD_TUNE_REQUEST_POLICY_MANUAL
@ UHD_TUNE_REQUEST_POLICY_MANUAL
Use the argument's value for the setting.
Definition tune_request.h:21
UHD_TUNE_REQUEST_POLICY_NONE
@ UHD_TUNE_REQUEST_POLICY_NONE
Do not set this argument, use current setting.
Definition tune_request.h:17
UHD_TUNE_REQUEST_POLICY_AUTO
@ UHD_TUNE_REQUEST_POLICY_AUTO
Automatically determine the argument's value.
Definition tune_request.h:19
tune_request.hpp