Seitenleiste


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

service:wince:drvlib:i2c:i2c_setslaveaddress

I2C_SetSlaveAddress

The function I2C_SetSlaveAddress sets the active slave.

int I2C_SetSlaveAddress(     
  UCHAR uSlaveAddress, 
  UCHAR RWbit
); 
int i2c_SetSlaveAddr(     
  UCHAR uSlaveAddress, 
  UCHAR RWbit
); 

Parameters

uSlaveAddress Slave-Address of the i2c-device.

RWbit Possible values IIC_WRITE_MODE_BIT or IIC_READ_MODE_BIT.

Return

0 → No ACK detected, set i2c_buserr
1 → ACK detected

Remarks

Issues following sequence:

  1. Start
  2. SlaveAddress with read/write-bit

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

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_setslaveaddress.txt · Zuletzt geändert: 2010/06/18 14:28 von