gr::limesdr::source
gr::sync_block
gr::limesdr::source_impl
source.h
std::shared_ptr< source > typedef std::shared_ptr<source> gr::limesdr::source::sptr sptr gr::limesdr::source::sptr
sptr static sptr gr::limesdr::source::make (std::string serial, int channel_mode, const std::string &filename, bool align_ch_phase) make gr::limesdr::source::make std::string serial int channel_mode const std::string & filename bool align_ch_phase

Return a shared_ptr to a new instance of limesdr::source.

To avoid accidental use of raw pointers, limesdr::source's constructor is in a private implementation class. limesdr::source::make is the public interface for creating new instances. serial

Device serial number. Cannot be left blank.

channel_mode

Channel and mode selection A(1), B(2), (A+B)MIMO(3).

filename

Path to file if file switch is turned on.

align_ch_phase

Perform MIMO phase alignment by calling AlignRxRF() as described in https://github.com/myriadrf/LMS7002M-docs/blob/master/LimeSDR-USB_channel_alignment_v01r00.pdf

a new limesdr source block object

double virtual double gr::limesdr::source::set_center_freq (double freq, size_t chan=0)=0 set_center_freq gr::limesdr::source::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 virtual void gr::limesdr::source::set_antenna (int antenna, int channel=0)=0 set_antenna gr::limesdr::source::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 virtual void gr::limesdr::source::set_nco (float nco_freq, int channel)=0 set_nco gr::limesdr::source::set_nco set_nco float nco_freq int channel

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 virtual double gr::limesdr::source::set_bandwidth (double analog_bandw, int channel=0)=0 set_bandwidth gr::limesdr::source::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 virtual void gr::limesdr::source::set_digital_filter (double digital_bandw, int channel)=0 set_digital_filter gr::limesdr::source::set_digital_filter set_digital_filter double digital_bandw int channel

Set digital filters (GFIR).

digital_bandw

Channel filter bandwidth in Hz.

channel

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

unsigned virtual unsigned gr::limesdr::source::set_gain (unsigned gain_dB, int channel=0)=0 set_gain gr::limesdr::source::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,73] dB

channel

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

actual gain in dB

double virtual double gr::limesdr::source::set_sample_rate (double rate)=0 set_sample_rate gr::limesdr::source::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 virtual void gr::limesdr::source::set_oversampling (int oversample)=0 set_oversampling gr::limesdr::source::set_oversampling set_oversampling int oversample

Set oversampling for both channels.

oversample

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

void virtual void gr::limesdr::source::calibrate (double bandw, int channel=0)=0 calibrate gr::limesdr::source::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 virtual void gr::limesdr::source::set_buffer_size (uint32_t size)=0 set_buffer_size gr::limesdr::source::set_buffer_size set_buffer_size uint32_t size

Set stream buffer size

size

FIFO buffer size in samples

void virtual void gr::limesdr::source::set_tcxo_dac (uint16_t dacVal=125)=0 set_tcxo_dac gr::limesdr::source::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)

void virtual void gr::limesdr::source::write_lms_reg (uint32_t address, uint16_t val)=0 write_lms_reg gr::limesdr::source::write_lms_reg write_lms_reg uint32_t address uint16_t val

Write LMS register

Writes a parameter by calling LMS_WriteLMSReg()

address

Address

val

Value

void virtual void gr::limesdr::source::set_gpio_dir (uint8_t dir)=0 set_gpio_dir gr::limesdr::source::set_gpio_dir set_gpio_dir uint8_t dir

Set GPIO direction

Set GPIO direction by calling LMS_GPIODirWrite()

dir

Direction bitmap (eight bits, one for each pin, 1 = output, 0 = input)

void virtual void gr::limesdr::source::write_gpio (uint8_t out)=0 write_gpio gr::limesdr::source::write_gpio write_gpio uint8_t out

Write GPIO outputs

Write GPIO outputs by calling LMS_GPIOWrite()

out

Level bitmap (eight bits, one for each pin)

uint8_t virtual uint8_t gr::limesdr::source::read_gpio ()=0 read_gpio gr::limesdr::source::read_gpio read_gpio

Read GPIO inputs

Read GPIO inputs by calling LMS_GPIORead()

input level bitmap (eight bits, one for each pin)

<+description of block+>

gr::limesdr::source
gr::limesdr::source_impl
gr::sync_block
gr::limesdr::source
gr::sync_block
- gr::limesdr::source
  calibrate
- gr::limesdr::source
  make
- gr::limesdr::source
  read_gpio
- gr::limesdr::source
  set_antenna
- gr::limesdr::source
  set_bandwidth
- gr::limesdr::source
  set_buffer_size
- gr::limesdr::source
  set_center_freq
- gr::limesdr::source
  set_digital_filter
- gr::limesdr::source
  set_gain
- gr::limesdr::source
  set_gpio_dir
- gr::limesdr::source
  set_nco
- gr::limesdr::source
  set_oversampling
- gr::limesdr::source
  set_sample_rate
- gr::limesdr::source
  set_tcxo_dac
- gr::limesdr::source
  sptr
- gr::limesdr::source
  write_gpio
- gr::limesdr::source
  write_lms_reg