Re: iio display large numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 8, 2021 at 2:56 AM Jonathan Cameron
<Jonathan.Cameron@xxxxxxxxxx> wrote:
> On Tue, 7 Dec 2021 13:40:19 +0100
> Henk <yoda@xxxxxxxxxxxxx> wrote:

...

> Two options for this.  If the thing we are controlling is the raw channel then
> we have the option to provide _scale reflecting the fact that a large value
> e.g. GHz is not normally controlled at a Hz granularity.

But some sensors can be really high-precision ones, although I
couldn't imagine a value that requires more than 32-bit for that in
general engineering. Where one may ask for more is something like very
precise physics experiments in CERN :-)

> Where that doesn't apply or the range is really very big we do have the
> slightly nasty option of IIO_VAL_INT_64
>
> https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=6bb835f3d00467c9a5e35f4955afa29df96a404e
>
> This is very new, so not in mainline yet, though it is queued up for the
> next merge window and should be linux-next.



-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux