Seitenleiste


Access to information is restricted depending on your login. Request login-information through our contact form.

service:wince:drvlib:i2c:i2c_write

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

Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
service/wince/drvlib/i2c/i2c_write.txt · Zuletzt geändert: 2012/05/16 11:59 von