October 2017
Intermediate to advanced
586 pages
14h 8m
English
The struct iio_info structure is used to declare the hooks used by the IIO core in order to read/write channel/attribute values:
struct iio_info {
struct module *driver_module;
const struct attribute_group *attrs;
int (*read_raw)(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask);
int (*write_raw)(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val, int val2, long mask);
[...]
};
Fields that we are not interested in have been removed: