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;
57 const std::string& device,
58 const std::vector<std::string>& channels,
59 const std::string& device_phy,
62 unsigned int decimation = 0);
65 const std::string& device,
66 const std::vector<std::string>& channels,
67 const std::string& device_phy,
70 unsigned int decimation = 0);
Generic source for IIO drivers with buffered output channels.
Definition: device_source.h:37
virtual void set_timeout_ms(unsigned long timeout)=0
std::shared_ptr< device_source > sptr
Definition: device_source.h:39
virtual void set_len_tag_key(const std::string &len_tag_key)=0
Key of the packet length tag. If empty no tag will be emitted.
static sptr make_from(iio_context *ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const iio_param_vec_t ¶ms, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
static sptr make(const std::string &uri, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const iio_param_vec_t ¶ms, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
Return a shared_ptr to a new instance of iio::device.
virtual void set_buffer_size(unsigned int buffer_size)=0
Number of samples to be put into each IIO buffered passed to hardware.
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define DEFAULT_BUFFER_SIZE
Definition: device_source.h:19
#define IIO_API
Definition: gr-iio/include/gnuradio/iio/api.h:18
std::vector< iio_param_t > iio_param_vec_t
Definition: iio_types.h:44
GNU Radio logging wrapper.
Definition: basic_block.h:29