2008-05-21 17:22:02     two devices in I2C

2008-05-21 17:22:02     two devices in I2C

Miquel Soler i Mir (SPAIN)

Message: 56106   

Hello.

I'm using the framework of I2C from userspace. I'm using two devices and are working fine.I use the same file descriptor "/dev/i2c-0".

My idea is use a diferent file descriptor for each device.

It is possible have two file descriptor of i2C bus?

How I can made this?

Thanks

Miquel Soler i Mir

TranslateQuoteReplyEditDelete

2008-05-21 17:47:48     Re: two devices in I2C

Mike Frysinger (UNITED STATES)

Message: 56107   

/dev/i2c-0 represents a bus, it doesnt represent a device

if you want multiple file descriptors, just open the device mutliple times

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.