|
GNU Radio's SDR Package
|
#include <source_impl.h>
Public Member Functions | |
| gr_sdr_source_impl (SoapySDR::Device *device, SoapySDR::Stream *stream, const std::vector< size_t > &channels, const gr::io_signature::sptr sig) | |
| ~gr_sdr_source_impl (void) | |
| void | set_frontend_map (const std::string &mapping) |
| std::string | get_frontend_map () |
| void | set_samp_rate (double rate) |
| double | get_samp_rate (void) |
| std::vector< double > | get_samp_rates (void) |
| void | set_center_freq (double freq, size_t chan) |
| double | get_center_freq (size_t chan) |
| std::vector< gr::sdr::range_t > | get_freq_range (size_t chan) |
| void | set_gain (double gain, size_t chan) |
| void | set_gain (double gain, const std::string &name, size_t chan) |
| double | get_gain (size_t chan) |
| double | get_gain (const std::string &name, size_t chan) |
| std::vector< std::string > | get_gain_names (size_t chan) |
| gr::sdr::range_t | get_gain_range (size_t chan) |
| gr::sdr::range_t | get_gain_range (const std::string &name, size_t chan) |
| void | set_antenna (const std::string &ant, size_t chan) |
| std::string | get_antenna (size_t chan) |
| std::vector< std::string > | get_antennas (size_t chan) |
| void | set_bandwidth (double bandwidth, size_t chan) |
| double | get_bandwidth (size_t chan) |
| std::vector< double > | get_bandwidth_range (size_t chan) |
| void | set_dc_offset (const std::complex< double > &offset, size_t chan) |
| void | set_iq_balance (const std::complex< double > &correction, size_t chan) |
| void | set_time_source (const std::string &source) |
| std::string | get_time_source () |
| std::vector< std::string > | get_time_sources () |
| void | set_clock_source (const std::string &source) |
| std::string | get_clock_source () |
| std::vector< std::string > | get_clock_sources () |
| double | get_clock_rate () |
| void | set_clock_rate (double rate) |
| int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| bool | start (void) |
| bool | stop (void) |
Additional Inherited Members | |
Public Types inherited from gr::sdr::source | |
| typedef boost::shared_ptr< source > | sptr |
Static Public Member Functions inherited from gr::sdr::source | |
| static sptr | make (const gr::sdr::kwargs_t &addr=gr::sdr::kwargs_t(), const std::string &format="CF32", const std::vector< size_t > &channels=std::vector< size_t >(), const gr::sdr::kwargs_t &args=gr::sdr::kwargs_t()) |
| Make a new SDR device source block (usually a radio receiver). More... | |
| gr_sdr_source_impl::gr_sdr_source_impl | ( | SoapySDR::Device * | device, |
| SoapySDR::Stream * | stream, | ||
| const std::vector< size_t > & | channels, | ||
| const gr::io_signature::sptr | sig | ||
| ) |
| gr_sdr_source_impl::~gr_sdr_source_impl | ( | void | ) |
|
virtual |
Get the antenna in use.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get a list of possible antennas.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the bandpass filter setting on the RF frontend.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the bandpass filter range of the RF frontend.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the center frequency.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
|
virtual |
Get the currently set clock source.
Implements gr::sdr::source.
|
virtual |
Get a list of possible clock sources.
Implements gr::sdr::source.
|
virtual |
Get the tunable frequency range.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
|
virtual |
Get the actual dboard gain setting.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the actual dboard gain setting of named stage.
| name | the name of the gain stage |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the actual dboard gain setting of named stage.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the settable gain range.
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the settable gain range.
| name | the name of the gain stage |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Get the sample rate for the SDR device. This is the actual sample rate and may differ from the rate set.
Implements gr::sdr::source.
|
virtual |
Get the possible sample rates for the SDR device.
Implements gr::sdr::source.
|
virtual |
Get the currently set time source.
Implements gr::sdr::source.
|
virtual |
Get a list of possible time sources.
Implements gr::sdr::source.
|
virtual |
Set the antenna to use.
| ant | the antenna string |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Set the bandpass filter on the RF frontend.
| bandwidth | the filter bandwidth in Hz |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Tune the SDR device to the desired center frequency. This is a wrapper around set center freq so that in this case, the user can pass a single frequency in the call through swig.
| freq | the desired frequency in Hz |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
|
virtual |
Set the clock source for the SDR device. This sets the source for a 10 Mhz reference clock. Typical options for source: internal, external, MIMO.
| source | a string representing the clock source |
Implements gr::sdr::source.
|
virtual |
Set a constant DC offset value. The value is complex to control both I and Q. Only set this when automatic correction is disabled.
| offset | the dc offset (1.0 is full-scale) |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Set the frontend mapping.
| mapping | the subdev spec markup string |
Implements gr::sdr::source.
|
virtual |
Set the gain for the dboard.
| gain | the gain in dB |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Set the named gain on the dboard.
| gain | the gain in dB |
| name | the name of the gain stage |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Set the RX frontend IQ imbalance correction. Use this to adjust the magnitude and phase of I and Q.
| correction | the complex correction value |
| chan | the channel index 0 to N-1 |
Implements gr::sdr::source.
|
virtual |
Set the sample rate for the SDR device.
| rate | a new rate in Sps |
Implements gr::sdr::source.
|
virtual |
Set the time source for the SDR device. This sets the method of time synchronization, typically a pulse per second or an encoded time. Typical options for source: external, MIMO.
| source | a string representing the time source |
Implements gr::sdr::source.
| bool gr_sdr_source_impl::start | ( | void | ) |
| bool gr_sdr_source_impl::stop | ( | void | ) |
| int gr_sdr_source_impl::work | ( | int | noutput_items, |
| gr_vector_const_void_star & | input_items, | ||
| gr_vector_void_star & | output_items | ||
| ) |