|
@@ -122,6 +122,19 @@ struct iio_channel
|
|
|
int iio_read_channel_raw(struct iio_channel *chan,
|
|
|
int *val);
|
|
|
|
|
|
+/**
|
|
|
+ * iio_read_channel_average_raw() - read from a given channel
|
|
|
+ * @chan: The channel being queried.
|
|
|
+ * @val: Value read back.
|
|
|
+ *
|
|
|
+ * Note raw reads from iio channels are in adc counts and hence
|
|
|
+ * scale will need to be applied if standard units required.
|
|
|
+ *
|
|
|
+ * In opposit to the normal iio_read_channel_raw this function
|
|
|
+ * returns the average of multiple reads.
|
|
|
+ */
|
|
|
+int iio_read_channel_average_raw(struct iio_channel *chan, int *val);
|
|
|
+
|
|
|
/**
|
|
|
* iio_read_channel_processed() - read processed value from a given channel
|
|
|
* @chan: The channel being queried.
|