Add fixed-point support for setting center frequency and sample rate. (3/n)#1772
Draft
antoinevg wants to merge 7 commits into
Draft
Add fixed-point support for setting center frequency and sample rate. (3/n)#1772antoinevg wants to merge 7 commits into
antoinevg wants to merge 7 commits into
Conversation
81dae90 to
59f47b8
Compare
6 tasks
92c865a to
608c92f
Compare
5bfa644 to
0ba92b8
Compare
fc93b26 to
5a597e0
Compare
3 tasks
1885516 to
226aeaf
Compare
226aeaf to
a3c32ba
Compare
…device_list_open_mode()'
a3c32ba to
792b29f
Compare
…uency_explicit()' and 'hackrf_radio_set_sample_rate()'
792b29f to
754425a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR depends on #1774
This PR adds the following new methods to
libhackrf:hackrf_radio_set_frequency(hackrf_device* device, const fp_40_24_t freq_hz);hackrf_radio_set_frequency_explicit(hackrf_device* device, const fp_40_24_t if_freq_hz, const fp_40_24_t lo_freq_hz, const enum rf_path_filter path);hackrf_radio_set_sample_rate(hackrf_device* device, const fp_28_36_t rate_hz);hackrf_str_to_fp64(uint8_t Qn, char* str, char* endptr, uint64_t* const value);FREQ_FP_HZ(u64),FP_FREQ_HZ(u64),SR_FP_HZ(u64),FP_SR_HZ(u64)hackrf_library_version_major/minor/patch()TODO