Dimitri Stolnikov
7e55cb9224
introduce osmosdr namespace, remove _c suffix
...
- the namespace conversion adopts the common gnuradio coding guidelines
- suffix removal is a preparation to support 8/16 bit complex data types
10 years ago
Dimitri Stolnikov
3e6a24e5d9
convert to gnuradio 3.7 interface
10 years ago
Dimitri Stolnikov
a0c50c2df1
source/sink: rename antennas to express their function
10 years ago
Dimitri Stolnikov
901dca8135
remove APPEND from include_directories
10 years ago
Hoernchen
69e0003407
This reverts commit 3fb4f96bb7
.
...
This reverts commit 1772222cb3
.
reorder include dirs
10 years ago
Hoernchen
3fb4f96bb7
fix the other config.h includes as well
10 years ago
Dimitri Stolnikov
864712bad0
rtl: add named gain stage "IF"
10 years ago
Dimitri Stolnikov
10573261c2
rtl: notify work function on exit of async read
...
this is required to handle the interruption of a flowgraph in a clean
way by returning WORK_DONE in work() function.
10 years ago
Dimitri Stolnikov
aed2a94769
rtl: return new style label (with SN) in get_devices
10 years ago
Dimitri Stolnikov
9bfce2694f
rtl: return an appropriate tuning range when in direct sampling mode
10 years ago
Dimitri Stolnikov
6ae9c1b4dc
update tuning ranges
10 years ago
Dimitri Stolnikov
2193c32ae0
rtl, rtl_tcp: enable 250k rate as it has been verified for gmr and tetra
10 years ago
Dimitri Stolnikov
8041472ff7
rtl: introduce buflen argument
...
this might be helful for rates <1MSPS
value must be multiple of 512 bytes
10 years ago
Dimitri Stolnikov
cf807398c8
rtl: print a user friendly message if unable to parse the argument
11 years ago
Dimitri Stolnikov
933c0e21b1
rtl: open device by given serial, fall back to index value if not found
...
the serial number of a rtl device can be changed using the "rtl_eeprom -
11 years ago
Steve Markgraf
8c3786336f
rtl: add offset tuning as device parameter
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Dimitri Stolnikov
dee9d3e696
update available samplerates for rtl devices
...
250k didn't work for TETRA and GMR, 2M has.
11 years ago
Steve Markgraf
0f25daec61
rtl: add direct_samp as device parameter
...
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>
11 years ago
Dimitri Stolnikov
e3c60c4a70
rtl: print overflow marker to stderr
11 years ago
Dimitri Stolnikov
a43fef00a7
rtl: wait for worker thread to complete without a timeout
11 years ago
Dimitri Stolnikov
e3bea99310
rtl: check for NULL buffers
11 years ago
Dimitri Stolnikov
ff6615e08f
rtl: explicitly set agc mode (off by default)
11 years ago
Dimitri Stolnikov
86ec5d3b73
add if gain setter API for rtl-sdr
...
and OsmoSDR devices
Observations lead to an useful gain
range from 15 to 30dB, a value of
24dB is used by default.
11 years ago
Dimitri Stolnikov
f9acc7edf6
rtl: automatically increase if gain when required
11 years ago
Dimitri Stolnikov
604a9d79b0
use clip method provided by range class to pick gain values
11 years ago
Dimitri Stolnikov
1ea5a90b19
rtl: add sample rate 250k
11 years ago
Dimitri Stolnikov
8fc150c64d
fix frequency range definition for e4k based devices
11 years ago
Dimitri Stolnikov
c92822469c
use endianness provided by boost
11 years ago
Dimitri Stolnikov
05700e6092
rtl, osmosdr: reorder buffer allocation to prevent memory leak
...
the leak would occur if the requested device could not be opened
11 years ago
Dimitri Stolnikov
9ec656dc05
make it play nice with windows
...
thanks to Hoernchen <la@tfc-server.de>
11 years ago
Dimitri Stolnikov
a8625f0290
fix copy & paste errors
11 years ago
Dimitri Stolnikov
27dff71304
rtl: read out gain values via library api
11 years ago
Dimitri Stolnikov
7ef9ebc7bb
cleanup: make _samp_avail signed integer
11 years ago
Dimitri Stolnikov
6194958d71
rtl: clean up work function
11 years ago
Dimitri Stolnikov
4b6018b68c
remove OSMOSDR_API usage where appropriate
11 years ago
Dimitri Stolnikov
3ea0b38810
introduce device discovery api
...
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());
11 years ago
Dimitri Stolnikov
6bef750ac9
change gain mode argument to 'automatic' for clarity
11 years ago
Dimitri Stolnikov
0e3d1995a0
rtl: skip one buffer full of garbage at the beginning
11 years ago
Steve Markgraf
20d4ef7e4a
rtl_source_c: fix several off-by-one errors
...
Those summed up and caused sample loss.
Thanks to Hoernchen for helping me tracking those down.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
11 years ago
Dimitri Stolnikov
e38dc2f427
rtl_tcp: implement sample rate and gain control
11 years ago
Dimitri Stolnikov
3a066ff258
implement virtually arbitrary gain values
...
internally, this will pick a certain gain value out of the valid gains
using the "smallest error" strategy.
11 years ago
Dimitri Stolnikov
ba0b52868a
changed logic value for automatic gain mode
...
sorry boys & girls!
11 years ago
Dimitri Stolnikov
cf1c3ab117
pick first device if no device arguments were specified
11 years ago
Dimitri Stolnikov
0a4b9264a3
rtl_source_c: add buffers argument
11 years ago
Dimitri Stolnikov
3a47e3661c
add api for manual gain mode control
11 years ago
Dimitri Stolnikov
34baaf3f93
rtl: add xtal arguments for rtl and tuner chips
11 years ago
Dimitri Stolnikov
c1c0c2f212
first working multichannel source
11 years ago
Dimitri Stolnikov
31a4356ba5
fix copyright notice
...
Remove FSF line, since we do not have any agreements with them.
11 years ago
Dimitri Stolnikov
d5589e8e1d
rtl: reimplement buffering to make it more efficient
11 years ago
Dimitri Stolnikov
c954d4a410
remove unused doc template
11 years ago