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);
struct iio_context * ctx
Definition: attr_source_impl.h:51
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)
size_t type_sizeof(int data_type, int attr_type)
void get_register_data(uint32_t address, int *value)
Definition: attr_source_impl.h:33
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition: attr_sink.h:29
<+description of block+>
Definition: attr_source.h:37
struct iio_channel * chan
Definition: attr_source_impl.h:53
struct iio_device * dev
Definition: attr_source_impl.h:52
void get_attribute_data(const std::string &attribute, double *value)