FFS
I²C register read process is write register address and read back value.
When is it ever useful for the register not to auto increment, especially when the device has multi byte adjacent register values?
I mean it does multiple byte reads but they are all the same value repeated?! When is that ever sane?
You have to set top bit of register address to auto increment.
Why the hell?!
(Annoying accelerometer chip I am using).

@revk it might make a bit of sense if you wanted to stream / poll a sensor register at a consistent rate.

Other I2C peripheral chips I've used do similar. Can be handy to configure then, just just read the state register out repeatedly.

I2C having a more consistent approach would sure be nice.

@intrbiz Given how standard auto increment is, I would argue the non standard version of not doing so should be what means adding bit 7 to the register. But oh well, I know now for this chip.

Follow

@revk I find it easier to assume no standards when it comes to I2C.

The oddest one I had was a multiplexer which needed a magic start / ack / stop sequence to put it into advanced more. Which most controllers have no way of sending.

Sign in to participate in the conversation
Mastodon

Time for a cuppa... Earl Grey please!