Linux I2C custom message frame sending

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux I2C custom message frame sending

461 Views
Livius
Contributor II

Hi!

Is it possible to send out a custom message frame on I2C dev from Linux? I am using an i.MX7D board and i would like to use "/dev/i2c-0" device like a simple "serial tty" to "write(fd, bytes, count)". My goal is to send out a single byte for example 0xAB on I2C without any specific slave address and without automatic stop/start bit inserting in my frame.

So i like to make my full custom I2C frame then send it out from Linux. Is it possible, is there any user-space programing techniques in C/C++, Python or any API for it in Linux?

Labels (2)
Tags (5)
0 Kudos
Reply
0 Replies