Definition:
Parameters:
| addr | - | The address of the I2C device. |
| reg | - | The register to be written. |
| data | - | The data to be written. |
Return Value:
This routine does not return a value.
Description:
This routine writes a byte 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.
Example:
aI2C_WriteChar((unsigned char)0xC0, 5, 45);
This would write a byte with a value of 45 to register 5 in an I2C device with an address of 0xC0 (192).
Related:
version: 1.0, build 80506
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.