I2C Library Support

Started by akhil, December 22, 2018, 12:49:30 PM

Previous topic - Next topic

akhil

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


akhil

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

I only ever used this kernel module as is via /dev/ic2-0 - no idea how to directly interface with it manually.

gur468

i am not very familiar to kernel module, can any one give some example to use this *.c for /dev/i2c-2.

as i am getting
"Error opening device '/dev/i2c-0'"