Find the answer to your Linux question:
Results 1 to 2 of 2
Hi experts! Iīm kind of a noob so excuse mistakes i might make. so, my problem is i want to read information via an i2c bus out of a register ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    1

    read out of a slave register with a 2 byte address with an i2c bus


    Hi experts!

    Iīm kind of a noob so excuse mistakes i might make. so, my problem is i want to read information via an i2c bus out of a register with a 2 byte address. i would need something like "I2C Block Read" with 2 command bytes, but that doesnīt exist or i didnīt find it yet. The whole read operation should look something like:

    from master to slave:

    slave adress - msb of register address - lsb of register address - slave address (with read bit as lsb);

    from slave to master:

    the data in the register

    Thanks for your help!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    Have you looked at the i2c driver code yet? It's all there in its gory details...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •