22#ifndef INCLUDED_IIO_ATTR_SOURCE_IMPL_H
23#define INCLUDED_IIO_ATTR_SOURCE_IMPL_H
39 std::string attribute;
40 int update_interval_ms;
41 int samples_per_update;
51 struct iio_context *
ctx;
52 struct iio_device *
dev;
56 attr_source_impl(
const std::string &uri,
const std::string &device,
const std::string &channel,
57 const std::string &attribute,
int update_interval_ms,
int samples_per_update,
58 int data_type,
int attr_type,
bool output, uint32_t address,
bool required_enable);
62 int work(
int noutput_items,
63 gr_vector_const_void_star &input_items,
64 gr_vector_void_star &output_items);
void get_attribute_data(const std::string &attribute, uint8_t *value)
attr_source_impl(const std::string &uri, const std::string &device, const std::string &channel, const std::string &attribute, int update_interval_ms, int samples_per_update, int data_type, int attr_type, bool output, uint32_t address, bool required_enable)
void get_register_data(uint32_t address, int *value)
struct iio_channel * chan
Definition attr_source_impl.h:53
void get_attribute_data(const std::string &attribute, long long *value)
struct iio_context * ctx
Definition attr_source_impl.h:51
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
struct iio_device * dev
Definition attr_source_impl.h:52
size_t type_sizeof(int data_type, int attr_type)
void get_attribute_data(const std::string &attribute, int *value)
void get_attribute_data(const std::string &attribute, float *value)
void get_attribute_data(const std::string &attribute, double *value)
<+description of block+>
Definition attr_source.h:38
Definition attr_sink.h:30
Definition attr_sink.h:29