Re: [PATCH v2 7/7] iio: magnetometer: yas530: Add YAS537 variant

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

 



On Mon, Jun 13, 2022 at 5:20 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Mon, Jun 13, 2022 at 3:18 AM Jakob Hauser <jahau@xxxxxxxxxxxxxx> wrote:

Forgot to add that please try to split even more preparatory patches.
For example, you may convert existing code to stubs / switch-cases /
etc and in the last patch just add the new case or new function /
branch.

...

> > +       /*
> > +        * Raw temperature value t is number of counts. A product description

the number

> > +        * of YAS537 mentions a temperature resulution of 0.05 °C/count.
>
> resolution
>
> > +        * A readout of the t value at ca. 20 °C returns approx. 8120 counts.
> > +        *
> > +        * 8120 counts x 0.05 °C/count corresponds to a range of 406 °C.
> > +        * 0 counts would be at theoretical -386 °C.
> > +        *
> > +        * The formula used for YAS530/532 needs to be adapted to this
> > +        * theoretical starting temperature, again calculating with 1/10:s
> > +        * of degrees Celsius and finally multiplying by 100 to get milli
> > +        * degrees Celsius.
> > +        */

-- 
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