All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raimonds Cicans <ray@apollo.lv>
To: linux-media@vger.kernel.org
Subject: Few questions about dibusb i2c over usb protocol
Date: Mon, 07 Jul 2014 23:23:35 +0300	[thread overview]
Message-ID: <53BB01C7.3060405@apollo.lv> (raw)

Hello.

1) As I understand format of i2c read command is following:
2, (dev_i2c_addr<<1)|1, addr_hi, addr_lo, size_hi, size_lo

but in debug output I saw following commands:
 >>> 02 a3 00 01
<<< 55

 >>> 02 a3 00 04
<<< 55 00 53 00

This commands are shorter then command described above.
Meaning of bytes 1, 2 and 4 is clear, but what mean third byte:
if it is size_hi, then where is address?
if it is addr_lo, then it is not clear why answer's first byte is 55
according to Cypress documentation first byte of
program eeprom should be C2

2) What is format for i2c write command?
3, dev_i2c_addr<<1, addr_hi, addr_lo, data...   ?

3) what mean following command
 >>> 03 a2 51 3f 80

write byte 80 at address 513f?


Raimonds Cicans


                 reply	other threads:[~2014-07-07 20:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=53BB01C7.3060405@apollo.lv \
    --to=ray@apollo.lv \
    --cc=linux-media@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.