gr::limesdr::sink_impl
gr::limesdr::sink
sink_impl.h
gr::limesdr::sink_impl::constant_data
lms_stream_t lms_stream_t gr::limesdr::sink_impl::streamId[2] [2] streamId gr::limesdr::sink_impl::streamId
bool bool gr::limesdr::sink_impl::stream_analyzer stream_analyzer gr::limesdr::sink_impl::stream_analyzer = false
int int gr::limesdr::sink_impl::sink_block sink_block gr::limesdr::sink_impl::sink_block = 2
pmt::pmt_t pmt::pmt_t gr::limesdr::sink_impl::LENGTH_TAG LENGTH_TAG gr::limesdr::sink_impl::LENGTH_TAG
lms_stream_meta_t lms_stream_meta_t gr::limesdr::sink_impl::tx_meta tx_meta gr::limesdr::sink_impl::tx_meta
long long gr::limesdr::sink_impl::burst_length burst_length gr::limesdr::sink_impl::burst_length = 0
int int gr::limesdr::sink_impl::nitems_send nitems_send gr::limesdr::sink_impl::nitems_send = 0
int int gr::limesdr::sink_impl::ret[2] [2] ret gr::limesdr::sink_impl::ret = { 0 }
int int gr::limesdr::sink_impl::pa_path[2] [2] pa_path gr::limesdr::sink_impl::pa_path = { 0 }
struct gr::limesdr::sink_impl::constant_data struct gr::limesdr::sink_impl::constant_data gr::limesdr::sink_impl::stored stored gr::limesdr::sink_impl::stored
std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::time_point gr::limesdr::sink_impl::t1 t1 gr::limesdr::sink_impl::t1
std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::time_point gr::limesdr::sink_impl::t2 t2 gr::limesdr::sink_impl::t2
void void gr::limesdr::sink_impl::work_tags (int noutput_items) work_tags gr::limesdr::sink_impl::work_tags int noutput_items
void void gr::limesdr::sink_impl::print_stream_stats (int channel) print_stream_stats gr::limesdr::sink_impl::print_stream_stats int channel
gr::limesdr::sink_impl::sink_impl
(std::string serial, int channel_mode, const std::string &filename, const std::string &length_tag_name)
sink_impl
gr::limesdr::sink_impl::sink_impl
std::string serial
int channel_mode
const std::string & filename
const std::string & length_tag_name
gr::limesdr::sink_impl::~sink_impl
()
~sink_impl
gr::limesdr::sink_impl::~sink_impl
int int gr::limesdr::sink_impl::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work gr::limesdr::sink_impl::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items
bool bool gr::limesdr::sink_impl::start (void) start gr::limesdr::sink_impl::start void
bool bool gr::limesdr::sink_impl::stop (void) stop gr::limesdr::sink_impl::stop void
gr::io_signature::sptr gr::io_signature::sptr gr::limesdr::sink_impl::args_to_io_signature (int channel_number) args_to_io_signature gr::limesdr::sink_impl::args_to_io_signature int channel_number
void void gr::limesdr::sink_impl::init_stream (int device_number, int channel) init_stream gr::limesdr::sink_impl::init_stream int device_number int channel
void void gr::limesdr::sink_impl::release_stream (int device_number, lms_stream_t *stream) release_stream gr::limesdr::sink_impl::release_stream int device_number lms_stream_t * stream
double double gr::limesdr::sink_impl::set_center_freq (double freq, size_t chan=0) set_center_freq gr::limesdr::sink_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

void void gr::limesdr::sink_impl::set_antenna (int antenna, int channel=0) set_antenna gr::limesdr::sink_impl::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 void gr::limesdr::sink_impl::toggle_pa_path (int device_number, bool enable) toggle_pa_path gr::limesdr::sink_impl::toggle_pa_path int device_number bool enable
void void gr::limesdr::sink_impl::set_nco (float nco_freq, int channel=0) set_nco gr::limesdr::sink_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::sink_impl::set_bandwidth (double analog_bandw, int channel=0) set_bandwidth gr::limesdr::sink_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::sink_impl::set_digital_filter (double digital_bandw, int channel=0) set_digital_filter gr::limesdr::sink_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::sink_impl::set_gain (unsigned gain_dB, int channel=0) set_gain gr::limesdr::sink_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,73] dB

channel

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

actual gain in dB

double double gr::limesdr::sink_impl::set_sample_rate (double rate) set_sample_rate gr::limesdr::sink_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::sink_impl::set_oversampling (int oversample) set_oversampling gr::limesdr::sink_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::sink_impl::set_buffer_size (uint32_t size) set_buffer_size gr::limesdr::sink_impl::set_buffer_size set_buffer_size uint32_t size

Set stream buffer size

size

FIFO buffer size in samples

void void gr::limesdr::sink_impl::calibrate (double bandw, int channel=0) calibrate gr::limesdr::sink_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::sink_impl::set_tcxo_dac (uint16_t dacVal=125) set_tcxo_dac gr::limesdr::sink_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)

void void gr::limesdr::sink_impl::write_lms_reg (uint32_t address, uint16_t val) write_lms_reg gr::limesdr::sink_impl::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 void gr::limesdr::sink_impl::set_gpio_dir (uint8_t dir) set_gpio_dir gr::limesdr::sink_impl::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 void gr::limesdr::sink_impl::write_gpio (uint8_t out) write_gpio gr::limesdr::sink_impl::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 uint8_t gr::limesdr::sink_impl::read_gpio () read_gpio gr::limesdr::sink_impl::read_gpio read_gpio

Read GPIO inputs

Read GPIO inputs by calling LMS_GPIORead()

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

gr::limesdr::sink
gr::limesdr::sink_impl
gr::sync_block
gr::limesdr::sink
gr::limesdr::sink_impl
gr::sync_block
- gr::limesdr::sink_impl
  args_to_io_signature
- gr::limesdr::sink_impl
  burst_length
- gr::limesdr::sink_impl
  calibrate
- gr::limesdr::sink_impl
  init_stream
- gr::limesdr::sink_impl
  LENGTH_TAG
- gr::limesdr::sink_impl
  make
- gr::limesdr::sink_impl
  nitems_send
- gr::limesdr::sink_impl
  pa_path
- gr::limesdr::sink_impl
  print_stream_stats
- gr::limesdr::sink_impl
  read_gpio
- gr::limesdr::sink_impl
  release_stream
- gr::limesdr::sink_impl
  ret
- gr::limesdr::sink_impl
  set_antenna
- gr::limesdr::sink_impl
  set_bandwidth
- gr::limesdr::sink_impl
  set_buffer_size
- gr::limesdr::sink_impl
  set_center_freq
- gr::limesdr::sink_impl
  set_digital_filter
- gr::limesdr::sink_impl
  set_gain
- gr::limesdr::sink_impl
  set_gpio_dir
- gr::limesdr::sink_impl
  set_nco
- gr::limesdr::sink_impl
  set_oversampling
- gr::limesdr::sink_impl
  set_sample_rate
- gr::limesdr::sink_impl
  set_tcxo_dac
- gr::limesdr::sink_impl
  sink_block
- gr::limesdr::sink_impl
  sink_impl
- gr::limesdr::sink_impl
  sptr
- gr::limesdr::sink_impl
  start
- gr::limesdr::sink_impl
  stop
- gr::limesdr::sink_impl
  stored
- gr::limesdr::sink_impl
  stream_analyzer
- gr::limesdr::sink_impl
  streamId
- gr::limesdr::sink_impl
  t1
- gr::limesdr::sink_impl
  t2
- gr::limesdr::sink_impl
  toggle_pa_path
- gr::limesdr::sink_impl
  tx_meta
- gr::limesdr::sink_impl
  work
- gr::limesdr::sink_impl
  work_tags
- gr::limesdr::sink_impl
  write_gpio
- gr::limesdr::sink_impl
  write_lms_reg
- gr::limesdr::sink_impl
  ~sink_impl