23#ifndef INCLUDED_HNCHIIO_FLEXI_SOURCE_H
24#define INCLUDED_HNCHIIO_FLEXI_SOURCE_H
27#include <gnuradio/sync_block.h>
29#define DEFAULT_BUFFER_SIZE 0x8000
46 typedef std::shared_ptr<flexi_source>
sptr;
56 static sptr make(
const std::string &uri,
const std::string &device,
57 const std::vector<std::string> &channels,
58 const std::string &device_phy,
59 const std::vector<std::string> &devparams,
60 const std::vector<std::string> &phyparams,
62 unsigned int decimation = 0);
64 static sptr make_from(
struct iio_context *ctx,
const std::string &device,
65 const std::vector<std::string> &channels,
66 const std::string &device_phy,
67 const std::vector<std::string> &devparams,
68 const std::vector<std::string> &phyparams,
70 unsigned int decimation = 0);
#define IIO_API
Definition api.h:19
<+description of block+>
Definition flexi_source.h:44
virtual void set_timeout_ms(unsigned long timeout)=0
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 > &devparams, const std::vector< std::string > &phyparams, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
std::shared_ptr< flexi_source > sptr
Definition flexi_source.h:46
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 > &devparams, const std::vector< std::string > &phyparams, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
Return a shared_ptr to a new instance of hnchiio::device.
virtual void set_buffer_size(unsigned int buffer_size)=0
#define DEFAULT_BUFFER_SIZE
Definition device_sink.h:29
Definition device_sink.h:36
Definition device_sink.h:35