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

#include <eightbit_sink_impl.h>

Inheritance diagram for gr::hnchiio::eightbit_sink_impl:
gr::hnchiio::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::hnchiio::eightbit_sink
typedef std::shared_ptr< eightbit_sinksptr
Static Public Member Functions inherited from gr::hnchiio::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 hnchiio::device.
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::hnchiio::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::hnchiio::eightbit_sink_impl::~eightbit_sink_impl ( )

Member Function Documentation

◆ forecast()

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

◆ set_params()

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

◆ work()

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

◆ buffer_size

unsigned int gr::hnchiio::eightbit_sink_impl::buffer_size
protected

Referenced by eightbit_sink_impl().

◆ channel_list

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

◆ ctx

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

Referenced by eightbit_sink_impl().

◆ destroy_ctx

bool gr::hnchiio::eightbit_sink_impl::destroy_ctx
protected

Referenced by eightbit_sink_impl().

◆ dev

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

◆ interpolation

unsigned int gr::hnchiio::eightbit_sink_impl::interpolation
protected

Referenced by eightbit_sink_impl().

◆ phy

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

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