Skip to content

Add fixed-point support for setting center frequency and sample rate. (3/n)#1772

Draft
antoinevg wants to merge 7 commits into
mainfrom
antoinevg/radio-fp
Draft

Add fixed-point support for setting center frequency and sample rate. (3/n)#1772
antoinevg wants to merge 7 commits into
mainfrom
antoinevg/radio-fp

Conversation

@antoinevg

@antoinevg antoinevg commented Jun 1, 2026

Copy link
Copy Markdown
Member

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);
  • Fixed-point macros: FREQ_FP_HZ(u64), FP_FREQ_HZ(u64), SR_FP_HZ(u64), FP_SR_HZ(u64)
  • hackrf_library_version_major/minor/patch()

TODO

@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch 3 times, most recently from 81dae90 to 59f47b8 Compare June 2, 2026 08:21
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch 3 times, most recently from 92c865a to 608c92f Compare June 9, 2026 13:21
@antoinevg antoinevg changed the title Add fixed-point support for setting center frequency and sample rate. Add fixed-point support for setting center frequency and sample rate. (3/n) Jun 9, 2026
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch 6 times, most recently from 5bfa644 to 0ba92b8 Compare June 16, 2026 12:43
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch 5 times, most recently from fc93b26 to 5a597e0 Compare June 23, 2026 09:31
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch 5 times, most recently from 1885516 to 226aeaf Compare June 26, 2026 15:01
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch from 226aeaf to a3c32ba Compare June 30, 2026 09:22
@antoinevg antoinevg force-pushed the antoinevg/radio-fp branch from 792b29f to 754425a Compare July 6, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant