- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Labels:
-
ispn:40049:1:0
-
l1:314:1:0
- Tags:
- i2c
- master
- xferpending
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi JoYa_4324706,
Yes, if xferPending is set to true then stop condition wont be generated.
As the I2C driver automatically generates start or restart condition you need not worry about the restart condition. Can you please share the project so that we can better debug the issue?
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi JoYa_4324706,
Yes, if xferPending is set to true then stop condition wont be generated.
As the I2C driver automatically generates start or restart condition you need not worry about the restart condition. Can you please share the project so that we can better debug the issue?
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content