int i2c_start_tx( void );
Description
- Initiates I2C transmission by sending the start sequence, which is defined as a high to low transition
on SDA while SCL is high. The point being that SDA is supposed to remain stable while
SCL is high. If it does not, then that indicates a start (S) or stop (P) condition. This function first
waits for possible clock stretching, which is when a bus peripheral holds SCK low.
Return value
-
0: Success.
-1: Clock stretching timeout.
Library
- I2C.LIB
See also
- Technical Note 215, Using the I2C Bus with a Rabbit Microprocessor.