| addr|| - ||The address of the I2C device.|
| reg|| - ||The register where the write operation will begin.|
| data|| - ||The data to be written.|
This routine does not return a value.
This routine writes an int, or 2-byte value, to 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.
aI2C_WriteInt((unsigned char)0xC0, 5, 345);
This would write an int with a value of 345 to registers 5 and 6 in an I2C device with an address of 0xC0 (192).
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.