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.
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user