<< Previous | Next >>

i2c_check_ack

int i2c_check_ack( void );

Description

Checks if slave pulls data low for ACK on clock pulse. Allows for clocks stretching on SCL going high.

Return value

 0: ACK sent from slave.
 1: NAK sent from slave.
-1: Timeout occurred.

Library

I2C.LIB

See also

Technical Note 215, Using the I2C Bus with a Rabbit Microprocessor.


Dynamic C Functions << Previous | Next >> rabbit.com