GNU Radio's IIO Package
gr::iio::fmcomms2_source_impl Class Reference

#include <fmcomms2_source_impl.h>

Inheritance diagram for gr::iio::fmcomms2_source_impl:
gr::iio::fmcomms2_source gr::iio::device_source_impl gr::iio::device_source

Public Member Functions

 fmcomms2_source_impl (struct iio_context *ctx, bool destroy_ctx, 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 quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter, bool auto_filter)
 
void set_params (unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter, bool auto_filter)
 
- Public Member Functions inherited from gr::iio::device_source_impl
 device_source_impl (struct iio_context *ctx, bool destroy_ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const std::vector< std::string > &params, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
 
 ~device_source_impl ()
 
void set_params (const std::vector< std::string > &params)
 
void set_buffer_size (unsigned int buffer_size)
 
void set_timeout_ms (unsigned long timeout)
 
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 
bool start ()
 
bool stop ()
 

Additional Inherited Members

- Public Types inherited from gr::iio::fmcomms2_source
typedef std::shared_ptr< fmcomms2_sourcesptr
 
- Public Types inherited from gr::iio::device_source
typedef std::shared_ptr< device_sourcesptr
 
- Static Public Member Functions inherited from gr::iio::fmcomms2_source
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 quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter="", bool auto_filter=true)
 Return a shared_ptr to a new instance of iio::device. More...
 
static sptr make_from (struct iio_context *ctx, 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 quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter="", bool auto_filter=true)
 
- Static Public Member Functions inherited from gr::iio::device_source_impl
static void set_params (struct iio_device *phy, const std::vector< std::string > &params)
 
static void remove_ctx_history (struct iio_context *ctx, bool destroy_ctx)
 
static struct iio_context * get_context (const std::string &uri)
 
static bool load_fir_filter (std::string &filter, struct iio_device *phy)
 
- Static Public Member Functions inherited from gr::iio::device_source
static sptr make (const std::string &uri, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const std::vector< std::string > &params, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
 Return a shared_ptr to a new instance of iio::device. More...
 
static sptr make_from (struct iio_context *ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const std::vector< std::string > &params, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
 
- Protected Attributes inherited from gr::iio::device_source_impl
struct iio_context * ctx
 
struct iio_device * dev
 
struct iio_device * phy
 
struct iio_buffer * buf
 
std::vector< struct iio_channel * > channel_list
 
unsigned int buffer_size
 
unsigned int decimation
 
bool destroy_ctx
 

Constructor & Destructor Documentation

◆ fmcomms2_source_impl()

gr::iio::fmcomms2_source_impl::fmcomms2_source_impl ( struct iio_context *  ctx,
bool  destroy_ctx,
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  quadrature,
bool  rfdc,
bool  bbdc,
const char *  gain1,
double  gain1_value,
const char *  gain2,
double  gain2_value,
const char *  rf_port_select,
const char *  filter,
bool  auto_filter 
)

Member Function Documentation

◆ set_params()

void gr::iio::fmcomms2_source_impl::set_params ( unsigned long long  frequency,
unsigned long  samplerate,
unsigned long  bandwidth,
bool  quadrature,
bool  rfdc,
bool  bbdc,
const char *  gain1,
double  gain1_value,
const char *  gain2,
double  gain2_value,
const char *  rf_port_select,
const char *  filter,
bool  auto_filter 
)
virtual

The documentation for this class was generated from the following file: