FTDI Community

General Category => Discussion - Software => Topic started by: bludin on October 04, 2019, 05:38:57 PM

Title: FT260 LibFT260 I2C Flags
Post 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:
and

Is this correct?
Title: Re: FT260 LibFT260 I2C Flags
Post by: FTDI Community on October 07, 2019, 04:35:14 PM
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
Title: Re: FT260 LibFT260 I2C Flags
Post by: bludin on October 07, 2019, 05:27:25 PM
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