Hoernchen
3c7bc948f1
lib: if freq
2013-06-16 20:24:07 +02:00
Hoernchen
ecdaf40fb7
lib: un-break msvc
2013-06-11 12:55:10 +02:00
Michael Ossmann
fcae60b77a
fix type-punning warning with -fstrict-aliasing
2013-06-10 08:01:03 -06:00
Hoernchen
fe7558fcf3
lib/fw: rename the sample rate function
2013-06-09 00:09:46 +02:00
Sylvain Munaut
791476b422
libhackrf: Update the library with new fractional sample rate API
...
And send the new USB command
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-06-09 00:08:18 +02:00
Hoernchen
cf8f7644c9
fix indent, fix unused vars
2013-06-07 23:46:45 +02:00
Hoernchen
675c9493e3
lib: rename the define, gcc already defines BIG_ENDIAN
2013-06-07 20:36:50 +02:00
Hoernchen
d3d9038697
lib: actually handle the value returned by the fw when setting the gains
2013-06-07 18:17:55 +02:00
Hoernchen
222d518bb7
lib: make BE people happy
2013-06-07 15:30:49 +02:00
Hoernchen
cd7da974d5
lib: fractional sample rates
2013-06-07 14:29:14 +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
b7687c718f
lib: fix mingw
2013-05-29 21:08:31 +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
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
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
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
221337793c
Moved host/libhackrf/examples to host/hackrf-tools
2013-05-17 01:14:34 +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
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