20#ifndef PLUTOSDR_SOURCE_C_H
21#define PLUTOSDR_SOURCE_C_H
23#include <gnuradio/blocks/float_to_complex.h>
24#include <gnuradio/blocks/short_to_float.h>
25#include <gnuradio/hier_block2.h>
26#include <iio/pluto_source.h>
32typedef boost::shared_ptr< plutosdr_source_c > plutosdr_source_c_sptr;
37 public gr::hier_block2,
70 double set_gain(
double gain,
size_t chan = 0 );
71 double set_gain(
double gain,
const std::string &
name,
size_t chan = 0 );
76 std::string
set_antenna(
const std::string & antenna,
size_t chan = 0 );
84 void set_params(
void);
86 gr::iio::pluto_source::sptr _src;
89 unsigned long long frequency;
90 unsigned long samplerate;
91 unsigned long decimation;
92 unsigned long bandwidth;
93 unsigned long buffer_size;
Definition: plutosdr_source_c.h:39
double get_gain(const std::string &name, size_t chan=0)
std::vector< std::string > get_antennas(size_t chan=0)
double set_gain(double gain, size_t chan=0)
osmosdr::gain_range_t get_gain_range(size_t chan=0)
double set_center_freq(double freq, size_t chan=0)
double get_bandwidth(size_t chan=0)
double set_sample_rate(double rate)
double get_freq_corr(size_t chan=0)
std::string get_antenna(size_t chan=0)
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan=0)
bool get_gain_mode(size_t chan=0)
friend plutosdr_source_c_sptr make_plutosdr_source_c(const std::string &args)
double get_gain(size_t chan=0)
osmosdr::meta_range_t get_sample_rates(void)
double set_bandwidth(double bw, size_t chan=0)
double set_gain(double gain, const std::string &name, size_t chan=0)
osmosdr::freq_range_t get_freq_range(size_t chan=0)
double get_center_freq(size_t chan=0)
double get_sample_rate(void)
size_t get_num_channels(void)
double set_freq_corr(double ppm, size_t chan=0)
static std::vector< std::string > get_devices()
std::vector< std::string > get_gain_names(size_t chan=0)
std::string set_antenna(const std::string &antenna, size_t chan=0)
bool set_gain_mode(bool automatic, size_t chan=0)
Definition: source_iface.h:33
plutosdr_source_c_sptr make_plutosdr_source_c(const std::string &args="")