|
GNU Radio's LIMESDR Package
|
#include <source_impl.h>

Public Member Functions | |
| source_impl (std::string serial, int channel_mode, const std::string &filename) | |
| ~source_impl () | |
| bool | start (void) |
| bool | stop (void) |
| int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| gr::io_signature::sptr | args_to_io_signature (int channel_mode) |
| void | init_stream (int device_number, int channel) |
| void | release_stream (int device_number, lms_stream_t *stream) |
| double | set_center_freq (double freq, size_t chan=0) |
| void | set_antenna (int antenna, int channel=0) |
| void | set_nco (float nco_freq, int channel=0) |
| double | set_bandwidth (double analog_bandw, int channel=0) |
| void | set_digital_filter (double digital_bandw, int channel=0) |
| unsigned | set_gain (unsigned gain_dB, int channel=0) |
| double | set_sample_rate (double rate) |
| void | set_oversampling (int oversample) |
| void | set_buffer_size (uint32_t size) |
| void | calibrate (double bandw, int channel=0) |
| void | set_tcxo_dac (uint16_t dacVal=125) |
| virtual double | set_center_freq (double freq, size_t chan=0)=0 |
| virtual void | set_antenna (int antenna, int channel=0)=0 |
| virtual void | set_nco (float nco_freq, int channel)=0 |
| virtual double | set_bandwidth (double analog_bandw, int channel=0)=0 |
| virtual void | set_digital_filter (double digital_bandw, int channel)=0 |
| virtual unsigned | set_gain (unsigned gain_dB, int channel=0)=0 |
| virtual double | set_sample_rate (double rate)=0 |
| virtual void | set_oversampling (int oversample)=0 |
| virtual void | calibrate (double bandw, int channel=0)=0 |
| virtual void | set_buffer_size (uint32_t size)=0 |
| virtual void | set_tcxo_dac (uint16_t dacVal=125)=0 |
Additional Inherited Members | |
Public Types inherited from gr::limesdr::source | |
| typedef boost::shared_ptr< source > | sptr |
Static Public Member Functions inherited from gr::limesdr::source | |
| static sptr | make (std::string serial, int channel_mode, const std::string &filename) |
| Return a shared_ptr to a new instance of limesdr::source. More... | |
| gr::limesdr::source_impl::source_impl | ( | std::string | serial, |
| int | channel_mode, | ||
| const std::string & | filename | ||
| ) |
| gr::limesdr::source_impl::~source_impl | ( | ) |
|
inline |
|
virtual |
Perform device calibration.
| bandw | Set calibration bandwidth in Hz. |
| channel | Channel selection: A(LMS_CH_0),B(LMS_CH_1). |
Implements gr::limesdr::source.
| void gr::limesdr::source_impl::init_stream | ( | int | device_number, |
| int | channel | ||
| ) |
| void gr::limesdr::source_impl::release_stream | ( | int | device_number, |
| lms_stream_t * | stream | ||
| ) |
|
virtual |
Set which antenna is used
| antenna | Antenna to set: None(0), LNAH(1), LNAL(2), LNAW(3), AUTO(255) |
| channel | Channel selection: A(LMS_CH_0),B(LMS_CH_1). |
Implements gr::limesdr::source.
|
virtual |
Set analog filters.
| analog_bandw | Channel filter bandwidth in Hz. |
| channel | Channel selection: A(LMS_CH_0),B(LMS_CH_1). |
Implements gr::limesdr::source.
|
virtual |
|
virtual |
Set center frequency
| freq | Frequency to set in Hz |
| chan | Channel (not used) |
Implements gr::limesdr::source.
|
virtual |
Set digital filters (GFIR).
| digital_bandw | Channel filter bandwidth in Hz. |
| channel | Channel selection: A(LMS_CH_0),B(LMS_CH_1). |
Implements gr::limesdr::source.
|
virtual |
Set the combined gain value in dB
| gain_dB | Desired gain: [0,70] RX |
| channel | Channel selection: A(LMS_CH_0),B(LMS_CH_1). |
Implements gr::limesdr::source.
|
virtual |
Set NCO (numerically controlled oscillator). By selecting NCO frequency configure NCO. When NCO frequency is 0, NCO is off.
| nco_freq | NCO frequency in Hz. |
| channel | Channel index. |
Implements gr::limesdr::source.
|
virtual |
Set oversampling for both channels.
| oversample | Oversampling value (0 (default),1,2,4,8,16,32). |
Implements gr::limesdr::source.
|
virtual |
Set the same sample rate for both channels.
| rate | Sample rate in S/s. |
Implements gr::limesdr::source.
|
virtual |
Set TCXO DAC.
| dacVal | DAC value (0-65535) |
Implements gr::limesdr::source.
| bool gr::limesdr::source_impl::start | ( | void | ) |
| bool gr::limesdr::source_impl::stop | ( | void | ) |
| int gr::limesdr::source_impl::work | ( | int | noutput_items, |
| gr_vector_const_void_star & | input_items, | ||
| gr_vector_void_star & | output_items | ||
| ) |