This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: i2c questions
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 18 Feb 2007 18:57:08 +0000 (UTC)
- Subject: [ECOS] Re: i2c questions
- References: <era3fd$igo$1@sea.gmane.org>
On 2007-02-18, Grant Edwards <grante@visi.com> wrote:
> 2) There doesn't seem to be any way to determine when writing
> zero bytes of data with cyg_i2c_tx() whether the operation
> was successful or not, since it returns 0 for both cases. I
> presume one should use the lower-level "transaction"
> routines for this case?
That doesn't seem to work. i2c_transaction_tx always seems to
write an extra byte. If I tell it to send 1 byte, it sends 2.
How do I send a single byte on the i2c bus??
--
Grant Edwards grante Yow! .. the MYSTERIANS are
at in here with my CORDUROY
visi.com SOAP DISH!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss