10 #ifndef INCLUDED_IIO_ATTR_SOURCE_IMPL_H 11 #define INCLUDED_IIO_ATTR_SOURCE_IMPL_H 27 std::string attribute;
28 int update_interval_ms;
29 int samples_per_update;
42 const std::string& device,
43 const std::string& channel,
44 const std::string& attribute,
45 int update_interval_ms,
46 int samples_per_update,
54 int work(
int noutput_items,
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, data_type_t data_type, attr_type_t attr_type, bool output, uint32_t address)
iio_channel * chan
Definition: attr_source_impl.h:38
std::vector< const void * > gr_vector_const_void_star
Definition: types.h:28
attr_type_t
Definition: iio_types.h:23
void get_register_data(uint32_t address, int *value)
iio_device * dev
Definition: attr_source_impl.h:37
data_type_t
Definition: iio_types.h:21
Definition: attr_source_impl.h:21
std::vector< void * > gr_vector_void_star
Definition: types.h:27
iio_context * ctx
Definition: attr_source_impl.h:36
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
just like gr::block::general_work, only this arranges to call consume_each for you ...
GNU Radio logging wrapper.
Definition: basic_block.h:29
size_t type_sizeof(data_type_t data_type, attr_type_t attr_type)
Generic reader for attributes of IIO devices.
Definition: attr_source.h:30
void get_attribute_data(const std::string &attribute, double *value)