Welcome, Guest

Author Topic: I2C Library Support  (Read 421 times)

akhil

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
I2C Library Support
« on: December 22, 2018, 12:49:30 PM »
Hello,

        I wanted to know if there is any i2c library for this board? I found a file gpio-mmap for the gpios, Similarly is there any code for i2c as well?
Any help is greatly appreciated!

Thank you,
Akhil

lambda

  • Full Member
  • ***
  • Posts: 180
  • Karma: +21/-0
    • Support my work

akhil

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: I2C Library Support
« Reply #2 on: December 23, 2018, 06:52:07 PM »
Hello,
             In this particular file that you shared, which all functions has to be called in order to intialize the I2C Bus? And "mxs_i2c_pio_trigger_write_cmd" is used to write data to the bus?

lambda

  • Full Member
  • ***
  • Posts: 180
  • Karma: +21/-0
    • Support my work
Re: I2C Library Support
« Reply #3 on: December 24, 2018, 01:29:33 PM »
I only ever used this kernel module as is via /dev/ic2-0 - no idea how to directly interface with it manually.