Commit Graph

11 Commits

Author SHA1 Message Date
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
2013-05-30 16:14:22 +02:00
Dimitri Stolnikov 3e6a24e5d9 convert to gnuradio 3.7 interface 2013-05-29 22:34:40 +02:00
Dimitri Stolnikov a5bdb27240 hackrf: add TX support (wip)
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-28 12:36:31 +02:00
Dimitri Stolnikov fd56ae7640 adopt gnuradio component header structure
this makes it neccessary to include headers with the osmosdr/ prefix

thanks to Alexandru Csete for pointing this out.
2013-04-09 00:28:10 +02:00
Dimitri Stolnikov 36a92a92bf disable size_vector_t template
definition in swig interface

this avoids a compile-time warning.
2012-08-08 21:16:10 +02:00
Christian Gagneraud 6a1600eb93 Add swig hint for devices_t objects
Signed-off-by: Christian Gagneraud <chris@techworks.ie>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-08-06 18:54:48 +02:00
Dimitri Stolnikov 69a74abc78 add swig hints for range and device objects
Use case:

print "\nSupported rates:"
for rate in self.osmosdr_source_c_0.get_sample_rates():
	print rate.start()

print "\nSupported gains:"
for gain in self.osmosdr_source_c_0.get_gain_range():
	print gain.start()
2012-08-05 21:46:36 +02:00
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());
2012-05-20 12:55:52 +02:00
Dimitri Stolnikov 52508a80df don't install sink interface as it's unimplemented
the transmitter hardware is in the works at Maintech
2012-04-12 20:24:05 +02:00
Dimitri Stolnikov ea429b7b4a add swig includes to make it work on gr >=v3.5.3 2012-04-09 18:37:18 +02:00
Dimitri Stolnikov 0efd28de6b initial commit 2012-04-06 15:29:14 +02:00