This routine reads a 2-byte int value from 2 sequential bytes starting at a 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.
n = aI2C_ReadInt((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).