IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


unsigned int i2cScan ( BYTE  idx,
unsigned int  start_addr,
unsigned int  end_addr,
BOOLEAN  ext 
)

This is an iterator function which is called repetitively to determine all connected slaves. Specify on each successive call a new restricted slave address range until no further address is returned by this function.

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)
start_addr First slave address to start scan
end_addr Last slave address to scan
ext if "TRUE" use extended address mode
Returns:
Zero = no slave found, Non-zero = slave address of first found slave device
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
i2cInit()





Top of page | Main page

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