On 08/16/2018 01:38 PM, Hojoon Yang via USRP-users wrote:
Hi, all
I want to give *lo offset* for tune_request.
In C++, I'm able to set the lo_offset for tune_request, i.e.
uhd::tune_request_t tune_request(target_freq, lo_offset)
In C, How can I achieve this using uhd_tune_request_t?
uhd_tune_request_t tune_request = {
.target_freq = target_freq,
.rf_freq_policy = UHD_TUNE_REQUEST_POLICY_AUTO,
.dsp_freq_policy = UHD_TUNE_REQUEST_POLICY_AUTO
};
Thanks.
Indeed, I can't quite figure this out myself, despite spending some time
with the C part of the codebase. I think the function templates are
automatically generated during build time from the C++ headers.
Perhaps someone in R&D can comment on how this is done for C++ methods
that are overloaded with respect to argument types.
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com