23 #ifndef INCLUDED_IIO_FMCOMMS2_SINK_H 24 #define INCLUDED_IIO_FMCOMMS2_SINK_H 27 #include <gnuradio/hier_block2.h> 28 #include <gnuradio/sync_block.h> 38 typedef std::shared_ptr<fmcomms2_sink>
sptr;
40 static sptr make(
const std::string &uri,
unsigned long long frequency,
41 unsigned long samplerate,
42 unsigned long bandwidth,
43 bool ch1_en,
bool ch2_en,
bool ch3_en,
bool ch4_en,
44 unsigned long buffer_size,
bool cyclic,
45 const char *rf_port_select,
double attenuation1,
46 double attenuation2,
const char *filter =
"",
47 bool auto_filter =
true);
49 static sptr make_from(
struct iio_context *ctx,
50 unsigned long long frequency,
unsigned long samplerate,
51 unsigned long bandwidth,
52 bool ch1_en,
bool ch2_en,
bool ch3_en,
bool ch4_en,
53 unsigned long buffer_size,
bool cyclic,
54 const char *rf_port_select,
double attenuation1,
55 double attenuation2,
const char *filter =
"",
56 bool auto_filter =
true);
58 virtual void set_params(
unsigned long long frequency,
59 unsigned long samplerate,
unsigned long bandwidth,
60 const char *rf_port_select,
double attenuation1,
61 double attenuation2,
const char *filter =
"",
62 bool auto_filter =
true) = 0;
68 typedef std::shared_ptr<fmcomms2_sink_f32c>
sptr;
70 static sptr make(
const std::string &uri,
unsigned long long frequency,
71 unsigned long samplerate,
72 unsigned long bandwidth,
bool rx1_en,
bool rx2_en,
73 unsigned long buffer_size,
bool cyclic,
74 const char *rf_port_select,
double attenuation1,
75 double attenuation2,
const char *filter =
"",
76 bool auto_filter =
true)
79 samplerate, bandwidth, rx1_en,
80 rx1_en, rx2_en, rx2_en, buffer_size, cyclic,
81 rf_port_select, attenuation1, attenuation2,
84 return gnuradio::get_initial_sptr(
89 unsigned long samplerate,
unsigned long bandwidth,
90 const char *rf_port_select,
double attenuation1,
91 double attenuation2,
const char *filter =
"",
92 bool auto_filter =
true)
94 fmcomms2_block->set_params(frequency, samplerate, bandwidth,
95 rf_port_select, attenuation1, attenuation2,
#define IIO_API
Definition: api.h:19
Definition: fmcomms2_sink.h:35
Definition: fmcomms2_sink.h:65
static sptr make(const std::string &uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool rx1_en, bool rx2_en, unsigned long buffer_size, bool cyclic, const char *rf_port_select, double attenuation1, double attenuation2, const char *filter="", bool auto_filter=true)
Definition: fmcomms2_sink.h:70
void set_params(unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, const char *rf_port_select, double attenuation1, double attenuation2, const char *filter="", bool auto_filter=true)
Definition: fmcomms2_sink.h:88
std::shared_ptr< fmcomms2_sink > sptr
Definition: fmcomms2_sink.h:38
Definition: attr_sink.h:29
std::shared_ptr< fmcomms2_sink_f32c > sptr
Definition: fmcomms2_sink.h:68
static sptr make(const std::string &uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool ch1_en, bool ch2_en, bool ch3_en, bool ch4_en, unsigned long buffer_size, bool cyclic, const char *rf_port_select, double attenuation1, double attenuation2, const char *filter="", bool auto_filter=true)