From: fishor@gmx.net (Alexey Fisher)
To: lm-sensors@vger.kernel.org
Subject: max1619
Date: Thu, 19 May 2005 06:24:59 +0000 [thread overview]
Message-ID: <200405231411.52094.fishor@gmx.net> (raw)
In-Reply-To: <200405211303.18083.fishor@gmx.net>
Hi Jean
> Not sure I get what you mean. At any rate, the Linux kernel is written
> in C and no C++ code is allowed. Just start from an existing driver, and
> it shouldn't be too hard to adapt the code for your MAX1619 chip.
I mean, i don't know C at all, i jas wont to lern it and it will be greate if
you have and can send me some DOC about C.
> + if (kind < 0)
> + {
> + u8 reg_config, reg_convrate;
> + reg_config = i2c_smbus_read_byte_data(new_client,
> + MAX1619_REG_R_CONFIG);
> + reg_convrate = i2c_smbus_read_byte_data(new_client,
> + MAX1619_REG_R_CONVRATE);
> +
> + if ((reg_config & 0x03) != 0x00 )
> + {
> You forgot to cgecj trhe conversion rate register . It has to be <> 0x07. You could use the status register as well, for which reg & 0x61
> should be 0.
Hear i'm not sure what you mean
if ((reg_config & 0x2A) != 0x00 || reg_convrate <= 0x07 || (reg_status &
0x61) != 0x00)
is it corect ?
> + i2c_smbus_write_byte_data(client, MAX1619_REG_W_CONVRATE,
> + 5); /* 2 Hz */
> + config = i2c_smbus_read_byte_data(client, MAX1619_REG_R_CONFIG);
> + if (config & 0x40)
> + i2c_smbus_write_byte_data(client, MAX1619_REG_W_CONFIG,
> + config & 0x0C); /* run */
> +}
>
> This doesn't preserve configuration bits. You should write back config &
> 0xBF.
I can't yus 0xbf wile it bringing up OVERT output, it's mean HYST and CRIT
can't do any think. For max1619 0x9f , this preserve and doesn't have OVERT
bit.
next prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` Alexey Fisher [this message]
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Alexey Fisher
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:24 ` max1619 Jean Delvare
2005-05-19 6:25 ` max1619 Alexey Fisher
2005-05-19 6:25 ` max1619 Greg KH
2005-05-19 6:25 ` max1619 Alexey Fisher
2005-05-19 6:25 ` max1619 Jean Delvare
2005-05-19 6:25 ` max1619 Jean Delvare
2005-05-19 6:25 ` max1619 Alexey Fisher
2005-05-19 6:25 ` max1619 Jean Delvare
2005-05-19 6:25 ` max1619 Jean Delvare
2005-05-19 6:25 ` max1619 Alexey Fisher
2005-05-19 6:25 ` max1619 Alexey Fisher
2005-05-19 6:25 ` max1619 Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405231411.52094.fishor@gmx.net \
--to=fishor@gmx.net \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.