LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   how do I achieve i2c broadcasting using ioctl in Linux (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-achieve-i2c-broadcasting-using-ioctl-in-linux-4175470932/)

henryyao 07-25-2013 07:50 PM

how do I achieve i2c broadcasting using ioctl in Linux
 
I'd like to check how many i2c devices are on my i2c bus and what's their slave addresses.

I understand that I should use the broadcasting address 0x00. And those devices may return an ACK when they receive the broadcasting message.

However, I dont know how to achieve that using ioctl() in Linux. Since according my understanding, ioctl() can only read byte from registers or write byte to registers, it does not have a designated function of recognizing the address that ACKs are sent from.

Or is there another solution?

Thanks

elucches 08-01-2013 09:26 AM

Documentation/i2c/dev-interface may help.

henryyao 08-14-2013 10:58 AM

How to detect which encoding Linux is using without locale untility
 
how can i delete this post?


All times are GMT -5. The time now is 12:38 AM.