Analytica GmbH AnaGate CAN duo User Manual Page 58

  • Download
  • Add to my manuals
  • Print
  • Page
    / 83
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 57
I2C API reference
51 © 2007-2010 Analytica GmbH
I2CWrite
I2CWrite — Writes data to an I2C partner.
Syntax
#include <AnaGateDllI2C.h>
int I2CWrite(int hHandle, unsigned short nSlaveAddress, const char *
pcBuffer, int nBufferLen);
Parameter
hHandle Valid access handle.
nSlaveAddress Slave address of the I2C partner. The slave address can represent a so-called 7-bit
or 10-bit address. (siehe Appendix B, I2C slave address formats).
pcBuffer Byte buffer with the data that is to be sent to the I2C partner.
nBufferLen Size of bytes to be read.
Return value
Returns Null if successful, or an error value otherwise (Appendix A, Return Codes).
Description
Writes data to an I2C partner. The user must ensure that the setup of the data buffer and the address of
the I2C partner are correct.
The R/W bit of the slave address does not have to be explicitly set by the user.
See also
I2CRead
Page view 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 82 83

Comments to this Manuals

No comments