Hi Nicholas,
as free inspiration you can use my example code for I2C communication with accelerometer sensor:
https://community.freescale.com/docs/DOC-104587
It is not what you really want, but it could be better than nothing.
Example used I2C bus in pooling mode and it integrates two approaches for waiting for new data:
- GPIO pin interrupt could be used for signalize when slave has new data
- Or master could periodically read slaves status.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------