From ecd82e81c11df97aa13c73e375f98b42edc77889 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Wed, 22 Jan 2020 06:39:08 -0700 Subject: [PATCH] remove specific sample rate recommendations HackRF One supports arbitrary sample rates from 2 Msps to 20 Msps. In early development we had ideas about preferred sample rates that we no longer consider valid. --- host/hackrf-tools/src/hackrf_transfer.c | 2 +- host/libhackrf/src/hackrf.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index eeb6a17a..3b60e4f8 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -509,7 +509,7 @@ static void usage() { printf("\t[-l gain_db] # RX LNA (IF) gain, 0-40dB, 8dB steps\n"); printf("\t[-g gain_db] # RX VGA (baseband) gain, 0-62dB, 2dB steps\n"); printf("\t[-x gain_db] # TX VGA (IF) gain, 0-47dB, 1dB steps\n"); - printf("\t[-s sample_rate_hz] # Sample rate in Hz (4/8/10/12.5/16/20MHz, default %sMHz).\n", + printf("\t[-s sample_rate_hz] # Sample rate in Hz (2-20MHz, default %sMHz).\n", u64toa((DEFAULT_SAMPLE_RATE_HZ/FREQ_ONE_MHZ),&ascii_u64_data1)); printf("\t[-n num_samples] # Number of samples to transfer (default is unlimited).\n"); #ifndef _WIN32 diff --git a/host/libhackrf/src/hackrf.h b/host/libhackrf/src/hackrf.h index 7e5d2425..0dc6b1b2 100644 --- a/host/libhackrf/src/hackrf.h +++ b/host/libhackrf/src/hackrf.h @@ -193,8 +193,7 @@ extern ADDAPI int ADDCALL hackrf_set_freq_explicit(hackrf_device* device, const uint64_t if_freq_hz, const uint64_t lo_freq_hz, const enum rf_path_filter path); -/* currently 8-20Mhz - either as a fraction, i.e. freq 20000000hz divider 2 -> 10Mhz or as plain old 10000000hz (double) - preferred rates are 8, 10, 12.5, 16, 20Mhz due to less jitter */ +/* 2-20Mhz - either as a fraction, i.e. freq 20000000hz divider 2 -> 10Mhz or as plain old 10000000hz (double) */ extern ADDAPI int ADDCALL hackrf_set_sample_rate_manual(hackrf_device* device, const uint32_t freq_hz, const uint32_t divider); extern ADDAPI int ADDCALL hackrf_set_sample_rate(hackrf_device* device, const double freq_hz);