- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the description of cyhal_i2c_master_write():
"I2C master blocking write.
This will write size
bytes of data from the buffer pointed to by data
. It will not return until either all of the data has been written, or the timeout has elapsed"
Will this function also block the interrupts (e.g. uart, timer ) until it finished?
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aleung
No, the blocking cyhal_i2c_master_write only pauses the program execution flow. In case there are any interrupts that are generated, they are serviced even when the cyhal_i2c_master_write is not complete. Only the main code will pause execution till the master completely sends the data (or timeout occurs).
Best regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aleung
No, the blocking cyhal_i2c_master_write only pauses the program execution flow. In case there are any interrupts that are generated, they are serviced even when the cyhal_i2c_master_write is not complete. Only the main code will pause execution till the master completely sends the data (or timeout occurs).
Best regards,
Hari