Messages in this thread | | | Date | Wed, 6 Jan 2021 21:23:53 +0000 | Subject | Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors | From | Jyoti Bhayana <> |
| |
Hi Jonathan,
Instead of adding IIO_VAL_INT_H32_L32, I am thinking of adding IIO_VAL_FRACTIONAL_LONG or IIO_VAL_FRACTIONAL_64 as the scale/exponent used for min/max range can be different than the one used in resolution according to specification.
I am planning to use read_avail for IIO_CHAN_INFO_PROCESSED using IIO_AVAIL_RANGE and this new IIO_VAL_FRACTIONAL_64 for min range,max range and resolution. Instead of two values used in IIO_VAL_FRACTIONAL, IIO_VAL_FRACTIONAL_64 will use 4 values val_high,val_low,and val2_high and val2_low.
Let me know if that is an acceptable solution.
Thanks, Jyoti
| |