<< Previous | Next >>

i2c_read_char

int i2c_read_char( char * ch );

Description

Reads 8 bits from the slave. Allows for clocks stretching on all SCL going high. This is not in the protocol for I2C, but allows I2C slaves to be implemented on slower devices.

Parameters

ch
A one character return buffer.

Return value

 0: Success.
-1: Clock stretching timeout.

Library

I2C.LIB

See also

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


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