FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FT260 LibFT260 I2C Flags  (Read 8134 times)

bludin

  • Newbie
  • *
  • Posts: 7
    • View Profile
FT260 LibFT260 I2C Flags
« 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?
« Last Edit: October 04, 2019, 06:09:29 PM by bludin »
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 892
    • View Profile
Re: FT260 LibFT260 I2C Flags
« Reply #1 on: October 07, 2019, 04:35:14 PM »

Hello,

Please refer to AN_395 User Guide for LibFT260.

There are also software examples provided with LibFT260 download.

Best Regards,
FTDI Community
Logged

bludin

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: FT260 LibFT260 I2C Flags
« Reply #2 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
Logged