494 Commits

Author SHA1 Message Date
TitanMKD
281c8701f8 Example cleanup/warning fix for better compatibility with GNU g++.
Adding hackrf_compute_baseband_filter_bw_round_down_lt() & hackrf_compute_baseband_filter_bw() in libhackrf.
Adding DLL export for _WIN32 (cdecl ..).
2013-04-01 18:35:32 +02:00
TitanMKD
d62f4ede8b Added hackrf_transfer option -w to received file with Wav/RIFF Header and automatic name compatible with SDR# 2013-03-29 20:17:37 +01:00
TitanMKD
eefb98c4c0 hackrf_transfer -b baseband_filter_bw_hz option and cleanup. 2013-03-24 19:12:37 +01:00
TitanMKD
a498208b12 Minor cleanup 2013-03-24 10:32:49 +01:00
TitanMKD
cb8343578c Cleanup (Windows/Linux) and fixed wrong arguments for printf ... 2013-03-24 10:18:44 +01:00
TitanMKD
1739d70372 Fix include not required for linux 2013-03-24 10:02:17 +01:00
TitanMKD
31356cc998 Merge branch 'master' of git://github.com/mossmann/hackrf
Conflicts:
	host/libhackrf/examples/hackrf_transfer.c
Fixed conflict with cleanup and fixed bug on 64bits value.
2013-03-24 09:56:56 +01:00
TitanMKD
cb2b82e9c4 Adding "sample_rate_hz" option, Ctrl C exit shall be fixed with also minor fix in hackrf lib (manage do_exit in thread).
Need more test on linux.
2013-03-23 18:14:49 +01:00
Michael Ossmann
500baf9c49 hackrf_transfer -n num_samples 2013-03-23 09:55:32 -06:00
TitanMKD
6620fe6ba9 Add host(hackrf_info)/fw(usb_performance) IAP read part id/serial no(to be confirmed). 2013-03-09 11:47:28 +01:00
TitanMKD
b1821ae8da read_spiflash fixed. (Probably need to flush SPIFI "internal cache" before to read to be sure to read real SPIFI data). 2013-03-08 02:10:51 +01:00
TitanMKD
9ad6758af1 Added hackrf_set_amp_enable() in hackrf_transfer. 2013-03-08 00:47:17 +01:00
Michael Ossmann
8a9664c0ad started amp_enable in libhackrf 2013-03-07 16:08:44 -07:00
TitanMKD
e3784c886e set_freq for firmware & host. tested basicly checking with debugger value mhz/hz from host to fw. 2013-03-07 23:24:00 +01:00
TitanMKD
e2c05fbfe2 Draft in progress (not tested at all) set_freq(). 2013-02-26 00:17:18 +01:00
Michael Ossmann
85dfc2a930 implemented transceiver mode OFF 2013-02-24 15:13:39 -07:00
Michael Ossmann
d2b35517b3 firmware version string 2013-02-23 10:22:58 -07:00
Michael Ossmann
c703b380cf SPI flash chip erase USB command, updated hackrf_spiflash.c to operate one page at a time 2013-02-22 22:20:19 -07:00
Michael Ossmann
771de3c24d more fixes for bytes transferred checks 2013-02-22 21:39:03 -07:00
Michael Ossmann
000bfdd53e fixed check for number of bytes transferred (Thanks, Jared!) 2013-02-22 17:44:00 -07:00
Michael Ossmann
eb7e80c8bf error message correction 2013-02-22 14:19:56 -07:00
Michael Ossmann
0efbc6618e board id request over USB (untested) 2013-02-21 14:25:30 -07:00
Michael Ossmann
ae16685996 improved error handling 2013-02-21 13:46:22 -07:00
Michael Ossmann
b7020a0103 hackrf_cpldjtag example program (untested) 2013-02-21 13:38:05 -07:00
Michael Ossmann
ea5422d788 hackrf_spiflash example program (untested) 2013-02-21 13:18:03 -07:00
Michael Ossmann
b873a8c85a started libhackrf modifications for spiflash and cpld_jtag over USB 2013-02-20 14:45:54 -07:00
TitanMKD
2612b8910f Added readme to build host tools for Cygwin/Mingw & Linux. 2013-02-10 18:53:50 +01:00
TitanMKD
013f1ea4f6 Modified firmware and host tools for portability Linux/Mingw, added fw rffc5071 & host hackrf_rffc5071 example. 2013-02-10 18:51:54 +01:00
Jared Boone
413b34eb86 Add #includes required for Linux. 2012-11-01 22:48:45 -07:00
Jared Boone
2d79f6d69f Added support for hackrf_max2837 utility to accept registers and values as "0x" (base-16) or "0b" (base-2). 2012-10-17 20:55:48 -07:00
Jared Boone
2a58528782 Made explicit a few libhackrf result tests -- comparing against HACKRF_SUCCESS instead of checking for non-zero. 2012-10-17 17:02:44 -07:00
Jared Boone
93c1175362 Add a quick, dirty, and marginally-useful text configuration option to hackrf_si5351c example. 2012-10-17 17:01:56 -07:00
Jared Boone
549c943979 Add USB control of LPF baseband filter.
Add max2837_set_lpf_bandwidth() function to choose available LPF filter bandwidth based on bandwidth in Hz.
Change configuration of MAX2837 to set LPF_EN and FT at max2837_setup(), not in max2837_rx() or max2837_tx() (which was overriding prior filter configuration).
2012-10-17 17:00:36 -07:00
Jared Boone
9c4a0e94b0 Factor out sample_rate_set() from cpu_clock_init().
Implement switching between several supported sampling rates for Jellybean and Jawbreaker.
Commit bits of the Si5351C USB request support that I apparently missed in a prior commit.
2012-10-17 16:57:26 -07:00
Jared Boone
6babcbe579 Add USB vendor requests to read/write Si5351C registers. 2012-10-17 11:57:44 -07:00
Jared Boone
34b4729cfe Whacked the usb_test project, which was transformed into libhackrf.
Moved the Python utilities (such as they are) into a host/python directory.
2012-10-16 20:46:41 -07:00
Jared Boone
91a9bf5ca3 Initial commit of libhackrf. 2012-10-16 20:33:41 -07:00
Jared Boone
38b6382c5a Add a guard for stream data file read/write, to ensure fd is valid. 2012-10-16 16:58:36 -07:00
Jared Boone
1391bfc61e Flip endian-ness on USB MAX2837 register read request. 2012-10-16 16:56:25 -07:00
Jared Boone
4cc865de54 Swapped constant names for HackRF VID and PID. Fortunately, I also had them backward in my call to libusb... Now the names are right! 2012-10-15 15:55:44 -07:00
Jared Boone
bd2fab0a12 Move USB SET_CONFIGURATION-time initialization of SGPIO and bulk endpoints into a separate function.
Initialize transceiver mode at SET_CONFIGURATION time.
Provide switching of transceiver mode via vendor request.
Provide read/write access to MAX2837 registers via vendor requests.
Python utility to dump MAX2837 registers.
Python utility to switch transceiver RX/TX mode.
2012-10-14 12:37:16 -07:00
Jared Boone
c0cb64f316 Add support for TX mode.
Add getopt control of RX or TX mode.
2012-10-11 13:07:25 -07:00
Jared Boone
0f81d361c7 Added code to support transmit from usb_test host program.
Reorganization of code to support making usb_test a useful utility...
2012-10-10 22:11:44 -07:00
Jared Boone
09b768631e Tragic, but simple and effective libusb test program for reading data from the HackRF bulk IN endpoint, and dumping it to a file. 2012-10-10 15:22:41 -07:00