- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
For PSoC 5LP I2C component, how to get error status of I2C_MasterReadByte() API? The function returns the byte read from slave. However, if something goes wrong, how can I get the error status?
Thanks,
Winston
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Tags:
- I2C API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @yaga_3967241 ,
API - I2C_MasterStatus( )
Description: This function returns the master’s communication status.
Parameters: None
Return Value: Current status of the I2C master. Each constant is a bit field value. The value returned
may have multiple bits set to indicate the status of the transfer along with the generation of
error conditions.
Please refer to this datasheet for detailed explanation
Component - I2C V3.50 Datasheet.pdf
You can also refer to the code example
https://www.cypress.com/?rid=105713
Thanks,
Krupashankar