aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rtl/rtl_source_c.cc
AgeCommit message (Collapse)AuthorFilesLines
2023-10-29rtlsdr: detect RTL-SDR Blog V4, set lower tuning limit to 0MhzCarl Laufer1-0/+6
Signed-off-by: Eric Wild <ewild@sysmocom.de>
2020-08-03Remove unused imports of endian.hpp.Wim Lewis1-1/+0
Signed-off-by: Eric Wild <ewild@sysmocom.de>
2020-08-02A lot of Boost functionality is available in C++11. Since GNU Radio is ↵Clayton Smith1-3/+3
moving away from Boost, it probably makes sense to do so in gr-osmosdr as well. This change removes all usage of boost::mutex, boost::mutex::scoped_lock, boost::unique_lock, and boost::condition_variable. It also removes usage of boost::shared_ptr and boost::weak_ptr outside of block definitions (which must continue to use Boost until GNU Radio 3.9). Signed-off-by: Eric Wild <ewild@sysmocom.de>
2017-06-11rtl,rtl_tcp: add bias=0|1 parameter to switch off|on bias voltage onDimitri Stolnikov1-0/+8
gpio0
2017-06-11RTL-SDR: convert _lut to float[] to reduce size by a factor of 256Krzysztof Halasa1-13/+6
The _lut is being indexed by I + Q (16 bits = 65536 entries), however both samples can be processed independently, resulting in 8-bit LUT. Saves a bit of RAM and CPU cache.
2017-02-27rtl, rtl_tcp: Use std::abs.Alexandru Csete1-1/+1
Fixes compile error on Mac OS X.
2016-01-10do not check for NULL before calling freeJiří Pinkava1-2/+1
2014-08-14rtl: fix large output buffers handlingJiří Pinkava1-23/+17
When size of output buffer was larger than size of input buffer, uderflow occured because no check on number of avalilable data was done. This also improves buffer filling for large output buffers, fill output until anny input is available.
2014-03-10rtl: implement methods allowing runtime to control sampling processDimitri Stolnikov1-6/+26
2014-02-11osmosdr/rtl/miri/hackrf: use 15 buffers by defaultDimitri Stolnikov1-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-12-05rtl/rtl_tcp: add 2.56e6 as 'good' sample rateSteve Markgraf1-0/+1
Several tests have shown that this is the highest sample rate where no samples are being dropped on rtl devices. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04rtl: add R828D tunerSteve Markgraf1-0/+2
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-09-28rtl: don't try to parse empty device index valuesDimitri Stolnikov1-6/+10
2013-07-16rtl: remove residue DC component introduced by RTL chipDimitri Stolnikov1-4/+4
received from Juha Vierinen: A student here noticed that there is dc bias even with the rafael tuner. We looked into this issue and found that using 127.4f instead of 127.5f removes this bias. I assume this is associated with a bug in the digital downconversion of the RTL chip. This change fixes the problem.
2013-05-30introduce osmosdr namespace, remove _c suffixDimitri Stolnikov1-1/+1
- 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 Stolnikov1-7/+7
2013-04-30source/sink: rename antennas to express their functionDimitri Stolnikov1-1/+1
2013-03-12This reverts commit 3fb4f96bb7f17753849fdd94ccbd7f6c70e5f1b4.Hoernchen1-1/+1
This reverts commit 1772222cb3c82ad2cab608911a159776bc2c2979. reorder include dirs
2013-03-12fix the other config.h includes as wellHoernchen1-1/+1
2013-02-16rtl: add named gain stage "IF"Dimitri Stolnikov1-3/+36
2013-01-16rtl: notify work function on exit of async readDimitri Stolnikov1-0/+2
this is required to handle the interruption of a flowgraph in a clean way by returning WORK_DONE in work() function.
2013-01-10rtl: return new style label (with SN) in get_devicesDimitri Stolnikov1-1/+25
2013-01-02rtl: return an appropriate tuning range when in direct sampling modeDimitri Stolnikov1-0/+9
2013-01-01update tuning rangesDimitri Stolnikov1-4/+7
2012-11-28rtl, rtl_tcp: enable 250k rate as it has been verified for gmr and tetraDimitri Stolnikov1-1/+1
2012-11-28rtl: introduce buflen argumentDimitri Stolnikov1-13/+22
this might be helful for rates <1MSPS value must be multiple of 512 bytes
2012-11-04rtl: print a user friendly message if unable to parse the argumentDimitri Stolnikov1-3/+9
2012-11-04rtl: open device by given serial, fall back to index value if not foundDimitri Stolnikov1-9/+31
the serial number of a rtl device can be changed using the "rtl_eeprom -
2012-10-10rtl: add offset tuning as device parameterSteve Markgraf1-0/+10
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-30update available samplerates for rtl devicesDimitri Stolnikov1-5/+6
250k didn't work for TETRA and GMR, 2M has.
2012-09-16rtl: add direct_samp as device parameterSteve Markgraf1-1/+10
This can be used to enable the direct sampling mode of an rtlsdr stick, e.g.: For input 1 (In-phase ADC): rtl=0,direct_samp=1 For input 2 (Quadrature ADC): rtl=0,direct_samp=2 Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-08-08rtl: print overflow marker to stderrDimitri Stolnikov1-1/+1
2012-08-08rtl: wait for worker thread to complete without a timeoutDimitri Stolnikov1-1/+1
2012-08-08rtl: check for NULL buffersDimitri Stolnikov1-8/+14
2012-08-01rtl: explicitly set agc mode (off by default)Dimitri Stolnikov1-1/+7
2012-07-18add if gain setter API for rtl-sdrDimitri Stolnikov1-27/+34
and OsmoSDR devices Observations lead to an useful gain range from 15 to 30dB, a value of 24dB is used by default.
2012-07-08rtl: automatically increase if gain when requiredDimitri Stolnikov1-3/+56
2012-07-01use clip method provided by range class to pick gain valuesDimitri Stolnikov1-20/+1
2012-07-01rtl: add sample rate 250kDimitri Stolnikov1-0/+1
2012-07-01fix frequency range definition for e4k based devicesDimitri Stolnikov1-4/+4
2012-06-29use endianness provided by boostDimitri Stolnikov1-2/+3
2012-06-02rtl, osmosdr: reorder buffer allocation to prevent memory leakDimitri Stolnikov1-22/+13
the leak would occur if the requested device could not be opened
2012-06-02make it play nice with windowsDimitri Stolnikov1-1/+2
thanks to Hoernchen <la@tfc-server.de>
2012-06-02fix copy & paste errorsDimitri Stolnikov1-3/+3
2012-06-02rtl: read out gain values via library apiDimitri Stolnikov1-27/+27
2012-05-27cleanup: make _samp_avail signed integerDimitri Stolnikov1-2/+2
2012-05-27rtl: clean up work functionDimitri Stolnikov1-22/+19
2012-05-20introduce device discovery apiDimitri Stolnikov1-7/+11
This API allows to acquire a list of devices connected to the host and creates an argument string ready to be passed to a source object for cunstruction. Each device_t entry contains a "label" entry, which holds the generic device name which may be shown to the user for device selection. For certain radio hardware extended entries ("name", "serial", "type") may be available to make bijective device addressing possible. The argument string for target types "rtl_tcp" and "file" might be constructed using the osmosdr::device_t class facilities. Example: #include <osmosdr_device.h> #include <osmosdr_source_c.h> osmosdr::devices_t devs = osmosdr::device::find(); BOOST_FOREACH(osmosdr::device_t &dev, devs) // try to create each dev osmosdr_source_c_sptr src = osmosdr_make_source_c(dev.to_string());
2012-05-17change gain mode argument to 'automatic' for clarityDimitri Stolnikov1-3/+3
2012-05-13rtl: skip one buffer full of garbage at the beginningDimitri Stolnikov1-0/+8