IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


unsigned int i2cSlaveGetState ( BYTE  idx  ) 

This function reads the current I2C bus state and should be used inside the I2C interrupt handler, if the I2C slave interface is used.

Parameters:
idx I2C bus interface index (0=I2C1 or 1=I2C2)
Returns:
I2C bus state:
4: Own slave address received, master wants to read
5: Own slave address received, master wants to write
6: Arbitration lost
7: Bus error
10: Data byte received from master
11: Data byte transmitted to master, master wants next byte
12: Last data byte transmitted to master
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
i2cSlaveReadByte(), i2cSlaveSendByte(), i2cSlaveSendAck()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1