GNU Radio's HNCHIIO Package
gr::hnchiio::multi_source_impl Class Reference

#include <multi_source_impl.h>

Inheritance diagram for gr::hnchiio::multi_source_impl:
gr::hnchiio::multi_source

Public Member Functions

 multi_source_impl (struct iio_context *ctx, bool destroy_ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy1, const std::vector< std::string > &params1, const std::string &device_phy2, const std::vector< std::string > &params2, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
 ~multi_source_impl ()
void set_params0 (const std::vector< std::string > &params)
void set_params1 (const std::vector< std::string > &params)
void set_params2 (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 ()

Static Public Member Functions

static void set_params (struct iio_device *phy, const std::vector< std::string > &params)
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::hnchiio::multi_source
static sptr make (const std::string &uri, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy1, const std::vector< std::string > &params1, const std::string &device_phy2, const std::vector< std::string > &params2, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
 Return a shared_ptr to a new instance of hnchiio::device.
static sptr make_from (struct iio_context *ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy1, const std::vector< std::string > &params1, const std::string &device_phy2, const std::vector< std::string > &params2, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)

Protected Attributes

struct iio_context * ctx
struct iio_device * dev
struct iio_device * phy1
struct iio_device * phy2
struct iio_buffer * buf
std::vector< struct iio_channel * > channel_list
unsigned int buffer_size
unsigned int decimation
bool destroy_ctx

Additional Inherited Members

Public Types inherited from gr::hnchiio::multi_source
typedef std::shared_ptr< multi_sourcesptr

Constructor & Destructor Documentation

◆ multi_source_impl()

gr::hnchiio::multi_source_impl::multi_source_impl ( struct iio_context * ctx,
bool destroy_ctx,
const std::string & device,
const std::vector< std::string > & channels,
const std::string & device_phy1,
const std::vector< std::string > & params1,
const std::string & device_phy2,
const std::vector< std::string > & params2,
unsigned int buffer_size = DEFAULT_BUFFER_SIZE,
unsigned int decimation = 0 )

◆ ~multi_source_impl()

gr::hnchiio::multi_source_impl::~multi_source_impl ( )

Member Function Documentation

◆ get_context()

struct iio_context * gr::hnchiio::multi_source_impl::get_context ( const std::string & uri)
static

◆ load_fir_filter()

bool gr::hnchiio::multi_source_impl::load_fir_filter ( std::string & filter,
struct iio_device * phy )
static

◆ set_buffer_size()

void gr::hnchiio::multi_source_impl::set_buffer_size ( unsigned int buffer_size)
virtual

Implements gr::hnchiio::multi_source.

References buffer_size.

◆ set_params()

void gr::hnchiio::multi_source_impl::set_params ( struct iio_device * phy,
const std::vector< std::string > & params )
static

◆ set_params0()

void gr::hnchiio::multi_source_impl::set_params0 ( const std::vector< std::string > & params)

◆ set_params1()

void gr::hnchiio::multi_source_impl::set_params1 ( const std::vector< std::string > & params)

◆ set_params2()

void gr::hnchiio::multi_source_impl::set_params2 ( const std::vector< std::string > & params)

◆ set_timeout_ms()

void gr::hnchiio::multi_source_impl::set_timeout_ms ( unsigned long timeout)
virtual

◆ start()

bool gr::hnchiio::multi_source_impl::start ( )

◆ stop()

bool gr::hnchiio::multi_source_impl::stop ( )

◆ work()

int gr::hnchiio::multi_source_impl::work ( int noutput_items,
gr_vector_const_void_star & input_items,
gr_vector_void_star & output_items )

Member Data Documentation

◆ buf

struct iio_buffer* gr::hnchiio::multi_source_impl::buf
protected

◆ buffer_size

unsigned int gr::hnchiio::multi_source_impl::buffer_size
protected

◆ channel_list

std::vector<struct iio_channel *> gr::hnchiio::multi_source_impl::channel_list
protected

◆ ctx

struct iio_context* gr::hnchiio::multi_source_impl::ctx
protected

Referenced by multi_source_impl().

◆ decimation

unsigned int gr::hnchiio::multi_source_impl::decimation
protected

Referenced by multi_source_impl().

◆ destroy_ctx

bool gr::hnchiio::multi_source_impl::destroy_ctx
protected

Referenced by multi_source_impl().

◆ dev

struct iio_device* gr::hnchiio::multi_source_impl::dev
protected

◆ phy1

struct iio_device * gr::hnchiio::multi_source_impl::phy1
protected

◆ phy2

struct iio_device * gr::hnchiio::multi_source_impl::phy2
protected

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