Skip to content

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

Draft
antoinevg wants to merge 9 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 9 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 6 times, most recently from 226aeaf to a3c32ba Compare June 30, 2026 09:22
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch from a3c32ba to 792b29f Compare July 1, 2026 14:14
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch 2 times, most recently from 754425a to 2824232 Compare July 7, 2026 10:16
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch 5 times, most recently from 9b21a13 to 1319426 Compare July 23, 2026 14:19
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch from d0f4cbc to e52b5ea Compare July 24, 2026 07:50
…uency_explicit()' and 'hackrf_radio_set_sample_rate()'
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch 3 times, most recently from 1c243a7 to 3fce78a Compare July 24, 2026 10:30
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch from 3fce78a to 83a49c3 Compare July 24, 2026 10:54
@antoinevg
antoinevg force-pushed the antoinevg/radio-fp branch from 10fb83f to 23813d6 Compare July 24, 2026 11:32
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