FTDI Community
General Category => Discussion - Software => Topic started by: bludin on October 04, 2019, 05:38:57 PM
-
Which flags should be used to make a standard combined read register operation with the write and read operations respectively?
Logically, I would presume:
- ftI2CMaster_Write with FT260_I2C_START (0x02)
and
- ftI2CMaster_Read with FT260_I2C_REPEATED_START + FT260_I2C_STOP (0x03 | 0x04 = 0x07).
Is this correct?
-
Hello,
Please refer to AN_395 User Guide for LibFT260 (https://www.ftdichip.com/Support/Documents/AppNotes/AN_395_User_Guide_for_LibFT260.pdf).
There are also software examples provided with LibFT260 download.
Best Regards,
FTDI Community
-
AN_395 doesn't explain how to use the I2C flags for a read-from-register (=combined write/read operation) and the examples do not contain this either, as far as I can see.
I would expect to work the way I outlined it in my initial post, however, it is confusing that there is only an enumeration for FT260_I2C_START_STOP but not for FT260_I2C_REPEATED_START_STOP.
Thanks for your help,
Beat