• Ready for review
  • I2C_ReadEx

    The function I2C_Read reads one byte from the I2C-Bus.

    UCHAR I2C_ReadEx( UCHAR* data, int acktype ); UCHAR i2c_ReadByteEx( UCHAR* data, int acktype );

    Parameters

    data
    Pointer to variable to receive the byte read.
    acktype
    Possible values are IIC_ACK or IIC_NACK.

    Return Values

    If the function fails, the return value is 0. If the function succeeds, the return value is 1.

    Remarks

    Issues following sequence:

    • Read one byte from I2C.

    Function is not protected by Mutex; view I2C_Lock and I2C_Unlock.

    Requirements

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

    See Also

    I2C_Read, I2C_Write