IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ i2cTransmitChar()

unsigned int i2cTransmitChar ( BYTE  idx,
unsigned int  addr,
BYTE  data,
BOOLEAN  ext 
)

Send a byte over the I2C bus This includes the start condition and the sending of the slave address.

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





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13