| aI2C_ReadChar | Index |
Definition:
Parameters:
Return Value:
Description:
This routine reads a 1-byte char value at the specified address in an I2C device. The device must use single-byte register addresses. The IIC baud rate may need to be lowered to achieve reliable communication with the I2C device. See the cmdVAL_SET or aPortIICBaud documentation for details.
Example:
n = aI2C_ReadChar((unsigned char)0xC0,5);
This would set variable n to the contents of register 5 in an I2C device with an address of 0xC0 (192).
Related: