Subject: Re: 2byte read/write on SMBus
To: None <tsutsui@ceres.dti.ne.jp>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-evbmips
Date: 05/27/2006 11:39:11
Hi! tsutsui-san,
I apologizes very slow reply. ;-<
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Date: Tue, 23 May 2006 18:45:33 +0900
> kiyohara@kk.iij4u.or.jp wrote:
>
> > Our OMSAL400 should read/write 2 bytes on SMBus. It is possible by the
> > addition of the following functions to a present mounting.
>
> - What device actually requires such 2 byte ops?
> - Does it require 2 byte stream data? Or word (uint16_t) data?
> If the latter, your code doesn't work properly on big endian
> environment, I think. (I'm not sure how I2C APIs are defined though)
LM77 (lmtemp(4)) use 2 byte ops.
But, the former is my mistake, and correctness is a latter word ops. And,
it seems to have to consider endian as you think.
Thanks,
--
kiyohara