2 Replies Latest reply on Mar 23, 2020 6:15 AM by JoYa_4324706

    I2C Master High Level xferPending

    JoYa_4324706

      Hi,

       

      I am using PSoC 6 (CY8CPROTO-063-BLE) board to write a very simple I2C example. I am using High Level APIs that Cypress provides and every time I before I try to read a register, I need to write an address to the device first, which is pretty similar to what is described in I2C "read" transactions that start with a write. However, it doesn't seem to work.

      So I would like to ask is it correct to set xferPending in the cy_stc_scb_i2c_master_xfer_config_t to True if I would like to perform such sequence of action? And does the API generates Restart automatically or do I have to do any further action?

       

      Would High Level APIs be able to perform such action? Or would it be recommended to use Low Level APIs instead? Thanks!