[En-Nut-Discussion] Missing possibility in the I2CBUS API

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Feb 19 12:29:06 CET 2013


Hello,

while most devices allow to read multiple I2C registers with some
auto-increment scheme, Maxim for it's MAX44009 ambient light sensor decided
to require another sequence:
Start- Chip Address/Write - Write Register number - repeated start -
Chip Address/Read - Read register content- Start- Chip Address/Write - Write
Register next number - repeated start - Chip Address/Read - Read register
content - Stop.
This means multiple transactions without STOP during the sequence of
transactions.

The i2cbus API implemented in dev/i2cbus.c so long doesn't allow such a
sequence, to my understanding. Should we extend the API?

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list