• Ready for review
  • I2C_Write

    The function I2C_Write writes one byte to the I2C-Bus.

    int I2C_Write( UCHAR data ); int i2c_WriteByte( UCHAR data );

    Parameters

    data
    Byte to be transferred over the I2C-Bus

    Return Values

    -1 → Bus-Error (Timeout)
    0 → NACK detected
    1 → ACK detected

    Remarks

    Issues following sequence:

    1. Write one byte to I2C

    This function does not protect access to the I2C by a Mutex. Call I2C_Lock and I2C_Unlock to prevent multiple accesses to the i2c-bus.

    Requirements

    OS Versions: Windows CE 4.2 and later.
    Header: drvlib_app.h
    Link Library: drvlib_app.lib

    See Also

    I2C_Read