11 #ifndef INCLUDED_IIO_DEVICE_SOURCE_H
12 #define INCLUDED_IIO_DEVICE_SOURCE_H
19 #define DEFAULT_BUFFER_SIZE 0x8000
39 typedef std::shared_ptr<device_source>
sptr;
56 static sptr make(
const std::string& uri,
57 const std::string& device,
58 const std::vector<std::string>& channels,
59 const std::string& device_phy,
62 unsigned int decimation = 0);
64 static sptr make_from(iio_context* ctx,
65 const std::string& device,
66 const std::vector<std::string>& channels,
67 const std::string& device_phy,
70 unsigned int decimation = 0);
75 virtual void set_len_tag_key(
const std::string& len_tag_key) = 0;
81 virtual void set_buffer_size(
unsigned int buffer_size) = 0;
83 virtual void set_timeout_ms(
unsigned long timeout) = 0;
Generic source for IIO drivers with buffered output channels.
Definition: device_source.h:36
#define DEFAULT_BUFFER_SIZE
Definition: device_source.h:19
GNU Radio logging wrapper.
Definition: basic_block.h:29
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:25
std::shared_ptr< device_source > sptr
Definition: device_source.h:39
std::vector< iio_param_t > iio_param_vec_t
Definition: iio_types.h:44
#define IIO_API
Definition: gr-iio/include/gnuradio/iio/api.h:18