This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i2c questions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]