[lm-sensors] Intend to implement ADT7467/ADT7468 driver
bernhard at ratte.dhs.org
Tue Oct 21 14:21:46 CEST 2008
I am currently working on an ADT746 driver which will be finished soon.
However, I am not sure how to react to errors. Which values do I return in case
the chip reports errors (i.e. temp=-64 is an error value for the temperature reading,
-63 is ok). Are there somewhere error values defined which can used for this? I do
not think usinf -64 is a good choice, because the chip has two modes for temperature
and an error would be reported as -128 in the other mode. Additionally, -64 could be
interpreted as a real value (at least in sibiria when it is a cold winter day).
Are there somewhere constants like SENSORS_VOLTAGE_INVALID, SENSORS_TEMP_INVALID, ...
which I missed? I think common error values would be really beneficial ...
Dipl.-Ing. Bernhard Rieder email: bernhard at vmars.tuwien.ac.at
Real-Time Systems Group web: http://www.vmars.tuwien.ac.at/
Vienna University of Technology voice: +43 (1) 58801-18224
A-1040 Wien, Treitlstraße 3/182-1 fax: +43 (1) 5869149
More information about the lm-sensors