IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


void i2cInit ( BYTE  idx  ) 

This function must be called to initialize the I2C master interface. Two I2C interfaces are available on the SC2x3. If "idx" is zero, the pins I2C_0/I2C_1 (I2C1 bus) will be initialized. If "idx" is one, the pins I2C_2/I2C_3 (I2C2 bus) will be initialized for usage as I2C interface.

On the I2C2 bus interface there are some internal devices present. So the following addresses can not be used externally: 0xA0, 0x90.

Parameters:
idx I2C bus interface index (0=I2C1 or 1=I2C2)
Returns:
Nothing
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
i2cScan()





Top of page | Main page

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