Seitenleiste


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

service:wince:drvlib:i2c:i2c_writeburst

I2C_WriteBurst

The function I2C_WriteBurst writes a number of tablesize-bytes to an i2c-device.

void I2C_WriteBurst(     
  UCHAR uSlaveAddress
  UCHAR* pBuffer
  UCHAR ucOffset
  long tablesize
); 
void i2c_BurstWriteByte(     
  UCHAR uSlaveAddress
  UCHAR* pBuffer
  UCHAR ucOffset
  long tablesize
); 

Parameters

uSlaveAddress
Slave-Address of i2c-device.

pBuffer
Buffer which holds data to be written.

ucOffset
Offset to write data to.

tablesize
Number of bytes to write.

Remarks

Issues following sequence:

  1. Lock
  2. Start
  3. SlaveAddress with write-bit
  4. ucOffset
  5. Write specified number of bytes (tablesize)
  6. Stop
  7. Unlock

This function calls I2C_Lock and I2C_Unlock to prevent multiple accesses to the i2c-bus. Don't lock access to i2c-bus prior to using this function!!

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_writeburst.txt · Zuletzt geändert: 2009/09/16 10:47 von