aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hackrf
AgeCommit message (Collapse)AuthorFilesLines
2016-01-10do not check for NULL before calling freeJiří Pinkava2-10/+5
2015-12-07hackrf: change hackrf i/o from default char to explicit int8_tDimitri Stolnikov3-13/+13
original patch provided via github by Dirk Grunwald
2015-12-07hackrf: since devicecount is signed, make comparisons signed as wellDimitri Stolnikov2-5/+5
2015-06-06cmake: move check for hackrf_device_list to hackrf subdirectoryDimitri Stolnikov1-0/+9
2015-06-01hackrf: use #ifdef just like in hackrf_sink_cDimitri Stolnikov1-1/+1
2015-06-01hackrf: Add cmake magic to figure out if multiple devices support is ↵Heikki Hannikainen2-2/+6
available in libhackrf, so that backwards compatibility with old libhackrf is maintained. Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_source: adjust error messageHeikki Hannikainen1-1/+1
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_source: Support selecting device with index number (hackrf=0)Heikki Hannikainen1-7/+28
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_sink_c: device enumerationHeikki Hannikainen1-15/+28
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf device enumeration: Use only 6 characters of serial (should be unique ↵Heikki Hannikainen1-5/+6
per user?) and append it in device name Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_source: Truncate serial numbers to 16 chars when enumerating, parse ↵Heikki Hannikainen1-5/+8
USB board IDs correctly Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_source: attempt device enumeration with hackrf_device_listHeikki Hannikainen1-15/+24
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf_sink: support hackrf_open_by_serialHeikki Hannikainen1-1/+8
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01style update to match surroundingsHeikki Hannikainen1-2/+2
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01Require hackrf argument to have a non-zero-length value to trigger serial ↵Heikki Hannikainen1-1/+1
number search Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-06-01hackrf: support for hackrf_open_by_serial in hackrf sourceHeikki Hannikainen1-1/+8
Signed-off-by: Heikki Hannikainen <hessu@hes.iki.fi>
2015-05-27hackrf: introduce bias=0|1 and bias_tx=0|1 parametersDimitri Stolnikov2-0/+36
... to support antenna/phantom power via a new device argument "bias" (to match Airspy's existing bias power syntax). 0=disable and 1=enable. I also added a device argument to control bias power at transmit time. I named this option differently - "bias_tx" - to avoid accidentally enabling bias power in transmit mode when an LNA may be attached in an input amplifier configuration. Original patch provided by Brad Hein
2014-10-21hackrf: update copyright for SSE/AVX routinesDimitri Stolnikov1-0/+1
2014-10-21hackrf: disable AMP gain stage by default to protect it from damageDimitri Stolnikov2-2/+2
patch proivided by Paul Connolly
2014-08-25hackrf: extend frequency range down to BW/2Dimitri Stolnikov2-2/+2
2014-08-14hackrf: extend frequency range down to 10MHzDimitri Stolnikov2-2/+2
2014-02-20hackrf: signed samples, following commit fd77cfe8a6Hoernchen3-20/+18
2014-02-11osmosdr/rtl/miri/hackrf: use 15 buffers by defaultDimitri Stolnikov2-2/+2
folowing rtl-sdr commit 89f73b183f2dac9c0dd75beca4cf2f77f20c4a36 So far we had 32 * 256KB which was a bit overkill, 15 are more than enough. 15 was chosen instead of 16 because at least on Linux there seems to be a system-wide limit of 63 transfers (when they are 256KB large), so 4 dongles can be used on a single machine without lowering the default transfer number.
2013-10-25hackrf: implement device discoveryDimitri Stolnikov2-6/+93
Unfortunately libhackrf still doesn't offer a way to enumerate devices *or* to open a specific device by index or it's serial number. Thus we have implemented a rather hack-ish way to detect the presence of a device by trying to open it and closing right after that.
2013-09-28hackrf: enable AMP gain stage by defaultDimitri Stolnikov2-2/+2
2013-09-28hackrf: don't set automatic bandwidth on samplerate changeDimitri Stolnikov2-8/+10
automatic bandwidth selection may be triggered by calling set_bandwidth(0) after changing the sample rate
2013-06-09hackrf: select narrower filters in auto bw mode to prevent aliasingDimitri Stolnikov2-4/+4
2013-06-09hackrf: use new sample rate function introduced in libhackrf b892bc34adDimitri Stolnikov2-10/+8
2013-06-07hackrf: add fractional sample rate support introduced in libhackrfDimitri Stolnikov2-4/+14
d9c46cbdac
2013-06-07hackrf: add human readable error prints for all libhackrf funcsDimitri Stolnikov2-46/+74
2013-06-05hackrf: set the default sample rate to 10MDimitri Stolnikov2-2/+4
this prevents a regression with early firmware who did not have 8M rate but 5M instead. they both had 10M, so we use this as default.
2013-06-03hackrf: change out-of-spec rate 5e6 to 8e6 defaultDimitri Stolnikov2-4/+4
2013-06-02hackrf: disable start/stop as it has caused lock-upsDimitri Stolnikov2-8/+26
2013-06-02hackrf: migrate to gain API introduced in libhackrf b5f275abc5Dimitri Stolnikov2-149/+18
2013-05-30introduce osmosdr namespace, remove _c suffixDimitri Stolnikov4-6/+6
- the namespace conversion adopts the common gnuradio coding guidelines - suffix removal is a preparation to support 8/16 bit complex data types
2013-05-29convert to gnuradio 3.7 interfaceDimitri Stolnikov4-23/+23
2013-05-26hackrf: enable buffers argument for the source blockDimitri Stolnikov1-3/+3
2013-05-08hackrf: update to libhackrf 6f0ae9bc99 APIDimitri Stolnikov3-31/+10
2013-05-08hackrf: silence warningHoernchen1-1/+1
2013-05-08hackrf: default to sse2 on x86/64Hoernchen1-3/+1
2013-05-06offer avx and sse to speed up float->uint8 for txHoernchen1-29/+106
2013-05-02hackrf: replace non-portable usleep with boost sleepDimitri Stolnikov2-2/+6
2013-04-30source/sink: rename antennas to express their functionDimitri Stolnikov2-2/+2
2013-04-30source/sink: return freq_range_t in get_bandwidth_range()Dimitri Stolnikov4-8/+8
it was meta_range_t (which is binary compatible) before.
2013-04-28hackrf: add TX support (wip)Dimitri Stolnikov3-12/+753
features: - gain control for AMP & VGA - frequency error correction - automatic baseband filter - up to 20M sampling rate limitations: - no DC offset correction implemented (yet) - high sampling rates may not work on slow machines the following TX named gain stages are available: RF: MGA-81563, switchable 0 or 14dB IF: MAX2837 VGA, 0 to 47dB in 1dB steps
2013-04-28hackrf: updated source commentsDimitri Stolnikov1-1/+4
2013-04-26hackf: implement start & stop methodsDimitri Stolnikov2-7/+35
This allows a block to enable an associated driver to begin transfering data just before we start to execute the scheduler. The end result is that this reduces latency in the pipeline when dealing with audio devices, usrps, etc.
2013-04-26hackrf: don't skip first samples when streamingDimitri Stolnikov2-10/+1
2013-04-26hackrf: make failures more verboseDimitri Stolnikov2-5/+5
2013-04-15hackrf: implement BB lowpass filter controlDimitri Stolnikov2-4/+6
To use the default (automatic) bandwidth filter selection, this should be set to 0.