Skip to content

Commit b4e8d55

Browse files
authored
hackrf_transfer: align rate limits with MIN/MAX_MCU_RATE
now that we have hardware-enforced sample rate limits, I think it'd be nice to align the checks done in hackrf_transfer with those. if worried about expanding these limits breaking older firmware, I can add an USB API check for >= 1.11. related to greatscottgadgets#1787 but seems to have no conflicts, feel free to close if you want to add that patch there :)
1 parent 8dbb347 commit b4e8d55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

host/hackrf-tools/src/hackrf_transfer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ int gettimeofday(struct timeval* tv, void* ignored)
9797
#define LO_MAX_HZ (5400000000ll)
9898
#define DEFAULT_LO_HZ (1000000000ll)
9999

100-
#define SAMPLE_RATE_MIN_HZ (2000000) /* 2MHz min sample rate */
101-
#define SAMPLE_RATE_MAX_HZ (20000000) /* 20MHz max sample rate */
100+
#define SAMPLE_RATE_MIN_HZ (200000) /* 200kHz min sample rate */
101+
#define SAMPLE_RATE_MAX_HZ (21800000) /* 21.8MHz max sample rate */
102102
#define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */
103103

104104
#define DEFAULT_BASEBAND_FILTER_BANDWIDTH (5000000) /* 5MHz default */

0 commit comments

Comments
 (0)