IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ i2cTransmitBlock()

unsigned int i2cTransmitBlock ( BYTE  idx,
unsigned int  addr,
BYTE *  buffer,
int  length,
BOOLEAN  ext 
)

This function will dwell until 'length' bytes from the buffer are transmitted or until an error occurs. This function will automatically generated a I2C Start or Restart condition.

Parameters
idxI2C bus index
     0 = I2C on I2C1
     1 = I2C on I2C2
     etc.
addrSlave address
bufferBuffer that holds data bytes to send
lengthNumber of bytes to send
extif "TRUE" use extended address mode
Returns
Zero on success
Since
V1.02
See also
i2cReceiveChar() i2cTransmitChar() i2cReceiveBlock()
Only supported at @CHIP-RTOS-LNX target(s)
SC1x5





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13