Forum Discussion
Hi Jacob
The feature that you are looking for is the i2c probe.
Unfortunately the library does not support this feature.
As for the addressing, did you change the addressing mode from 7Bit to 10Bit addressing?
You could search for "ALT_AVALON_I2C_ADDR_MODE_10_BIT "
Regards
Jingyang, Teh
Good morning Jingyang,
I tried this but so far no success. Actually now I cannot read anything at all.
I think the issue is that my devices have normal, 7/8 bit addresses. 0x57, for example. But the registers that I need to read in these devices are anywhere from 0x000 to 0x145.
with address mode at default(7 bit), I can read any registers from 0x00 to 0xFF at address 0x57.
By using the below code to try and set 10 bit addressing, I lose the ability to read everything. It just returns with a NACK error.
is it possible with this driver to have 7 bit addresses, but 10 bit registers??
I have this code now for configuration. Is this the correct way to do this??