I suggest that you refer to this document "wiced smart hw interfaces" that is available for download on this forum. The mechanics of i2c as well as a master-role sample code is documented in it.
Thanks boont, but the document is no help to my question.
1 of 1 people found this helpful
Does the chip have to be waken up by I2C SDA line?
I'm not sure whether i2cm_write works with 0byte data.
You can try and check it by an oscilloscope.
When the clock is 100k, tWLO will be about 80us.
Yes, the chip have to be waken up by I2C SDA line.
The i2cm_write(NULL, 0, 0x00) doesn't work, system hang. But if I give a dummy data ex i2cm_write(&var, 1, 0x00), it can be waken up. Interesting.