Hi Brian Smith,
What's the code you are referring now?
You can refer to our FRDM-K22F120M sdk code which can be downloaded from this link:
Welcome | MCUXpresso SDK Builder
Choose the FRDM-K22F120M board, generate the code and download it.
Now, you can find the FXO8700 code from this folder:
SDK_2.5.0_FRDM-K22F\boards\frdmk22f\driver_examples\i2c\read_accel_value_transfer
I didn't find the I2C_wait API which you have mentioned.
I think, if you didn't enable the interrupt, you don't need to clear I2C_S_IICIF_MASK bit.
You can check our latest SDK code for FRDM-K22F120M.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------