Skip to content

Commit

Permalink
increase forceable IF range to 2000-3000 MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Dec 23, 2022
1 parent 86c1d8c commit 3d687a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions firmware/common/tuning.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
#define MIN_LP_FREQ_MHZ (0)
#define MAX_LP_FREQ_MHZ (2170ULL)

#define ABS_MIN_BYPASS_FREQ_MHZ (2150ULL)
#define ABS_MIN_BYPASS_FREQ_MHZ (2000ULL)
#define MIN_BYPASS_FREQ_MHZ (MAX_LP_FREQ_MHZ)
#define MAX_BYPASS_FREQ_MHZ (2740ULL)
#define ABS_MAX_BYPASS_FREQ_MHZ (2750ULL)
#define ABS_MAX_BYPASS_FREQ_MHZ (3000ULL)

#define MIN_HP_FREQ_MHZ (MAX_BYPASS_FREQ_MHZ)
#define MID1_HP_FREQ_MHZ (3600ULL)
Expand Down
4 changes: 2 additions & 2 deletions host/hackrf-tools/src/hackrf_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ int gettimeofday(struct timeval* tv, void* ignored)
#define FREQ_MIN_HZ (1000000ll) /* 1MHz */
#define FREQ_MAX_HZ (6000000000ll) /* 6000MHz */
#define FREQ_ABS_MAX_HZ (7250000000ll) /* 7250MHz */
#define IF_ABS_MIN_HZ (2150000000ll)
#define IF_ABS_MIN_HZ (2000000000ll)
#define IF_MIN_HZ (2170000000ll)
#define IF_MAX_HZ (2740000000ll)
#define IF_ABS_MAX_HZ (2750000000ll)
#define IF_ABS_MAX_HZ (3000000000ll)
#define LO_MIN_HZ (84375000ll)
#define LO_MAX_HZ (5400000000ll)
#define DEFAULT_LO_HZ (1000000000ll)
Expand Down
10 changes: 5 additions & 5 deletions host/libhackrf/src/hackrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,12 +1458,12 @@ int ADDCALL hackrf_set_freq_explicit(

/*
* Restriction to the range 2170-2740 MHz is strongly recommended for
* HackRF One and Jawbreaker. We permit IF as low as 2150 MHz and as
* high as 2750 MHz for backwards compatibility and for
* experimentation, but settings outside the recommended range may not
* work on all devices.
* HackRF One and Jawbreaker. We permit IF as low as 2000 MHz and as
* high as 3000 MHz for backwards compatibility and for
* experimentation, but settings outside the recommended range are
* unlikely to work.
*/
if (if_freq_hz < 2150000000 || if_freq_hz > 2750000000) {
if (if_freq_hz < 2000000000 || if_freq_hz > 3000000000) {
return HACKRF_ERROR_INVALID_PARAM;
}

Expand Down

0 comments on commit 3d687a2

Please sign in to comment.