gr::limesdr::source_impl
gr::limesdr::source
source_impl.h
gr::limesdr::source_impl::constant_data
lms_stream_t lms_stream_t gr::limesdr::source_impl::streamId[2] [2] streamId gr::limesdr::source_impl::streamId
bool bool gr::limesdr::source_impl::stream_analyzer stream_analyzer gr::limesdr::source_impl::stream_analyzer = false
int int gr::limesdr::source_impl::source_block source_block gr::limesdr::source_impl::source_block = 1
bool bool gr::limesdr::source_impl::add_tag add_tag gr::limesdr::source_impl::add_tag = false
uint32_t uint32_t gr::limesdr::source_impl::pktLoss pktLoss gr::limesdr::source_impl::pktLoss = 0
struct gr::limesdr::source_impl::constant_data struct gr::limesdr::source_impl::constant_data gr::limesdr::source_impl::stored stored gr::limesdr::source_impl::stored
std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::time_point gr::limesdr::source_impl::t1 t1 gr::limesdr::source_impl::t1
std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::time_point gr::limesdr::source_impl::t2 t2 gr::limesdr::source_impl::t2
void void gr::limesdr::source_impl::print_stream_stats (lms_stream_status_t status) print_stream_stats gr::limesdr::source_impl::print_stream_stats lms_stream_status_t status
void void gr::limesdr::source_impl::add_time_tag (int channel, lms_stream_meta_t meta) add_time_tag gr::limesdr::source_impl::add_time_tag int channel lms_stream_meta_t meta
gr::limesdr::source_impl::source_impl
(std::string serial, int channel_mode, const std::string &filename)
source_impl
gr::limesdr::source_impl::source_impl
std::string serial
int channel_mode
const std::string & filename
gr::limesdr::source_impl::~source_impl
()
~source_impl
gr::limesdr::source_impl::~source_impl
bool bool gr::limesdr::source_impl::start (void) start gr::limesdr::source_impl::start void
bool bool gr::limesdr::source_impl::stop (void) stop gr::limesdr::source_impl::stop void
int int gr::limesdr::source_impl::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work gr::limesdr::source_impl::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items
gr::io_signature::sptr gr::io_signature::sptr gr::limesdr::source_impl::args_to_io_signature (int channel_mode) args_to_io_signature gr::limesdr::source_impl::args_to_io_signature int channel_mode
void void gr::limesdr::source_impl::init_stream (int device_number, int channel) init_stream gr::limesdr::source_impl::init_stream int device_number int channel
void void gr::limesdr::source_impl::release_stream (int device_number, lms_stream_t *stream) release_stream gr::limesdr::source_impl::release_stream int device_number lms_stream_t * stream
double double gr::limesdr::source_impl::set_center_freq (double freq, size_t chan=0) set_center_freq gr::limesdr::source_impl::set_center_freq set_center_freq double freq size_t chan 0

Set center frequency

freq

Frequency to set in Hz

chan

Channel (not used)

actual center frequency in Hz

void void gr::limesdr::source_impl::set_antenna (int antenna, int channel=0) set_antenna gr::limesdr::source_impl::set_antenna set_antenna int antenna int channel 0

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).

void void gr::limesdr::source_impl::set_nco (float nco_freq, int channel=0) set_nco gr::limesdr::source_impl::set_nco set_nco float nco_freq int channel 0

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.

double double gr::limesdr::source_impl::set_bandwidth (double analog_bandw, int channel=0) set_bandwidth gr::limesdr::source_impl::set_bandwidth set_bandwidth double analog_bandw int channel 0

Set analog filters.

analog_bandw

Channel filter bandwidth in Hz.

channel

Channel selection: A(LMS_CH_0),B(LMS_CH_1).

actual filter bandwidth in Hz

void void gr::limesdr::source_impl::set_digital_filter (double digital_bandw, int channel=0) set_digital_filter gr::limesdr::source_impl::set_digital_filter set_digital_filter double digital_bandw int channel 0

Set digital filters (GFIR).

digital_bandw

Channel filter bandwidth in Hz.

channel

Channel selection: A(LMS_CH_0),B(LMS_CH_1).

unsigned unsigned gr::limesdr::source_impl::set_gain (unsigned gain_dB, int channel=0) set_gain gr::limesdr::source_impl::set_gain set_gain unsigned gain_dB int channel 0

Set the combined gain value in dB

actual gain depends on LO frequency and analog LPF configuration and resulting output signal level may be different when those values are changed

gain_dB

Desired gain: [0,70] RX

channel

Channel selection: A(LMS_CH_0),B(LMS_CH_1).

actual gain in dB

double double gr::limesdr::source_impl::set_sample_rate (double rate) set_sample_rate gr::limesdr::source_impl::set_sample_rate set_sample_rate double rate

Set the same sample rate for both channels.

rate

Sample rate in S/s.

actual sample rate in S/s

void void gr::limesdr::source_impl::set_oversampling (int oversample) set_oversampling gr::limesdr::source_impl::set_oversampling set_oversampling int oversample

Set oversampling for both channels.

oversample

Oversampling value (0 (default),1,2,4,8,16,32).

void void gr::limesdr::source_impl::set_buffer_size (uint32_t size) set_buffer_size gr::limesdr::source_impl::set_buffer_size set_buffer_size uint32_t size

Set stream buffer size

size

FIFO buffer size in samples

void void gr::limesdr::source_impl::calibrate (double bandw, int channel=0) calibrate gr::limesdr::source_impl::calibrate calibrate double bandw int channel 0

Perform device calibration.

bandw

Set calibration bandwidth in Hz.

channel

Channel selection: A(LMS_CH_0),B(LMS_CH_1).

void void gr::limesdr::source_impl::set_tcxo_dac (uint16_t dacVal=125) set_tcxo_dac gr::limesdr::source_impl::set_tcxo_dac set_tcxo_dac uint16_t dacVal 125

Set TCXO DAC.

Care must be taken as this parameter is returned to default value only after power off.

LimeSDR-Mini default value is 180 range is [0,255] LimeSDR-USB default value is 125 range is [0,255] LimeSDR-PCIe default value is 134 range is [0,255] LimeNET-Micro default value is 30714 range is [0,65535]

dacVal

DAC value (0-65535)

gr::limesdr::source
gr::limesdr::source_impl
gr::sync_block
gr::limesdr::source
gr::limesdr::source_impl
gr::sync_block
- gr::limesdr::source_impl
  add_tag
- gr::limesdr::source_impl
  add_time_tag
- gr::limesdr::source_impl
  args_to_io_signature
- gr::limesdr::source_impl
  calibrate
- gr::limesdr::source_impl
  init_stream
- gr::limesdr::source_impl
  make
- gr::limesdr::source_impl
  pktLoss
- gr::limesdr::source_impl
  print_stream_stats
- gr::limesdr::source_impl
  release_stream
- gr::limesdr::source_impl
  set_antenna
- gr::limesdr::source_impl
  set_bandwidth
- gr::limesdr::source_impl
  set_buffer_size
- gr::limesdr::source_impl
  set_center_freq
- gr::limesdr::source_impl
  set_digital_filter
- gr::limesdr::source_impl
  set_gain
- gr::limesdr::source_impl
  set_nco
- gr::limesdr::source_impl
  set_oversampling
- gr::limesdr::source_impl
  set_sample_rate
- gr::limesdr::source_impl
  set_tcxo_dac
- gr::limesdr::source_impl
  source_block
- gr::limesdr::source_impl
  source_impl
- gr::limesdr::source_impl
  sptr
- gr::limesdr::source_impl
  start
- gr::limesdr::source_impl
  stop
- gr::limesdr::source_impl
  stored
- gr::limesdr::source_impl
  stream_analyzer
- gr::limesdr::source_impl
  streamId
- gr::limesdr::source_impl
  t1
- gr::limesdr::source_impl
  t2
- gr::limesdr::source_impl
  work
- gr::limesdr::source_impl
  ~source_impl