Steve Markgraf
cf66e3aa8b
rtl_sdr: add -n parameter (only read n samples)
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
12 years ago
Steve Markgraf
d08c4770ab
add local copy of getopt() for win32 build
...
Now all commandline utilities have a platform-independent
syntax.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
b5beddca4f
fix gain setting and update usage information for CLI tools
13 years ago
Dimitri Stolnikov
505f40d9a0
introduce api function to read usb string descriptors
...
This API allows to read manufacturer and product names as well as the
serial number advertized by the device on the bus.
13 years ago
Christian Vogel
73f54be2ed
#include <math.h> was not needed.
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
e042c36cb5
rtl_sdr, rtl_tcp: cleaned up gain handling
13 years ago
Dimitri Stolnikov
9167a01248
consolidate program arguments
13 years ago
Dimitri Stolnikov
bad6fb080b
introduce api to configure crystal oscillator frequency
...
Usually both, the RTL and the tuner ICs use the same clock. Changing the
clock may make sense if you are applying an external clock to the tuner
or to compensate the frequency (and samplerate) error caused by the
original cheap crystal.
This commit covers all tuner drivers except of the Fitipower FC2580
13 years ago
Hoernchen
6b99aedc4d
fix off-by-one in argument handling
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Hoernchen
03f3504b41
tell windows that ctrl-c was handled
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Hoernchen
0bc846c34c
make win32 build actually work
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
f5f92ae3fa
exit gracefully on SIGPIPE
...
this will properly free all the used memory when working with a pipe and
closing the other end (think of GRC)
13 years ago
Steve Markgraf
3738a6730c
allow user to send data to stdout
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
a58def7f58
allow user to select sync mode
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
7e6d2f55ee
allow user to select block size
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
6eeceba397
use fprintf instead of printf
...
Patch provided by 'airwave', Thanks!
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
20313516cc
disable bulk read timeouts
...
ideally, we should calculate them depending on the configured sample
rate
13 years ago
Dimitri Stolnikov
1eb1c3e191
new api: rtlsdr_read_async function allows to specify buffer size
...
this commit deprecates rtlsdr_wait_async function
various small fixes are included in this commit
13 years ago
Steve Markgraf
3051aa4eef
use uint32_t instead of int for frequency
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
97db8149d9
workaround for some versions of libusb
...
Some versions of libusb don't seem to like if you call
libusb_init if you already have another instance opened.
(1.0.8 on Debian squeeze e.g.)
Thus, print name of device before opening it.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
cdd6c488a3
rtlsdr_callback: use correct pointer type for buffer
...
Silences a clang warning.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
f13cf0e56c
adjust project slogan
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
b38414c15a
add copyright notices
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
01775f0e85
use unique libusb context per rtl
...
device
this commit breaks rtlsdr_open()
interface
13 years ago
Dimitri Stolnikov
39482fee74
introduce asynchronous streaming interface
...
this is an experimental feature
13 years ago
Dimitri Stolnikov
9d15dc565a
handle init/exit functions calling
...
automatically inside the library
13 years ago
Dimitri Stolnikov
4ad93906a4
add skeleton routines for setting tuner gain
13 years ago
Dimitri Stolnikov
2f20f6fe9e
add argument check for device handle
...
also outputs all text to stderr
implement rate and frequency read functions
13 years ago
Dimitri Stolnikov
c09fbb7c57
fix reading from usb by resetting the
...
buffers as required
13 years ago
Steve Markgraf
ffea5061f0
cosmetic fixes/cleanup
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Dimitri Stolnikov
001bfb96ef
add autotools based build system
13 years ago
Dimitri Stolnikov
d8da91cbc2
rework towards a library interface
13 years ago
Steve Markgraf
409073b8ab
display real sample rate with rounding error
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
8dc13ea3ea
add commandline option for setting the sample rate
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago
Steve Markgraf
5a4fd14581
initial commit
...
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years ago