IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ i2cReceiveChar()

unsigned int i2cReceiveChar ( BYTE  idx,
unsigned int  addr,
BYTE *  data,
BOOLEAN  not_last,
BOOLEAN  ext 
)

Receive a byte from the I2C bus. 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
dataBuffer for received data byte
not_lastif "TRUE" more data to receive, "FALSE" means last byte to receive
extif "TRUE" use extended address mode
Returns
Zero on success
Since
V1.02
See also
i2cTransmitChar() i2cTransmitBlock() 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