179 Commits

Author SHA1 Message Date
Michael Ossmann
f60cfd677f Merge pull request #68 from smunaut/pending
Misc patches I needed to make it work properly
2013-06-06 18:15:40 -07:00
Alexander Neumann
d60f382c07 Correct help text for hackrf_transfer
Option for 5 MHz sample-rate was removed, show correct minimal
sample-rate of 8 MHz
2013-06-06 23:27:46 +02:00
Sylvain Munaut
fce132d266 libhackrf: Fix early exit of transfer thread in case of syscal interruption
libusb can return LIBUSB_ERROR_INTERRUPTED and it's not really an error,
just a sign some syscall got interrupted by something. Don't abort on
that.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-06 22:55:06 +02:00
Sylvain Munaut
02509f2f44 libhackrf: Add a pkgconfig .pc file to allow auto-discovery of prefix
Shamelessly copied from librtlsdr.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-06 22:53:57 +02:00
Hoernchen
4c39d15a84 tools: add gain control 2013-05-30 13:01:31 +02:00
Hoernchen
b7687c718f lib: fix mingw 2013-05-29 21:08:31 +02:00
Hoernchen
762f6054e9 tools: fix hackrf_si5351c to print ms6 and 7
6 and 7 are integer only. Also fixes printing of the output divider
value.
2013-05-29 19:41:37 +02:00
Michael Ossmann
14257a0032 fix #define false 1 2013-05-28 22:50:54 -06:00
Hoernchen
233c56c79d libhackrf/firmware: merge txvga gain into one gain range of 0-47 2013-05-29 00:53:41 +02:00
Hoernchen
551b7dc011 libhackrf: findlibhackrf should try to find libhackrf in /usr/include, too 2013-05-28 23:29:46 +02:00
Hoernchen
c2f09c082d lib/msvc: do not swallow the static lib 2013-05-28 22:58:07 +02:00
Hoernchen
e16cafd9a1 host: modify the cmake build system, there is a new top dir cmake file that builds everything 2013-05-28 22:48:40 +02:00
Hoernchen
270043990d tools: msvc signal handling 2013-05-28 19:04:09 +02:00
Hoernchen
a9c301cfd4 windows, pt3 2013-05-27 14:02:15 +02:00
Hoernchen
d18159cf62 libhackrf: gain control 2013-05-27 14:01:21 +02:00
Hoernchen
2200e4c109 windows, pt2 2013-05-27 14:01:20 +02:00
Hoernchen
dea06b2732 windows 2013-05-27 14:01:20 +02:00
TitanMKD
d127d1a664 hackrf-tools fixed install by default to (path)/bin 2013-05-23 21:11:08 +02:00
TitanMKD
b4af69ac38 hackrf-tools fixed make install and added make uninstall feature.
libhackrf added make uninstall feature.
Thanks to horizon for the hint for cmake uninstall script.
2013-05-23 20:53:23 +02:00
TitanMKD
a38c20d440 Fixed hackrf-tools CMake scripts to build them out of tree. 2013-05-18 10:25:01 +02:00
TitanMKD
cc74842b78 Fix FindLIBHACKRF.cmake 2013-05-18 00:03:00 +02:00
TitanMKD
18932692ab Updated hackrf_transfer(host) and ubs_performance(firmware) extended frequency range from 5MHz to 6800MHz. 2013-05-17 23:41:32 +02:00
TitanMKD
0fc46cb91a Added cmake script to find libhackrf. 2013-05-17 23:39:19 +02:00
TitanMKD
221337793c Moved host/libhackrf/examples to host/hackrf-tools 2013-05-17 01:14:34 +02:00
TitanMKD
345794fdb9 Moved host/libhackrf/examples to host/hackrf-tools 2013-05-17 01:13:24 +02:00
TitanMKD
bf964e769d New license for libhackrf based on http://opensource.org/licenses/BSD-3-Clause 2013-05-17 00:00:46 +02:00
Jared Boone
d0e609429d Merge branch 'master' of https://github.com/mossmann/hackrf 2013-05-11 16:59:00 -07:00
Jared Boone
8dec5cb31a Tweak C/CXX_FLAGS to separate language standard used for C and C++ files. 2013-05-10 18:12:09 -07:00
TitanMKD
418680aed2 Fixed libhackrf, hackrf_cpldjtag (host) & usb_performance (firmware) to update CPLD through USB.
Use latest CPLD bitstream with following command line:
hackrf_cpldjtag.exe -x hackrf\hardware\jellybean\sgpio_if\default.xsvf
2013-05-09 00:29:42 +02:00
TitanMKD
5225477164 * Modified API hackrf_is_streaming() now it returns an int HACKRF_TRUE when streaming is running.
* Added new hackrf_error especially for streaming to return more details.
* Adding management of usb transfer cancelled for hackrf_stop_rx()/hackrf_stop_tx().
* Added robustness on hackrf_close() to correctly close libusb related stuff even if USB device is removed or other problems.
* Fixed threading problems (start, stop() then start() ...).
* Cleanup the whole code.
2013-05-08 15:03:30 +02:00
TitanMKD
9749466512 Cleanup wave_file_hdr declaration for string WAVE ... thanks Hoernchen for the info. 2013-04-11 19:57:19 +02:00
TitanMKD
ead843ec2a hackrf_spiflash modified -l argument is not used anymore with -w argument, file len is automatically read. 2013-04-07 18:57:30 +02:00
TitanMKD
294e958472 sgpio_if (top.vhd) CPLD VHDL fix for IQ/aliasing problems for ADC. (cpldjtagprog => sgpio_if_xsvf.h updated to rebuild).
usb_performance.c SGPIO IQ fix for ADC (QI->IQ) for new CPLD (use usb_performance_rom_to_ram version else there is some packet lost even at 10Mhz sampling rate => make -f Makefile_rom_to_ram.)
2013-04-04 19:43:30 +02:00
TitanMKD
3eb757c7d8 Merge branch 'master' of git://github.com/mossmann/hackrf 2013-04-04 19:18:55 +02:00
Michael Ossmann
c6154a2dac exit when failing to transfer 2013-04-01 16:23:08 -06:00
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