/* Tests for error return values rely upon this value being < 0x80 */ #define MAGIC_NUMBER 0x55
/* * The Zyxel hwmon MCU is a Holtek HT46R065 that is factory programmed * to perform temperature and fan speed monitoring. It is read by taking * the active pin low. The 32 bit output word is then clocked onto the * data line. The MSB of the data word is a magic nuber to indicate it * has been read correctly, the next byte is the fan speed (in hundreds * of RPM) and the last two bytes are the temperature (in tenths of a * degree)
*/
/* * Although this protocol looks similar to SPI the long delay * between the active (aka chip select) signal and the shorter * delay between clock pulses are needed for reliable operation. * The delays provided are taken from the manufacturer kernel, * testing suggest they probably incorporate a reasonable safety * margin. (The single device tested became unreliable if the * delay was reduced to 1/10th of this value.)
*/ static s32 nsa320_hwmon_update(struct device *dev)
{
u32 mcu_data;
u32 mask; struct nsa320_hwmon *hwmon = dev_get_drvdata(dev);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.