On 22/05/13 08:49, Guillaume Ballet wrote:
Hello,
The read_raw operation in iio_info has a signature that takes two
integer as in/out parameters. This lets the driver return values with
micro- or nano-unit precision.
However, the high-level iio_read_channel_raw and
iio_read_channel_processed
Do we even have an iio_read_channel_processed? I think you are referring
to the in kernel consumer interface. In iio/consumer.h we have an
iio_read_channel_raw but unless I am going mad no
iio_read_channel_processed (as of yet).
https://git.kernel.org/cgit/linux/kernel/git/jic23/iio.git/tree/include/linux/iio/consumer.h?h=togreg
(is the latest development tree).
Which tree are you looking at?
functions' signature only has one integer
in/out parameter. That makes sense in the context of _raw because the
value isn't yet processed.
However, as the scale is a number encoded over two ints, the
_processed value should also span two ints. Is there a reason why it's
still only one int?
No it certainly should not be one int for exactly the reasons you have
stated.
Thanks,
Guillaume
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html