Updated hackrf_transfer(host) and ubs_performance(firmware) extended frequency range from 5MHz to 6800MHz.

This commit is contained in:
TitanMKD
2013-05-17 23:41:32 +02:00
parent 0fc46cb91a
commit 18932692ab
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
/* /*
* Copyright 2012 Jared Boone * Copyright 2012 Jared Boone
* Copyright 2013 Benjamin Vernoux
* *
* This file is part of HackRF. * This file is part of HackRF.
* *
@ -79,20 +80,20 @@ void update_switches(void)
#define FREQ_ONE_MHZ (1000*1000) #define FREQ_ONE_MHZ (1000*1000)
#define MIN_LP_FREQ_MHZ (30) #define MIN_LP_FREQ_MHZ (5)
#define MAX_LP_FREQ_MHZ (2300) #define MAX_LP_FREQ_MHZ (2300)
#define MIN_BYPASS_FREQ_MHZ (2300) #define MIN_BYPASS_FREQ_MHZ (2300)
#define MAX_BYPASS_FREQ_MHZ (2700) #define MAX_BYPASS_FREQ_MHZ (2700)
#define MIN_HP_FREQ_MHZ (2700) #define MIN_HP_FREQ_MHZ (2700)
#define MAX_HP_FREQ_MHZ (6000) #define MAX_HP_FREQ_MHZ (6800)
#define MAX2837_FREQ_NOMINAL_HZ (2600000000) #define MAX2837_FREQ_NOMINAL_HZ (2600000000)
#define MAX2837_FREQ_NOMINAL_MHZ (MAX2837_FREQ_NOMINAL_HZ / FREQ_ONE_MHZ) #define MAX2837_FREQ_NOMINAL_MHZ (MAX2837_FREQ_NOMINAL_HZ / FREQ_ONE_MHZ)
/* /*
* Set freq/tuning between 30MHz to 6000 MHz (less than 16bits really used) * Set freq/tuning between 5MHz to 6800 MHz (less than 16bits really used)
* hz between 0 to 999999 Hz (not checked) * hz between 0 to 999999 Hz (not checked)
* return false on error or true if success. * return false on error or true if success.
*/ */

View File

@ -48,8 +48,8 @@
#define FREQ_ONE_MHZ (1000000ull) #define FREQ_ONE_MHZ (1000000ull)
#define DEFAULT_FREQ_HZ (900000000ull) /* 900MHz */ #define DEFAULT_FREQ_HZ (900000000ull) /* 900MHz */
#define FREQ_MIN_HZ (30000000ull) /* 30MHz */ #define FREQ_MIN_HZ (5000000ull) /* 5MHz */
#define FREQ_MAX_HZ (6000000000ull) /* 6000MHz */ #define FREQ_MAX_HZ (6800000000ull) /* 6800MHz */
#define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */ #define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */