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

#include <eightbit_sink_impl.h>

Inheritance diagram for gr::iio::eightbit_sink_impl:
gr::iio::eightbit_sink

Public Member Functions

 eightbit_sink_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 interpolation=0, bool cyclic=false)
 
 ~eightbit_sink_impl ()
 
void set_params (const std::vector< std::string > &params)
 
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 
void forecast (int noutput_items, gr_vector_int &ninput_items_required)
 

Protected Attributes

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 interpolation
 
bool destroy_ctx
 

Additional Inherited Members

- Public Types inherited from gr::iio::eightbit_sink
typedef std::shared_ptr< eightbit_sinksptr
 
- Static Public Member Functions inherited from gr::iio::eightbit_sink
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 interpolation=0, bool cyclic=false)
 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 interpolation=0, bool cyclic=false)
 

Constructor & Destructor Documentation

◆ eightbit_sink_impl()

gr::iio::eightbit_sink_impl::eightbit_sink_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  interpolation = 0,
bool  cyclic = false 
)

◆ ~eightbit_sink_impl()

gr::iio::eightbit_sink_impl::~eightbit_sink_impl ( )

Member Function Documentation

◆ forecast()

void gr::iio::eightbit_sink_impl::forecast ( int  noutput_items,
gr_vector_int &  ninput_items_required 
)

◆ set_params()

void gr::iio::eightbit_sink_impl::set_params ( const std::vector< std::string > &  params)

◆ work()

int gr::iio::eightbit_sink_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::iio::eightbit_sink_impl::buf
protected

◆ buffer_size

unsigned int gr::iio::eightbit_sink_impl::buffer_size
protected

◆ channel_list

std::vector<struct iio_channel *> gr::iio::eightbit_sink_impl::channel_list
protected

◆ ctx

struct iio_context* gr::iio::eightbit_sink_impl::ctx
protected

◆ destroy_ctx

bool gr::iio::eightbit_sink_impl::destroy_ctx
protected

◆ dev

struct iio_device* gr::iio::eightbit_sink_impl::dev
protected

◆ interpolation

unsigned int gr::iio::eightbit_sink_impl::interpolation
protected

◆ phy

struct iio_device * gr::iio::eightbit_sink_impl::phy
protected

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