IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ i2cReceiveBlock()

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

This function will dwell until either 'length' bytes are received and stored in the buffer, 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 where the received data will be placed
lengthNumber of bytes to receive
extif "TRUE" use extended address mode
Returns
Zero on success
Since
V1.02
See also
i2cReceiveChar() i2cTransmitChar() i2cTransmitBlock()
Only supported at @CHIP-RTOS-LNX target(s)
SC1x5





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:36 by Doxygen 1.8.13