gr::limesdr::sink
gr::sync_block
gr::limesdr::sink_impl
sink.h
boost::shared_ptr< sink > typedef boost::shared_ptr<sink> gr::limesdr::sink::sptr sptr gr::limesdr::sink::sptr
sptr static sptr gr::limesdr::sink::make (std::string serial, int channel_mode, const std::string &filename, const std::string &length_tag_name) make gr::limesdr::sink::make std::string serial int channel_mode const std::string & filename const std::string & length_tag_name

Return a shared_ptr to a new instance of sink.

To avoid accidental use of raw pointers, sink's constructor is private. limesdr::sink::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.

length_tag_name

Name of stream burst length tag

a new limesdr sink block object

double virtual double gr::limesdr::sink::set_center_freq (double freq, size_t chan=0)=0 set_center_freq gr::limesdr::sink::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

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

Set which antenna is used

setting antenna to BAND1 or BAND2 will enable PA path and because of that Lime boards will transmit CW signal, even when stream is stopped.

antenna

Antenna to set: None(0), BAND1(1), BAND(2), NONE(3), AUTO(255)

channel

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

void virtual void gr::limesdr::sink::set_nco (float nco_freq, int channel)=0 set_nco gr::limesdr::sink::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::sink::set_bandwidth (double analog_bandw, int channel=0)=0 set_bandwidth gr::limesdr::sink::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::sink::set_digital_filter (double digital_bandw, int channel)=0 set_digital_filter gr::limesdr::sink::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::sink::set_gain (unsigned gain_dB, int channel=0)=0 set_gain gr::limesdr::sink::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,60]

channel

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

actual gain in dB

double virtual double gr::limesdr::sink::set_sample_rate (double rate)=0 set_sample_rate gr::limesdr::sink::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::sink::set_oversampling (int oversample)=0 set_oversampling gr::limesdr::sink::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::sink::calibrate (double bandw, int channel=0)=0 calibrate gr::limesdr::sink::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::sink::set_buffer_size (uint32_t size)=0 set_buffer_size gr::limesdr::sink::set_buffer_size set_buffer_size uint32_t size

Set stream buffer size

size

FIFO buffer size in samples

void virtual void gr::limesdr::sink::set_tcxo_dac (uint16_t dacVal=125)=0 set_tcxo_dac gr::limesdr::sink::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::sink
gr::limesdr::sink_impl
gr::sync_block
gr::limesdr::sink
gr::sync_block
- gr::limesdr::sink
  calibrate
- gr::limesdr::sink
  make
- gr::limesdr::sink
  set_antenna
- gr::limesdr::sink
  set_bandwidth
- gr::limesdr::sink
  set_buffer_size
- gr::limesdr::sink
  set_center_freq
- gr::limesdr::sink
  set_digital_filter
- gr::limesdr::sink
  set_gain
- gr::limesdr::sink
  set_nco
- gr::limesdr::sink
  set_oversampling
- gr::limesdr::sink
  set_sample_rate
- gr::limesdr::sink
  set_tcxo_dac
- gr::limesdr::sink
  sptr