I2C_Read

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

UCHAR I2C_Read(      
  int acktype
); 
UCHAR i2c_ReadByte(      
  int acktype
); 

Parameters

acktype
Possible values are IIC_ACK or IIC_NACK.

Return Values

If the function succeeds, the return value is the desired byte read.

If the function fails, the return value is -1.

Remarks

Issues following sequence:

  1. Read one byte from I2C.

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

Requirements

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

See Also

(C) 2009 Keith & Koep GmbH. Alle Rechte vorbehalten. Nutzungsbedingungen
(C) 2009 Keith & Koep GmbH. All rights reserved. Terms of Use